An order of magnitude faster
Elliptic curves and bilinear pairings run in WASM. SM4's six modes are 3.6–11.2× faster than a pure-JS reference, SM2 1.8–7.6×, SM3 3.1–3.5× and ZUC 2.3×.
SM2 / SM3 / SM4 / SM9 / ZUC — one API for Node 18+ and modern browsers. Split per algorithm, lazy-loaded on demand.
Documentation status
The Chinese pages are the complete reference — full parameter tables, usage and live Playgrounds for all five algorithms. These English pages carry the core material; the per-algorithm API tables are being translated.
The shape of this library
Each algorithm is its own namespace exposing ensureLoaded() plus business functions. The wasm is split per algorithm: only the algorithm you call gets loaded. await algo.ensureLoaded() once, then every business call is synchronous.