Trait risc0_steel::BlockHeaderCommit

source ·
pub trait BlockHeaderCommit<H: EvmBlockHeader> {
    // Required method
    fn commit(self, header: &Sealed<H>, config_id: B256) -> Commitment;
}
Expand description

A trait linking the block header to a commitment.

Required Methods§

source

fn commit(self, header: &Sealed<H>, config_id: B256) -> Commitment

Creates a verifiable Commitment of the header.

Implementations on Foreign Types§

source§

impl<H: EvmBlockHeader> BlockHeaderCommit<H> for ()

Implement BlockHeaderCommit for the unit type. This makes it possible to treat an HostEvmEnv<D, H, ()>, which is used for the BlockInput in the same way as any other HostEvmEnv<D, H, BlockHeaderCommit>.

source§

fn commit(self, header: &Sealed<H>, config_id: B256) -> Commitment

Implementors§

source§

impl<H: EvmBlockHeader> BlockHeaderCommit<H> for HistoryCommit

Available on crate feature unstable-history only.
source§

impl<H: EvmBlockHeader, const LEAF_INDEX: usize> BlockHeaderCommit<H> for GeneralizedBeaconCommit<LEAF_INDEX>