referrerpolicy=no-referrer-when-downgrade

Crate sp_consensus_sassafras

source ·
Expand description

Primitives for Sassafras consensus.

Re-exports§

Modules§

  • Sassafras digests structures and helpers.
  • Primitives related to tickets.
  • Utilities related to VRF input, pre-output and signatures.

Structs§

  • Sassafras epoch information
  • Protocol configuration that can be modified on epoch change.
  • An opaque type used to represent the key ownership proof at the runtime API boundary.
  • Unit type wrapper that represents a slot.
  • A slot duration defined in milliseconds.

Constants§

Traits§

  • API necessary for block authorship with Sassafras.

Type Aliases§

  • Sassafras authority identifier. Necessarily equivalent to the schnorrkel public key used in the main Sassafras module. If that ever changes, then this must, too.
  • Index of an authority.
  • Sassafras authority keypair. Necessarily equivalent to the schnorrkel public key used in the main Sassafras module. If that ever changes, then this must, too.
  • Sassafras authority signature.
  • A public key.
  • A signature.
  • An equivocation proof for multiple block authorships on the same slot (i.e. double vote).
  • Randomness required by some protocol’s operations.
  • Weight of a Sassafras block. Primary blocks have a weight of 1 whereas secondary blocks have a weight of 0.