@getjuratify/crypto
v0.1.1
Published
Reference implementation of the Juratify v1 evidence wire format: canonicalization, hashing, sealing, hash chains, Merkle roots, receipts
Readme
@getjuratify/crypto
Reference implementation of the Juratify v1 evidence wire format. Every byte-level definition an auditor relies on lives here: RFC 8785 (JCS) canonicalization, SHA-256 event hashing, XChaCha20-Poly1305 sealing, per-session hash chains, Merkle roots, and Ed25519 receipt and checkpoint signatures.
The normative spec is docs/evidence-format.md at the repository root. The
golden vectors in src/vectors.test.ts pin the exact output of every
definition; a failing vector means the wire format changed and every
record already sealed under v1 would fail to verify.
All codecs are isomorphic (no Node Buffer, no browser atob), so the
same code runs in Node, browsers, and edge runtimes.
License
Apache-2.0
