Module sc_consensus_aura::standalone
source · Expand description
Standalone functions used within the implementation of Aura.
Enums§
- Errors in pre-digest lookup.
- Errors in slot and seal verification.
Functions§
- Checks if the header is an equivocation and returns the proof in that case.
- 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.
- Attempt to claim a slot using a keystore.
- Load the current set of authorities from a runtime at a specific block.
- Fetch the current set of authorities from the runtime at a specific block.
- Extract a pre-digest from a block header.
- Produce the pre-runtime digest containing the slot info.
- Produce the seal digest item by signing the hash of a block.
- Get the slot author for given block along with authorities.
- Get the slot duration for Aura by reading from a runtime API at the best block’s state.
- Get the slot duration for Aura by reading from a runtime API at a given block’s state.