Function sc_consensus_aura::standalone::check_header_slot_and_seal
source · pub fn check_header_slot_and_seal<B: BlockT, P: Pair>(
slot_now: Slot,
header: B::Header,
authorities: &[<P as Pair>::Public],
) -> Result<(B::Header, Slot, DigestItem), SealVerificationError<B::Header>>
Expand description
Check a header has been signed by the right key. If the slot is too far in the future, an error will be returned. If it’s successful, returns the pre-header (i.e. without the seal), the slot, and the digest item containing the seal.
Note that this does not check for equivocations, and check_equivocation
is recommended
for that purpose.
This digest item will always return Some
when used with as_aura_seal
.