@lib-q/sig
v0.0.6
Published
Post-quantum Digital Signatures for Node.js
Maintainers
Readme
lib-q-sig
Post-quantum signature façade for lib-Q: optional integrations with ML-DSA, SLH-DSA, and FN-DSA behind feature flags. Exposes a cdylib + rlib crate for native and WASM bundles.
Algorithms (feature-gated)
| Feature | Backend crate | Notes |
|--------|----------------|-------|
| ml-dsa | lib-q-ml-dsa | FIPS 204; ring layer in lib-q-ring. |
| slh-dsa | lib-q-slh-dsa | FIPS 205; caller-supplied RNG for no_std-friendly tests. |
| slh-dsa-std | above + lib-q-random | Implicit OS-backed RNG when APIs allow None. |
| slh-dsa-wasm | above + WASM deps | Browser/JS-oriented builds. |
| fn-dsa | lib-q-fn-dsa | FIPS 206. |
Default features: alloc, ml-dsa, std.
Related crates
- lib-q-ml-dsa — direct ML-DSA API and
hardenedmode. - lib-q-core —
SignatureContext,LibQCryptoProvider, algorithm IDs. - lib-q — umbrella re-exports.
Testing
cargo test -p lib-q-sig --features ml-dsa
cargo test -p lib-q-sig --features slh-dsa
cargo test -p lib-q-sig --features slh-dsa-stdSee the workspace README.md for full context.
License
Apache-2.0 — see LICENSE.
Subresource integrity (SHA-384)
Paths in integrity-manifest.json are relative to the package root (including web/ and nodejs/ when both ship).
