Expand description
Types and Traits for the HotShot consensus module
Modules§
- bundle
- This module provides the
Bundletype - consensus
- Provides the core consensus types
- constants
- configurable constants for hotshot
- data
- Provides types useful for representing
HotShot’s data structures - drb
- Holds the types and functions for DRB computation.
- epoch_
membership - Epoch Membership wrappers
- error
- Error type for
HotShot - event
- Events that a
HotShotinstance can emit - hotshot_
config_ file - Holds the configuration file specification for a HotShot node.
- light_
client - Types and structs associated with light client state
- message
- Network message types
- network
- Holds the network configuration specification for HotShot nodes.
- qc
- Implementation for
BitVectorQcthat uses BLS signature + Bit vector. See more details in hotshot paper. - request_
response - Types for the request/response implementations. This module incorporates all of the shared types for all of the network backends.
- signature_
key - Types and structs for the hotshot signature keys
- simple_
certificate - Implementations of the simple certificate type. Used for Quorum, DA, and Timeout Certificates
- simple_
vote - Implementations of the simple vote types.
- stake_
table - Types and structs related to the stake table
- storage_
metrics - traits
- Common traits for the
HotShotprotocol - upgrade_
config - Holds the upgrade configuration specification for HotShot nodes.
- utils
- Utility functions, type aliases, helper structs and enum definitions.
- version_
ser - vid
- This module provides:
- vote
- Vote, Accumulator, and Certificate Types
Macros§
- impl_
has_ epoch - Helper macro for trivial implementation of the
HasEpochtrait - impl_
has_ none_ epoch - Helper macro for trivial implementation of the
HasEpochtrait for types that have no epoch
Structs§
- HotShot
Config - Holds configuration for a
HotShot - Peer
Config - structure of peers’ config, including public key, stake value, and state key.
- Validator
Config - config for validator, including public key, private key, stake value
- Versioned
DaCommittee
Functions§
- assert_
future - yoinked from futures crate
- boxed_
sync - yoinked from futures crate, adds sync bound that we need
- default_
epoch_ 🔒start_ block - default_
stake_ 🔒table_ capacity
Type Aliases§
- BoxSync
Future - Pinned future that is Send and Sync