mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-01-27 23:05:19 +00:00
55b00fd653
* to color_eyre::Result 1st part * tests and seconds batch * third batch * rln fixes + multiplier * rln-wasm, assert rln, multiplier * io to color_eyre * fmt + clippy * fix lint * temporary fix of `ark-circom` * fix ci after merge * fmt * fix rln tests * minor * fix tests * imports * requested change * report + commented line + requested change * requested changes * fix build * lint fixes * better comments --------- Co-authored-by: tyshkor <tyshko1@gmail.com>
RLN for WASM
This library is used in waku-org/js-rln
Building the library
- Install
wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- Install
cargo-make
cargo install cargo-make
OR
make installdeps
- 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