# @lightsparkdev/crypto-wasm

> A shared library for crypto operations in Lightspark's SDKs.

Latest version **0.1.26** (published 2026-04-30) · 0 weekly downloads

## Install

```sh
npm install @lightsparkdev/crypto-wasm
pnpm add @lightsparkdev/crypto-wasm
yarn add @lightsparkdev/crypto-wasm
bun add @lightsparkdev/crypto-wasm
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.1.26 |
| Published | 2026-04-30 |
| First published | 2023-09-22 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 45 |
| Maintainers | jeremyatlightspark, coreymartin, mgorven.ls |

## Links

- npm: https://www.npmjs.com/package/@lightsparkdev/crypto-wasm
- Repository: https://github.com/lightsparkdev/js-sdk
- Homepage: https://github.com/lightsparkdev/js-sdk#readme
- Issues: https://github.com/lightsparkdev/js-sdk/issues
- npm.io page: https://npm.io/package/@lightsparkdev/crypto-wasm

## Recent versions

- 0.1.26 (latest) — 2026-04-30
- 0.1.25 — 2026-03-27
- 0.1.24 — 2026-03-06
- 0.1.23 — 2026-02-10
- 0.1.22 — 2026-01-04
- 0.1.21 — 2025-12-08
- 0.1.20 — 2025-10-28
- 0.1.19 — 2025-09-22
- 0.1.18 — 2025-08-26
- 0.1.17 — 2025-07-14
- 0.1.16 — 2025-06-20
- 0.1.15 — 2025-06-06
- 0.1.14 — 2025-05-12
- 0.1.13 — 2025-04-04
- 0.1.12 — 2025-03-16
- … 12 more at https://npm.io/package/@lightsparkdev/crypto-wasm/versions

## README

# @lightsparkdev/crypto-wasm

A shared library for crypto operations in Lightspark's SDKs.

Generated via wasm-packing lightspark-crypto-uniffi.

Currently only can be used in Node environments, so if you are using this in Lightspark SDK, make sure to only import using [dynamic imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/import) after checking the environment.

## Updating this package

Running the `sync.sh` script will wasm-pack the lightspark-crypto-uniffi lib and copy over the files to this package.

### Pre-requisite for running the update

1. Clone [webdev](https://github.com/lightsparkdev/webdev) into `~/src`.
2. Clone [lightspark-crypto-uniffi](https://github.com/lightsparkdev/lightspark-crypto-uniffi) into `~/src`.
3. Install [rust](https://www.rust-lang.org/tools/install) and [wasm-pack](https://formulae.brew.sh/formula/wasm-pack). Note rustup is recommended instead of homebrew for installing rust - homebrew requires extra configuration that is [not guarenteed to work](https://rustwasm.github.io/wasm-pack/book/prerequisites/non-rustup-setups.html#manually-add-wasm32-unknown-unknown) for all configurations.
4. `cd ~/src/lightspark-crypto-uniffi && cargo install --path .`

> ⚠️ If you are using an M1 chip macbook, you will need to [run the x86_64 toolchain](https://github.com/rust-bitcoin/rust-secp256k1/issues/283):

```
# Note - this is going to install and use a separate instance of homebrew than you probably already have installed that installs into /usr/local/bin instead of /opt/homebrew/bin. For M1 macs the default is /opt/homebrew/bin - read more about why this is necessary [here](https://earthly.dev/blog/homebrew-on-m1/).
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
arch -x86_64 /usr/local/bin/brew install llvm
export PATH="/usr/local/opt/llvm/bin:$PATH" # add this to your shell profile too so it's sourced automatically
```

### Building for wasm

```
yarn build
```

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