-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polyfills are correctly resolved now, but some crypto polyfill is not implemented yet #10
Conversation
package.json
Outdated
"vite": "^5.2.10", | ||
"vue": "^3.4.26", | ||
"vue-router": "^4.3.2" | ||
}, | ||
"dependencies": { | ||
"@encointer/worker-api": "^0.12.4", | ||
"@encointer/worker-api": "^0.12.5-alpha.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't fix anything
there are so many "unimplented" calls in unenv node crypto that I fear this rabbit hole is deep. simply implementing crateHash will likely just lead us to the next missing piece |
AFAIU, polkadot-api uses wasm for crypto stuff. They clearly implemented hashing and I geuss even RSA could we just use polkadot api to do the missing stuff? hint on RSA: A more involved option would be to replace RSA with NaCl: |
better docs on NaCl asymmetric encryption: tracking issue: integritee-network/worker#1597 |
No longer needed, fixed crypto with #13 |
Blocker: unjs/unenv#177
Currently getting the following error during encryption:
Error: Error during encryption. Original error: Error: [unenv] crypto.createHash is not implemented yet!
Workarounds:
exports is not defined
with yarn build && yarn preview in nuxt davidmyersdev/vite-plugin-node-polyfills#92usewon't work, it uses unenv under the hood, see Client side node js support #11clientNodeCompat: true
: