-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use libp2p-crypto #344
Comments
The link has moved to https://dev-docs.wakuconnect.dev/docs/crypto_libraries/ Should https://github.com/ethereum/js-ethereum-cryptography be considered as well as libp2p? They just released 1.0rc1 a couple days ago. |
Corrected, thanks.
We can consider it. So better use a crypto library we already have in the dependency tree (if it's good enough) than adding a new one. Moreover, libp2p-crypto has done some recent effort to move away from node dependencies: libp2p/js-libp2p-crypto#180 as js-waku targets the browser, it's good to see. |
Iceboxing it, likely to be part of the plan that is the output of #527 |
Out of icebox, need to review crypto deps and see if we can improve bundle size. |
API exposed by
|
Review done, see comment above. |
Problem
We are using several crypto libraries in js-waku: https://docs.wakuconnect.dev/docs/crypto_libraries/.
Some of them import polyfills as they were written for node first.
It can be quite messy too as there is a current node + browser support. We only want browser support so the complexity is unnecessary.
Solution
Review whether libp2p can be used, if so, use it and remove other crypto dependencies.
If not, review what work needs to be pushed upstream.
Notes
Consider vacp2p/rfc#414, would libp2p-crypto support those operations?
Check if libp2p crypto does use the CryptoSubtle browser API. If not, consider whether it is an issue.
Also consider ethereum-cryptography if it does not work out.
The text was updated successfully, but these errors were encountered: