Trait risc0_steel::EvmBlockHeader
source · pub trait EvmBlockHeader: Sealable {
// Required methods
fn parent_hash(&self) -> &B256;
fn number(&self) -> BlockNumber;
fn timestamp(&self) -> u64;
fn state_root(&self) -> &B256;
fn receipts_root(&self) -> &B256;
fn logs_bloom(&self) -> &Bloom;
fn fill_block_env(&self, blk_env: &mut BlockEnv);
}
Expand description
An EVM abstraction of a block header.
Required Methods§
sourcefn parent_hash(&self) -> &B256
fn parent_hash(&self) -> &B256
Returns the hash of the parent block’s header.
sourcefn state_root(&self) -> &B256
fn state_root(&self) -> &B256
Returns the state root hash.
sourcefn receipts_root(&self) -> &B256
Available on crate feature unstable-event
only.
fn receipts_root(&self) -> &B256
unstable-event
only.Returns the receipts root hash of the block.
sourcefn logs_bloom(&self) -> &Bloom
Available on crate feature unstable-event
only.
fn logs_bloom(&self) -> &Bloom
unstable-event
only.Returns the logs bloom filter of the block
sourcefn fill_block_env(&self, blk_env: &mut BlockEnv)
fn fill_block_env(&self, blk_env: &mut BlockEnv)
Fills the EVM block environment with the header’s data.
Object Safety§
This trait is not object safe.