Expand description
A list of primitives introduced by v2.
Structs§
- Assignment
Cert V2 - A certification of assignment.
- BitIndex
- A bit index in
Bitfield
. - Bitfield
- A read-only bitvec wrapper
- Indirect
Assignment Cert V2 - An assignment criterion which refers to the candidate under which the assignment is relevant by block hash.
- Indirect
Signed Approval Vote V2 - A signed approval vote which references the candidate indirectly via the block.
- Slot
- Unit type wrapper that represents a slot.
- 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
Conversion Error - Errors that can occur when trying to convert to/from approvals v1/v2
- Assignment
Cert Kind V2 - Certificate is changed compared to
AssignmentCertKind
: - Assignment
Conversion Error - Errors that can occur when trying to convert to/from assignment v1/v2
- Bitfield
Error - Errors that can occur when creating and manipulating bitfields.
Constants§
- ASSIGNED_
CORE_ CONTEXT - A static context associated with producing randomness for v2 multi-core assignments.
- CORE_
RANDOMNESS_ CONTEXT - A static context associated with producing randomness for a core.
- RELAY_
VRF_ MODULO_ CONTEXT - A static context used for all relay-vrf-modulo VRFs for v2 multi-core assignments.
Traits§
- AsBit
Index - Helper trait to convert primitives to
BitIndex
.
Type Aliases§
- Candidate
Bitfield - A
read-only
,non-zero
bitfield. Each 1 bit identifies a candidate by the bitfield bit index. - Core
Bitfield - A bitfield of core assignments.
- Randomness
- Randomness type required by BABE operations.