zerokit/rln-wasm
Aaryamann Challani d8f813bc2e
chore(rln): refactor resource initialization (#260)
* chore(rln): optimize into Lazy OnceCells

* fix

* fix: dont change duration

* fix: increase duration?

* chore: add backtrace

* fix: remove plotter to avoid f64 range failure

* fix: remove ci alteration

* fix: use arc over witness calc

* fix: remove more lifetimes

* fix: benchmark correct fn call, not the getter

* fix: bench config
2024-06-17 13:43:09 +05:30
..
resources feat: wasm (#38) 2022-09-20 08:22:46 -04:00
src chore(rln): refactor resource initialization (#260) 2024-06-17 13:43:09 +05:30
tests chore(rln): use ark serialized verification key for faster serde (#259) 2024-06-14 11:03:55 +05:30
.gitignore chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00
Cargo.toml fix(rln-wasm): dont run benchmarks (#241) 2024-04-30 16:06:49 +05:30
Makefile.toml fix(rln-wasm): dont run benchmarks (#241) 2024-04-30 16:06:49 +05:30
README.md add wasm-strip to reduce size even more (#137) 2023-03-24 09:30:48 +05:30

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

OR

make installdeps
  1. Compile zerokit for wasm32-unknown-unknown:
cd rln-wasm
cargo make build
  1. Compile a slimmer version of zerokit for wasm32-unknown-unknown:
cd rln-wasm
cargo make post-build

Running tests

cd rln-wasm
cargo make test

Publishing a npm package

cd rln-wasm
cargo make login
cargo make publish