zerokit/rln-wasm
Richard Ramos 92c431c98f feat(rln-wasm): expose `set_leaves_from` and `init_tree_with_leaves` 2023-01-19 08:37:15 -04:00
..
resources feat: wasm (#38) 2022-09-20 08:22:46 -04:00
src feat(rln-wasm): expose `set_leaves_from` and `init_tree_with_leaves` 2023-01-19 08:37:15 -04:00
.gitignore chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00
Cargo.toml feat(rln-wasm): expose `set_leaves_from` and `init_tree_with_leaves` 2023-01-19 08:37:15 -04:00
Makefile.toml fix(rln-wasm): make cargo make build work on macOS and linux (#77) 2022-11-21 16:41:38 +01:00
README.md chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00

README.md

RLN for WASM

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

Building the library

  1. Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  1. Install cargo-make
cargo install cargo-make
  1. Compile zerokit for wasm32-unknown-unknown:
cd rln-wasm
cargo make build

Running tests

cd rln-wasm
cargo make test

Publishing a npm package

cd rln-wasm
cargo make login
cargo make publish