Expand description
Standalone functions used within the implementation of Aura.
Enums§
- PreDigest
Lookup Error - Errors in pre-digest lookup.
- Seal
Verification Error - Errors in slot and seal verification.
Functions§
- check_
equivocation - Checks if the header is an equivocation and returns the proof in that case.
- check_
header_ slot_ and_ seal - 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.
- claim_
slot - Attempt to claim a slot using a keystore.
- fetch_
authorities - Load the current set of authorities from a runtime at a specific block.
- fetch_
authorities_ with_ compatibility_ mode - Fetch the current set of authorities from the runtime at a specific block.
- find_
pre_ digest - Extract a pre-digest from a block header.
- pre_
digest - Produce the pre-runtime digest containing the slot info.
- seal
- Produce the seal digest item by signing the hash of a block.
- slot_
author - Get the slot author for given block along with authorities.
- slot_
duration - Get the slot duration for Aura by reading from a runtime API at the best block’s state.
- slot_
duration_ at - Get the slot duration for Aura by reading from a runtime API at a given block’s state.