🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@lightsparkdev/crypto-wasm

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightsparkdev/crypto-wasm

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

latest
Source
npmnpm
Version
0.1.26
Version published
Maintainers
3
Created
Source

@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 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

  • Clone webdev into ~/src.
  • Clone lightspark-crypto-uniffi into ~/src.
  • Install rust and wasm-pack. Note rustup is recommended instead of homebrew for installing rust - homebrew requires extra configuration that is not guarenteed to work for all configurations.
  • 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:

# 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

FAQs

Package last updated on 30 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts