[−][src]Trait sc_consensus_babe::CompatibleDigestItem
A digest item which is usable with BABE consensus.
Required methods
fn babe_pre_digest(seal: RawPreDigest<VRFOutput, VRFProof>) -> Self
Construct a digest item which contains a BABE pre-digest.
fn as_babe_pre_digest(&self) -> Option<RawPreDigest<VRFOutput, VRFProof>>
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, return it.
Implementations on Foreign Types
impl<Hash> CompatibleDigestItem for DigestItem<Hash> where
Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static,
[src]
Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static,
fn babe_pre_digest(
digest: RawPreDigest<VRFOutput, VRFProof>
) -> DigestItem<Hash>
[src]
digest: RawPreDigest<VRFOutput, VRFProof>
) -> DigestItem<Hash>