The WASM bindings code exists beneath the directory src/wasm, and is all organized into a feature called 'wasm'. This feature is disabled by default. The bindings expose only the BLS functionality of libindy-crypto.
How to Build
Within this directory, do the following:
- Verify that rustc is v1.30 or higher
- Install rustup:
curl https://sh.rustup.rs -sSf | sh
rustup target add --toolchain nightly wasm32-unknown-unknown
cargo +nightly install wasm-bindgen-cli
npm run build
How to Test
Within this directory, invoke
There are examples of using this library in the examples/ directory.