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_root
header 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_root
header field. - is_
valid_ receipt_ inclusion_ proof - Use
block_index_proof
to get the correct block receipts trie root for theblock_index_in_epoch
-th block in an epoch withnum_blocks_in_epoch
blocks and receipts rootverified_epoch_receipts_root
. Then, useblock_receipt_proof
to verify thatreceipt
is indeed thetx_index_in_block
-th receipt in a block withnum_txs_in_block
transactions and the transaction root from the previous step. - is_
valid_ tx_ inclusion_ proof - Use
proof
to verify thattx_hash
is indeed thetx_index_in_block
-th transaction in a block withnum_txs_in_block
transactions and transaction rootblock_tx_root
.