Skip to main content

chain_hash

Function chain_hash 

Source
pub fn chain_hash(parent: &[u8; 32], payload: &[u8]) -> [u8; 32]
Expand description

One append-only DAG link: BLAKE3(parent ‖ payload). Rewriting or reordering any record changes its hash and breaks the parent link of everything after it (tamper-evidence). Start a branch from GENESIS_PARENT.