Skip to main content

update_running_commitment

Function update_running_commitment 

Source
pub fn update_running_commitment(
    prev_commitment: &[u8; 32],
    block_hash: &[u8],
    prev_hash: &[u8],
    height: u32,
) -> [u8; 32]
Expand description

Running header commitment chain (Blake2b-512, truncated to 32 bytes).

commitment_i = Blake2b512("ZIDECAR_header_commitment" || prev || block_hash || prev_hash || height_le)