referrerpolicy=no-referrer-when-downgrade

Trait sc_consensus_babe::CompatibleDigestItem

pub trait CompatibleDigestItem: Sized {
    // Required methods
    fn babe_pre_digest(seal: PreDigest) -> Self;
    fn as_babe_pre_digest(&self) -> Option<PreDigest>;
    fn babe_seal(signature: Signature) -> Self;
    fn as_babe_seal(&self) -> Option<Signature>;
    fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>;
    fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>;
}
Expand description

A digest item which is usable with BABE consensus.

Required Methods§

fn babe_pre_digest(seal: PreDigest) -> Self

Construct a digest item which contains a BABE pre-digest.

fn as_babe_pre_digest(&self) -> Option<PreDigest>

If this item is an BABE pre-digest, return it.

fn babe_seal(signature: Signature) -> Self

Construct a digest item which contains a BABE seal.

fn as_babe_seal(&self) -> Option<Signature>

If this item is a BABE signature, return the signature.

fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>

If this item is a BABE epoch descriptor, return it.

fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>

If this item is a BABE config descriptor, return it.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl CompatibleDigestItem for DigestItem

§

fn babe_pre_digest(digest: PreDigest) -> DigestItem

§

fn as_babe_pre_digest(&self) -> Option<PreDigest>

§

fn babe_seal(signature: Signature) -> DigestItem

§

fn as_babe_seal(&self) -> Option<Signature>

§

fn as_next_epoch_descriptor(&self) -> Option<NextEpochDescriptor>

§

fn as_next_config_descriptor(&self) -> Option<NextConfigDescriptor>

Implementors§