Skip to main content

compute_marker_hash

Function compute_marker_hash 

Source
pub fn compute_marker_hash(snapshot: &DataCursorSnapshot) -> [u8; 32]
Expand description

Computes the canonical BLAKE3 hash of a DataCursorSnapshot.

The hash is domain-separated by a crate-internal prefix, writes numeric fields big-endian in declared order, and length-prefixes the variable-length cursor list so two distinct snapshots cannot frame to the same byte stream. Store the returned bytes alongside the record; do not add a hash field to the struct itself.