JSPM

  • Created
  • Published
  • Downloads 667
  • Score
    100M100P100Q101605F
  • License Apache-2.0

WASM bindings for IOTA Identity - A Self Sovereign Identity Framework implementing the DID and VC standards from W3C. To be used in JavaScript/TypeScript

Package Exports

  • @iota/identity-wasm/node
  • @iota/identity-wasm/node/identity_wasm.js
  • @iota/identity-wasm/node/index.js
  • @iota/identity-wasm/web
  • @iota/identity-wasm/web/identity_wasm.js
  • @iota/identity-wasm/web/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@iota/identity-wasm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

IOTA Identity WASM

Identity Documentation Pages

Getting started with the IOTA Identity WASM Library.

API Reference

Examples

Install the Library

If your project does not contain it already, install the peer dependency @iota/iota-sdk as well.

npm install @iota/iota-sdk

You can install the latest alpha version of the library by running the following command:

npm install @iota/identity-wasm@alpha

Build the Library

Alternatively, you can build the bindings yourself if you have Rust installed. If not, refer to rustup.rs for the installation.

Requirements

  • Node.js (>= v20)
  • Rust (>= 1.65)
  • Cargo (>= 1.65)
  • for running example: a local network node with the IOTA identity package deployed as described here

1. Install wasm-bindgen-cli

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.

cargo install --force wasm-bindgen-cli

2. Install Dependencies

After installing wasm-bindgen-cli, you can install the necessary dependencies using the following command:

npm install

3. Build

You can build the bindings for node.js using the following command:

npm run build:nodejs