[−][src]Crate sp_consensus_babe
Primitives for BABE.
Modules
digests | Private implementation details of BABE digests. |
inherents | Inherents for BABE |
Structs
BabeConfiguration | Configuration data used by the BABE consensus engine. |
Enums
ConsensusLog | An consensus log item for BABE. |
Constants
BABE_ENGINE_ID | The |
BABE_VRF_PREFIX | The prefix used by BABE for its VRF keys. |
MEDIAN_ALGORITHM_CARDINALITY | How many blocks to wait before running the median algorithm for relative time This will not vary from chain to chain as it is not dependent on slot duration or epoch length. |
PUBLIC_KEY_LENGTH | The length of the public key |
VRF_OUTPUT_LENGTH | The length of the VRF output |
VRF_PROOF_LENGTH | The length of the VRF proof |
Traits
BabeApi | API necessary for block authorship with BABE. |
Type Definitions
AuthorityId | A Babe authority identifier. Necessarily equivalent to the schnorrkel public key used in the main Babe module. If that ever changes, then this must, too. |
AuthorityIndex | The index of an authority. |
AuthorityPair | A Babe authority keypair. Necessarily equivalent to the schnorrkel public key used in the main Babe module. If that ever changes, then this must, too. |
AuthoritySignature | A Babe authority signature. |
BabeAuthorityWeight | The weight of an authority. |
BabeBlockWeight | The weight of a BABE block. |
SlotNumber | A slot number. |