Module hotshot_types::data

source ·
Expand description

Provides types useful for representing HotShot’s data structures

This module provides types for representing consensus internal state, such as leaves, HotShot’s version of a block, and proposals, messages upon which to reach the consensus.

Modules§

Structs§

  • A proposal to start providing data availability for a block.
  • SNAFU context selector for the BlockError::InconsistentPayloadCommitment variant
  • SNAFU context selector for the BlockError::InvalidBlockHeader variant
  • SNAFU context selector for the BlockError::InvalidTransactionLength variant
  • This is the consensus-internal analogous concept to a block, and it contains the block proper, as well as the hash of its parent Leaf. NOTE: State is constrained to implementing BlockContents, is TypeMap::BlockPayload
  • A packed bundle constructed from a sequence of bundles.
  • Proposal to append a block.
  • A proposal to upgrade the network
  • VID dispersal data
  • VID share and associated metadata for a single node
  • Type-safe wrapper around u64 so we know the thing we’re talking about is a view number.

Enums§

  • The error type for block and its transactions.
  • Helper type to encapsulate the various ways that proposal certificates can be captured and stored.

Constants§

Traits§

Functions§