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§
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 ()
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>
.
fn commit(self, header: &Sealed<H>, config_id: B256) -> Commitment
Implementors§
impl<H: EvmBlockHeader> BlockHeaderCommit<H> for HistoryCommit
Available on crate feature
unstable-history
only.