Files
nym/clients/webassembly/js-example
Jędrzej Stuczyński 6746514317 Fixed up most JS dependency warnings
Resolved dependency issues in testnet-faucet

Removed the outdated react example

Updated js example dependencies

Using sandbox in js example

Feature locking imports

Running wasm client in testnet mode by default

Allow using `None` BandwidthController in testnet mode

Reverted endianness change and left it for others to deal with

Fixed up websocket js-example

Changed endianness of aes counter
2022-03-24 17:40:20 +00:00
..
2020-09-28 17:19:07 +01:00
2022-03-24 17:40:20 +00:00
2020-05-19 10:32:52 +01:00

Nym Sphinx Wasm Demo

This example application demonstrates how to use WebAssembly to create Sphinx packets, in the browser, and forward them to a Nym gateway.

🚴 Usage

npm install         # set up dependencies
npm run start       # starts a web server at http://localhost:8001

Check your dev console for output.

Rebuild after Rust source changes

Install wasm-pack. Instruction are at the Rust WASM tutorial.

wasm-pack build in the clients/webassembly directory (one up) will rebuild the wasm package if you make changes to the Rust source. That will be automatically picked up (and reloaded, if need be) by the npm dev server.