Trait sc_consensus_aura::CompatibleDigestItem[][src]

pub trait CompatibleDigestItem<P: Pair>: Sized {
    fn aura_seal(signature: <P as Pair>::Signature) -> Self;
fn as_aura_seal(&self) -> Option<<P as Pair>::Signature>;
fn aura_pre_digest(slot_num: u64) -> Self;
fn as_aura_pre_digest(&self) -> Option<u64>; }

A digest item which is usable with aura consensus.

Required methods

fn aura_seal(signature: <P as Pair>::Signature) -> Self[src]

Construct a digest item which contains a signature on the hash.

fn as_aura_seal(&self) -> Option<<P as Pair>::Signature>[src]

If this item is an Aura seal, return the signature.

fn aura_pre_digest(slot_num: u64) -> Self[src]

Construct a digest item which contains the slot number

fn as_aura_pre_digest(&self) -> Option<u64>[src]

If this item is an AuRa pre-digest, return the slot number

Loading content...

Implementations on Foreign Types

impl<P, Hash> CompatibleDigestItem<P> for DigestItem<Hash> where
    P: Pair,
    <P as Pair>::Signature: Codec,
    Hash: Debug + Send + Sync + Eq + Clone + Codec + 'static, 
[src]

Loading content...

Implementors

Loading content...