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§

source

fn parent_hash(&self) -> &B256

Returns the hash of the parent block’s header.

source

fn number(&self) -> BlockNumber

Returns the block number.

source

fn timestamp(&self) -> u64

Returns the block timestamp.

source

fn state_root(&self) -> &B256

Returns the state root hash.

source

fn receipts_root(&self) -> &B256

Available on crate feature unstable-event only.

Returns the receipts root hash of the block.

source

fn logs_bloom(&self) -> &Bloom

Available on crate feature unstable-event only.

Returns the logs bloom filter of the block

source

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.

Implementors§