Getting Started with Wasm
Minimum Requirements
- Node.js (>=
v20
)
Install the Library
If your project does not contain it already, install the peer dependency @iota/iota-sdk
as well.
- npm
- Yarn
- pnpm
npm install @iota/iota-sdk
yarn add @iota/iota-sdk
pnpm add @iota/iota-sdk
You can install the latest beta version of the library by running the following command:
- npm
- Yarn
- pnpm
npm install @iota/notarization-wasm@alpha
yarn add @iota/notarization-wasm@alpha
pnpm add @iota/notarization-wasm@alpha
Build the Library
Alternatively, you can build the bindings to work with currently unreleased features. You can find instructions for this in the notarization
repository.
Node.js Usage
The following code creates a new IOTA Notarization suitable for publishing to a locally running test network.
bindings/wasm/notarization_wasm/examples/src/0_basic/0_create_locked_notarization.ts
loading...
See utils for details about the implementations about the helper functions used here.