Skip to main content

compute_batch_root

Function compute_batch_root 

Source
pub fn compute_batch_root(
    state_root: &RootHash,
    risk_root: &RootHash,
    command_mmr_root: &MmrHash,
    obligation_mmr_root: &MmrHash,
    intent_mmr_root: &MmrHash,
) -> [u8; 32]
Expand description

Compute the batch root that commits to all state.

batch_root = keccak256(
    state_tree_root,
    risk_tree_root,
    command_mmr_peaks_hash,
    obligation_mmr_peaks_hash,
    intent_mmr_peaks_hash,
)