-
Notifications
You must be signed in to change notification settings - Fork 975
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
[WIP] Full WASM support (tracking PR) #358
Conversation
There's an open question about platform-specific features. Some elements cannot be used on some platforms, namely Unix sockets on anything else but Unix, and TCP/UDP/etc. on asm.js/wasm. Therefore:
Both options have their advantages and inconvenient. |
I want to make the point, that I was able to make it compile with |
note to self. Parts of
Though rust-crypto-wasm supports SHA-digest and ED25519, neither this crate nor the RustCrypto project have RSA or ECDH support yet. But there is a RSA crate in the works. |
See also openethereum/parity-ethereum#7915 |
There is also the possibility to use WebCrypto in wasm, it supports all the crypto we require for secio. However webcrypto is async and returns promises, while currently ring is sync. But that sounds like a feasible thing to do. |
cc-ing #806 |
The state of wasm after #806 is that the library compiles fine with However trying to compile a binary fails because apparently the |
Switching on WASM support for the
libp2p
-package (rather than-code
) totrack, which parts still need to be worked on to get full wasm-support going.
Add fixes to it as we go along.