Skip to content

v0.2.0

Choose a tag to compare

@stackdump stackdump released this 18 Mar 14:13
· 68 commits to main since this release
e3c9869

bitwrap v0.2.0

Client-side ZK proving, EVM deployment, and full Go/JS parity.

New: WASM Prover

  • Groth16 proving runs entirely in the browser via WASM
  • Load pre-compiled keys from server or compile circuits offline
  • Build with make wasm (~4.6MB gzipped)

New: Key Persistence

  • -key-dir ./keys persists circuit keys across restarts
  • First startup compiles circuits + saves keys; subsequent starts load instantly
  • GET /api/vk/{circuit} — export verifying key
  • GET /api/vk/{circuit}/solidity — export Solidity verifier contract

New: EVM Deployment

  • GET /api/bundle/{template} — download complete Foundry project (contract + verifier + tests + deploy script)
  • Remix plugin now deploys both contract and ZK verifier to workspace
  • Added "Foundry Bundle" download button to Remix plugin

New: Full Go/JS Parity

  • mimc.js — MiMC-BN254 hash (verified against Go)
  • merkle.js — fixed-depth binary Merkle tree
  • witness-builder.js — witness builders for all 6 circuits
  • safemath.js — U256 overflow-checked arithmetic
  • model.js — Petri net model with validation
  • state.js — state machine execution (fire, enabled, canReach)
  • bridge.js — Schema <-> Model conversion

Breaking Changes

  • arc/ moved from internal/arc/ — now importable as github.com/stackdump/bitwrap-io/arc
  • public/ moved to repo root — CDN path is now @latest/public/
  • internal/static/ removed
  • NewArcnetService() now takes a keyDir string parameter