-
Notifications
You must be signed in to change notification settings - Fork 10
WebAssembly build target #9
Comments
That's already in progress by the core team as far as I know :) |
@paberr already started to split up the code into seperate crates. The easy crates (like primitives, key-derivation and mnemonic) should already be compatible although the miss export annotations. https://udoprog.github.io/rust/2018-02-19/porting-rust-to-wasm.html Edit: add article |
I did some experiments about 2 weeks ago and especially liked https://rustwasm.github.io/book/ as a resource. |
Any progress on this? I would really like to use wasm version of public key generation @paberr can you share on how you manage to do it. I'm really no rust expert, i just need a wasm build for the public key generator |
Thank you @terorie I know this is used there too. |
@valentinvieriu That's true, the core-js wasm blob is a bit large. But I don't think it'll be any different with core-rs. I need a wasm build of the Nimiq core structures anyways, so I can probably help you with creating a small build: My plan is to rip out the consensus + networking and simplify the crypto package. We can work together on this if you want – my email is on my GitHub profile. In the meantime, you can just get all the functionality from the official Nimiq lib. |
@terorie that is great! I've added you on Discord. |
Question or Feature Request
Nimiq is the web-based currency. Why not compile the Rust core to Wasm then?
Useful resources:
I'll do some research on what's required to compile to the new target.
The text was updated successfully, but these errors were encountered: