WASM bindings for IOTA Notarization - A Data Notarization Framework providing multiple notarization methods. To be used in JavaScript/TypeScript
If your project does not contain it already, install the peer dependency @iota/iota-sdk as well.
``bash npm2yarn`
npm install @iota/iota-sdk
You can install the latest alpha version of the library by running the following command:
`bash npm2yarn`
npm install @iota/notarization@alpha
Alternatively, you can build the bindings yourself if you have Rust installed. If not, refer
to rustup.rs for the installation.
- Node.js (>= v20)
- Rust (>= 1.65)
- Cargo (>= 1.65)
- for running example: a local network node with the IOTA notarization package deployed as being described
here
If you want to build the library from source,
you will first need to manually install wasm-bindgen-cli.
A manual installation is required because we use the Weak References feature,
which wasm-pack does not expose.
`bash`
cargo install --force wasm-bindgen-cli
After installing wasm-bindgen-cli, you can install the necessary dependencies using the following command:
`bash`
npm install
You can build the bindings for node.js using the following command:
`bash npm2yarn`
npm run build:nodejs