Expand description
Browser/Node.js verifier package for Confium.
wasm-bindgen surface, wasm32-unknown-unknown target, verifier-only by
design. Browsers verify; servers sign.
Each subsystem is gated by a verify-* Cargo feature so consumers can
tree-shake aggressively. All features are on by default for out-of-the-box
ergonomics.
Modules§
- signatif
- Browser/Node.js verification of SIGNATIF trusted artifacts.
Structs§
- Certificate
- Parsed X.509 v3 certificate. Construct via
Certificate::from_derorCertificate::from_pem; inspect validity window, fingerprint, serial. - Cmp20
Signer - CMP20 in-process threshold-ECDSA signer.
- Composite
Signature - A composite signature — multiple algorithm components over the same
message. Construct via
CompositeSignature::from_json(the canonical wire format) and verify withCompositeSignature::verify. - Composite
Verification Result - Per-component + aggregate verification outcome.
- Gg18
Signer - GG18 in-process threshold-ECDSA signer. Prefer
Cmp20Signerfor new deployments. - Inclusion
Proof - RFC 6962 inclusion proof: list of (sibling_hash, side) steps from the leaf to the root.
- Merkle
Tree - Append-only Merkle tree mirroring
confium_transparency::MerkleTree. - Predicate
- Parsed DSL predicate. Construct via
Predicate::parseand evaluate viaPredicate::satisfied_by. - Signed
Data - CMS SignedData JSON model — wraps
confium_pki::cms::SignedData.
Functions§
- canonicalize_
exclusive_ xml - Canonicalize XML per Exclusive C14N (RFC 3741).
- canonicalize_
xml - Canonicalize XML per RFC 3076 (Canonical XML 1.0).
- compute_
artifact_ hash - Compute the SHA-256 of an artifact’s bytes. Useful when a client only has the artifact (e.g. a cert DER) and needs the leaf hash input for the inclusion-proof verifier.
- compute_
leaf_ hash - Compute the Merkle leaf hash for an entry. The leaf hash is
SHA-256(0x01 || entry_hash)whereentry_hashisSHA-256(sequence_le_bytes || timestamp_micros_le_bytes || artifact_hash). - core_
version - Confium-core crate version this WASM blob was built against.
- tree_
head_ from_ json - Parse a tree head from JSON. Returns a JSON string with
{ size, root_hex }(root as hex string because wasm-bindgen doesn’t natively marshal Vecin return position of free functions easily). - verify_
inclusion_ with_ head - Verify an inclusion proof against a tree head, without needing to build
the tree. Caller supplies the leaf’s entry hash (the digest of the
artifact being proven present), the proof itself (JSON form as produced
by
MerkleTree::inclusion_proof+ serde), and the tree head (root + size). - version
- Package version (mirrors the Cargo version).