# @iota/identity-wasm

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

Latest version **1.9.7-beta.1** (published 2026-07-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @iota/identity-wasm
pnpm add @iota/identity-wasm
yarn add @iota/identity-wasm
bun add @iota/identity-wasm
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types; no esm support; large bundle.

## Facts

| | |
|---|---|
| Version | 1.9.7-beta.1 |
| Published | 2026-07-14 |
| First published | 2021-02-18 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 9 |
| Unpacked size | 16.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 345 |
| Author | IOTA Foundation |
| Maintainers | domschiener, iota_ci |

## Links

- npm: https://www.npmjs.com/package/@iota/identity-wasm
- Repository: https://github.com/iotaledger/identity
- Homepage: https://www.iota.org
- Issues: https://github.com/iotaledger/identity/issues
- npm.io page: https://npm.io/package/@iota/identity-wasm

## Dependencies (9)

- [jose](https://npm.io/package/jose.md) ^5.9.6
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [@noble/hashes](https://npm.io/package/@noble/hashes.md) ^1.4.0
- [@noble/ed25519](https://npm.io/package/@noble/ed25519.md) ^1.7.3
- [@types/node-fetch](https://npm.io/package/@types/node-fetch.md) ^2.6.2
- [@iota/notarization](https://npm.io/package/@iota/notarization.md) ^0.1.13
- [base64-arraybuffer](https://npm.io/package/base64-arraybuffer.md) ^1.0.2
- [@noble/post-quantum](https://npm.io/package/@noble/post-quantum.md) ^0.2
- [@iota/iota-interaction-ts](https://npm.io/package/@iota/iota-interaction-ts.md) ^0.14.0

## Recent versions

- 1.9.7-beta.1 (latest) — 2026-07-14
- 1.8.0-beta.3 (beta) — 2026-01-20
- 1.6.0-alpha.7 (alpha) — 2025-05-06
- 1.0.0-rc.1 (rc) — 2023-09-29
- 0.5.0-dev.6 (dev) — 2022-03-25
- 1.9.6-beta.1 — 2026-05-29
- 1.9.5-beta.1 — 2026-04-29
- 1.9.4-beta.1 — 2026-03-30
- 1.9.2-beta.1 — 2026-03-03
- 1.9.0-beta.1 — 2026-02-16
- 1.8.0-beta.2 — 2026-01-07
- 1.7.0-beta.1 — 2025-10-14
- 1.6.0-beta.10 — 2025-09-25
- 1.6.0-beta.9 — 2025-09-16
- 1.6.0-beta.8 — 2025-09-01
- … 58 more at https://npm.io/package/@iota/identity-wasm/versions

## README

# IOTA Identity WASM

## [Identity Documentation Pages](https://docs.iota.org/iota-identity)

## [Getting started with the IOTA Identity WASM Library.](https://docs.iota.org/iota-identity/getting-started/wasm)

## [API Reference](https://docs.iota.org/references/iota-identity/wasm/api_ref)

## [Examples](https://github.com/iotaledger/identity/tree/main/bindings/wasm/identity_wasm/examples/README.md)

## Install the Library

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/identity-wasm@alpha
```

## Build the Library

Alternatively, you can build the bindings yourself if you have Rust installed. If not, refer
to [rustup.rs](https://rustup.rs) for the installation.

### Requirements

- [Node.js](https://nodejs.org/en) (>= `v20`)
- [Rust](https://www.rust-lang.org/) (>= 1.65)
- [Cargo](https://doc.rust-lang.org/cargo/) (>= 1.65)
- for running example: a local network node with the IOTA identity package deployed as described [here](./local-network-setup.md)

### 1. Install Local Tooling

If you want to build the library from source you have to install additional build tools locally.

### Install `wasm-bindgen-cli`

First you need to install [`wasm-bindgen-cli`](https://github.com/rustwasm/wasm-bindgen).
A manual installation is required because we use the [Weak References](https://rustwasm.github.io/wasm-bindgen/reference/weak-references.html) feature,
which [`wasm-pack` does not expose](https://github.com/rustwasm/wasm-pack/issues/930).

```bash
cargo install --force wasm-bindgen-cli
```

### Install `wasm-opt`

To reduce the size of the wasm package, it is optimized with `wasm-opt`, which is part of [`binaryen`](https://github.com/WebAssembly/binaryen).

You can either download a [release of binaryen](https://github.com/WebAssembly/binaryen/releases) and make the bin folder available in your PATH or check if your operating system tooling offers a more convenient way of installing the binaries like APT, Homebrew, etc.

Some examples:

- Linux via APT: `sudo apt-get update && sudo apt-get -y install binaryen` (taken from [here](https://installati.one/install-binaryen-ubuntu-22-04/))
- MacOS via Homebrew: `brew install binaryen` (see [Homebrew entry](https://formulae.brew.sh/formula/binaryen))

### 2. Install Dependencies

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

```bash
npm install
```

### 3. Build

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

```bash npm2yarn
npm run build:nodejs
```

<!--

You can build the bindings for the `web` using the following command:

```bash npm2yarn
npm run build:web
```

-->

---
_Source: https://npm.io/package/@iota/identity-wasm · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
