Trait BlockHeaderCommit

Source
pub trait BlockHeaderCommit<H> {
    // 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> BlockHeaderCommit<H> for HistoryCommit

Source§

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