Skip to main content

chain_hash

Function chain_hash 

Source
pub fn chain_hash(events: &[ProofEvent]) -> Result<String, ChainError>
Expand description

Rolling chain hash: seeded with 32 zero bytes, then for each event the hash is sha256(prev || sha256_bytes_of_event).