Trait sc_consensus_aura::CompatibleDigestItem [−][src]
pub trait CompatibleDigestItem<Signature> {
fn aura_seal(signature: Signature) -> Self;
fn as_aura_seal(&self) -> Option<Signature>;
fn aura_pre_digest(slot: Slot) -> Self;
fn as_aura_pre_digest(&self) -> Option<Slot>;
}Expand description
A digest item which is usable with aura consensus.
Required methods
Construct a digest item which contains a signature on the hash.
fn as_aura_seal(&self) -> Option<Signature>
fn as_aura_seal(&self) -> Option<Signature>If this item is an Aura seal, return the signature.
fn aura_pre_digest(slot: Slot) -> Self
fn aura_pre_digest(slot: Slot) -> SelfConstruct a digest item which contains the slot number
fn as_aura_pre_digest(&self) -> Option<Slot>
fn as_aura_pre_digest(&self) -> Option<Slot>If this item is an AuRa pre-digest, return the slot number
Implementations on Foreign Types
impl<Signature, Hash> CompatibleDigestItem<Signature> for DigestItem<Hash> where
Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static,
Signature: Codec,
impl<Signature, Hash> CompatibleDigestItem<Signature> for DigestItem<Hash> where
Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static,
Signature: Codec,