Getting Started with IOTA and WebAssembly(WASM)
Today, a prealpha version of the official WASM binding to IOTA’s Rust API was released, let’s try it out!
I’ve set up a demo, where we generate an address with the iota.rs-wasm in the web browser. To see, why they did a WASM binding this — we also generate an address with the IOTA.js library and compare the calculation time.
Just clone the repo, install dependencies and open the index.html file in your browser.
git clone https://github.com/rust-iota/iota-wasm-democd iota-wasm-demonpm installnpm run dev
Open browser http://localhost:8080/ and your developer console.
We got a connection to the Tangle! You can deep-dive into the WASM module here.
This is the code, we execute in the browser:
You get more examples with the IOTA.rs WASM binding in the future. Discover more about the Rust Learning Group:
https://einfachiota.github.io/rust-learning-group
Thanks 🦀✌️