Skip to main content

Module hash

Module hash 

Source
Expand description

Canonical entry hashing for the event store.

Every captured entry carries a 32-byte BLAKE3 hash computed from a domain-separated, length-prefixed serialization of (seq, ts_init, ts_publish, topic, payload_type, payload, headers). The hash is recomputed on every read; a mismatch quarantines the run.

BLAKE3 is the SPEC default for the integrity-first reading: it is fast enough for the capture path and outruns xxhash3 on the verifier scan over GiB-scale runs while remaining a cryptographic hash for tamper detection.

Structs§

EntryHash
The 32-byte canonical hash of an event store entry.

Functions§

compute_entry_hash
Computes the canonical hash of an event store entry.