ethereum.forks.amsterdam.block_access_lists.rlp_utils
Utilities for working with Block Access Lists using RLP encoding, as specified in EIP-7928.
This module provides:
RLP encoding functions for all Block Access List types
Hash computation using
keccak256Validation logic to ensure structural correctness
The encoding follows the RLP specification used throughout Ethereum.
compute_block_access_list_hash
Compute the hash of a Block Access List.
The Block Access List is RLP-encoded and then hashed with keccak256.
def compute_block_access_list_hash(block_access_list: BlockAccessList) -> Hash32:
| 26 | """ |
|---|---|
| 27 | Compute the hash of a Block Access List. |
| 28 | |
| 29 | The Block Access List is RLP-encoded and then hashed with keccak256. |
| 30 | """ |
| 31 | return keccak256(rlp.encode(block_access_list)) |