To generate WASM bindings, follow these steps:
- Inside the
pollard-kangaroo
andrange-proofs
directories, locate thebuild-wasm.sh
script for WASM generation. - Ensure Docker is installed on your machine, then execute
build-wasm.sh
in each subdirectory. - Once WASM bindings have been generated in all subdirectories, you can create a unified package by running the
gen-npm-pkg.sh
script at the root of the project:
These steps will generate the npm package with necessary WASM bindings.
One-liner for convenience from the root folder
chmod +x ./range-proofs/build-wasm.sh && ./range-proofs/build-wasm.sh && chmod +x ./pollard-kangaroo/build-wasm.sh && ./pollard-kangaroo/build-wasm.sh && ./gen-npm-pkg.sh