zerokit/rln-wasm
Richard Ramos c401c0b21d
feat: wasm (#38)
2022-09-20 08:22:46 -04:00
..
resources feat: wasm (#38) 2022-09-20 08:22:46 -04:00
src feat: wasm (#38) 2022-09-20 08:22:46 -04:00
Cargo.toml feat: wasm (#38) 2022-09-20 08:22:46 -04:00
README.md feat: wasm (#38) 2022-09-20 08:22:46 -04:00

README.md

RLN for WASM

This library is used in waku-org/js-rln

Building the library

  1. Make sure you have nodejs installed and the build-essential package if using ubuntu.
  2. Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  1. Compile zerokit for wasm32-unknown-unknown:
cd rln-wasm
wasm-pack build --release

Running tests

cd rln-wasm
wasm-pack test --node --release