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§
Macros§
- Implements
ConsensusTime
,Display
,Add
,AddAssign
,Deref
andSub
for the given thing wrapper type around u64.
Structs§
- A proposal to start providing data availability for a block.
- A proposal to start providing data availability for a block.
- Type-safe wrapper around
u64
so we know the thing we’re talking about is a epoch number. - 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 implementingBlockContents
, isTypeMap::BlockPayload
- 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
. - A packed bundle constructed from a sequence of bundles.
- Proposal to append a block.
- Proposal to append a block.
- A proposal to upgrade the network
- VID dispersal data
- VID share and associated metadata for a single node
- 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.
Traits§
- Additional functions required to use a
Leaf
with hotshot-testing.
Functions§
- Fake the thing a genesis block points to. Needed to avoid infinite recursion
- create a random commitment
- Serialization for the QC assembled signature