Structs§
Enums§
Functions§
- compute_
block_ receipt_ proof - Compute a proof for the
tx_index_in_block-th receipt in a block. - compute_
epoch_ receipt_ proof - Compute a proof for the
tx_index_in_block-th receipt in theblock_index_in_epoch-th block in an epoch. - compute_
receipts_ root - Compute epoch receipts root.
This value is stored in the
deferred_receipts_rootheader field. - compute_
transaction_ proof - Compute a proof for the
tx_index_in_block-th transaction in a block. - compute_
transaction_ root - Compute block transaction root.
This value is stored in the
transactions_rootheader field. - is_
valid_ receipt_ inclusion_ proof - Use
block_index_proofto get the correct block receipts trie root for theblock_index_in_epoch-th block in an epoch withnum_blocks_in_epochblocks and receipts rootverified_epoch_receipts_root. Then, useblock_receipt_proofto verify thatreceiptis indeed thetx_index_in_block-th receipt in a block withnum_txs_in_blocktransactions and the transaction root from the previous step. - is_
valid_ tx_ inclusion_ proof - Use
proofto verify thattx_hashis indeed thetx_index_in_block-th transaction in a block withnum_txs_in_blocktransactions and transaction rootblock_tx_root.