Trait alloy_consensus::sealed::Sealable

source ·
pub trait Sealable: Sized {
    // Required method
    fn hash(&self) -> B256;

    // Provided methods
    fn seal_slow(self) -> Sealed<Self> { ... }
    fn seal_unchecked(self, seal: B256) -> Sealed<Self> { ... }
}
Expand description

Sealable objects.

Required Methods§

source

fn hash(&self) -> B256

Calculate the seal hash, this may be slow.

Provided Methods§

source

fn seal_slow(self) -> Sealed<Self>

Seal the object by calculating the hash. This may be slow.

source

fn seal_unchecked(self, seal: B256) -> Sealed<Self>

Instantiate an unchecked seal. This should be used with caution.

Object Safety§

This trait is not object safe.

Implementors§