Expand description
A list of primitives introduced in v1.
Structs§
- Block
Approval Meta - Metadata about a block which is now live in the approval protocol.
- RelayVRF
Story - random bytes derived from the VRF submitted within the block by the block author as a credential and used as input to approval assignment criteria.
- Slot
- Unit type wrapper that represents a slot.
- UnsafeVRF
PreOutput - An unsafe VRF pre-output. Provide BABE Epoch info to create a
RelayVRFStory. - VrfPre
Output - VRF pre-output type suitable for schnorrkel operations.
- VrfProof
- VRF proof type suitable for schnorrkel operations.
- VrfSignature
- VRF signature data
- VrfTranscript
- Transcript ready to be used for VRF related operations.
Enums§
- Approval
Error - Errors that can occur during the approvals protocol.
Constants§
- ASSIGNED_
CORE_ CONTEXT - A static context used for transcripts indicating assigned availability core.
- CORE_
RANDOMNESS_ CONTEXT - A static context associated with producing randomness for a core.
- RELAY_
VRF_ DELAY_ CONTEXT - A static context used for all relay-vrf-modulo VRFs.
- RELAY_
VRF_ MODULO_ CONTEXT - A static context used for all relay-vrf-modulo VRFs.
- RELAY_
VRF_ STORY_ CONTEXT - A static context used to compute the Relay VRF story based on the VRF output included in the header-chain.
- TRANCHE_
RANDOMNESS_ CONTEXT - A static context associated with producing randomness for a tranche.
Functions§
- babe_
unsafe_ vrf_ info - Extract the slot number and relay VRF from a header.
Type Aliases§
- Delay
Tranche - Validators assigning to check a particular candidate are split up into tranches. Earlier tranches of validators check first, with later tranches serving as backup.
- Randomness
- Randomness type required by BABE operations.