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§
Sourcefn commit(self, header: &Sealed<H>, config_id: B256) -> Commitment
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>.
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>.