pub fn check_block_contents<T: AsRef<[u8]>, R: AsRef<[u8]>>(
header: &Header,
transaction_hashes: &[T],
result_leaves: &[R],
) -> Result<(), BlockProofError>Expand description
Check that a block’s contents are the ones header commits to: every transaction, by
its hash, in block order, and the result leaf of each.
A block without transactions has no results, and its header commits to that too: the root of nothing.