Expand description
Primitives for Sassafras consensus.
Re-exports§
pub use ticket::ticket_id_threshold;
pub use ticket::TicketBody;
pub use ticket::TicketClaim;
pub use ticket::TicketEnvelope;
pub use ticket::TicketId;
Modules§
- digests
- Sassafras digests structures and helpers.
- ticket
- Primitives related to tickets.
- vrf
- Utilities related to VRF input, pre-output and signatures.
Structs§
- Epoch
- Sassafras epoch information
- Epoch
Configuration - Protocol configuration that can be modified on epoch change.
- Opaque
KeyOwnership Proof - An opaque type used to represent the key ownership proof at the runtime API boundary.
- Slot
- Unit type wrapper that represents a slot.
- Slot
Duration - A slot duration defined in milliseconds.
Constants§
- KEY_
TYPE - Key type identifier.
- RANDOMNESS_
LENGTH - VRF output length for per-slot randomness.
- SASSAFRAS_
ENGINE_ ID - Consensus engine identifier.
Traits§
- Sassafras
Api - API necessary for block authorship with Sassafras.
Type Aliases§
- Authority
Id - Sassafras authority identifier. Necessarily equivalent to the schnorrkel public key used in the main Sassafras module. If that ever changes, then this must, too.
- Authority
Index - Index of an authority.
- Authority
Pair - Sassafras authority keypair. Necessarily equivalent to the schnorrkel public key used in the main Sassafras module. If that ever changes, then this must, too.
- Authority
Signature - Sassafras authority signature.
- Ephemeral
Public - A public key.
- Ephemeral
Signature - A signature.
- Equivocation
Proof - An equivocation proof for multiple block authorships on the same slot (i.e. double vote).
- Randomness
- Randomness required by some protocol’s operations.
- Sassafras
Block Weight - Weight of a Sassafras block. Primary blocks have a weight of 1 whereas secondary blocks have a weight of 0.