Skip to content

crypto-wasm

The WASM wrapper underneath it all, over the cryptographic primitives library.

Contributor, 2025

  • Rust
  • WebAssembly
  • wasm-pack
  • arkworks
  • BBS+
Open on GitHub

What it is

The thin layer between Dock’s Rust crypto library and JavaScript: wasm-pack compiles the Rust to WebAssembly, and this crate exposes free-standing functions for BBS+ signatures, accumulators and the composite proof system. Everything crypto-wasm-ts offers runs through here.

What I did

A library like this ages at the speed of its dependencies. In 2025 I brought it up to date: moving the Dock crypto crates and arkworks to their current versions and re-typing the accumulator, bound-check and composite proof modules to match, updating the threshold signature protocol to name its hash functions explicitly, pinning the Rust toolchain, installing wasm-pack directly in CI so builds stopped picking up an old version, and moving the JavaScript side to Yarn 4 with Node 22 and 24 in the matrix.

Those changes shipped as versions 0.34 and 0.35, which crypto-wasm-ts then adopted.

More in the open.

The rest of what I’ve built where anyone can read it.

Want to build the next one together?

Open-source, research or a product with real stakes — I’d like to hear about it.

Write to me on LinkedIn