APACHE-2.0 License
This is a first experiment to compile the Rust implementation of hypercore-protocol to WASM for use in browsers. At the moment, this is a minimal demo that only includes the wire protocol part (with all transport crypto) but not the persistence and verification parts (i.e. the hypercore crate).
What this does (in Rust compiled to WASM):
/key
pre
element)A Node.js server has the simple demo backend:
/key
send the hypercore's key as a hex string/pkg
)cargo build
wasm-pack build --dev --target web
cd server
yarn
node server.js
# open http://localhost:9000
If it works, this should display this README in the browser, loaded over hypercore-protocol in Rust in WASM :-)
Check the browser console for some logs. It currently needs quite a while until the content is displayed, I don't know yet why this is.