This is a JavaScript wrapper for Hyperledger Indy. It is implemented as WebAssembly (WASM) bindings generated from the original Rust library, using wasm-bindgen.
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.
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 install
npm run build
Within this directory, invoke npm test
.
There are examples of using this library in the examples/ directory.