pub trait Compute<'id, T>: Borrow<[u8]> {
// Required method
fn compute_hash(&'id self) -> AtomDigest;
}Expand description
A trait for computing the BLAKE3 hash of an AtomId.
This trait provides a method to compute a cryptographically secure hash that can serve as a unique identifier for an atom in storage backends.
Required Methods§
Sourcefn compute_hash(&'id self) -> AtomDigest
fn compute_hash(&'id self) -> AtomDigest
Computes the BLAKE3 hash of this AtomId.
The hash is keyed with the atom’s root value, ensuring that atoms with the same label but different origins produce distinct hashes.
§Returns
An IdHash containing the 32-byte BLAKE3 hash and a reference to the
original AtomId.