pub fn compute_commitment_hash(
header_body: &[u8],
txn_region: &[u8],
footer_body: &[u8],
) -> [u8; 32]Expand description
Compute the canonical block-commitment hash (Reward Check Plan A):
txn_data_hash = blake3(txn_region)
commitment = header_body || u64le(txn_region.len()) || txn_data_hash || footer_body
block_hash = blake3("tn-block-commitment" || commitment)header_body is the verbatim 104-byte serialized header body (excluding the
header signature) and footer_body is the verbatim 8-byte serialized footer
body, matching the C tn_block_commitment_t byte layout. This is the single
Rust source of truth shared by the block-builder and stress block-wire paths.