Skip to main content

compute_dict_hash

Function compute_dict_hash 

Source
pub fn compute_dict_hash(entry: &StreamDictEntry) -> [u8; 32]
Expand description

Computes the canonical BLAKE3 hash of a StreamDictEntry.

The hash is domain-separated by a crate-internal prefix, writes the numeric slot big-endian, and length-prefixes the data-class and identifier strings so a slot remapped to a different class or identifier cannot frame to the same byte stream. Store the returned bytes alongside the record; do not add a hash field to the struct itself.