README.md
November 8, 2018 ยท View on GitHub
Indy Crypto for JavaScript
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.
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-unknowncargo +nightly install wasm-bindgen-clinpm installnpm run build
How to Test
Within this directory, invoke npm test.
Examples
There are examples of using this library in the examples/ directory.