Expand description
Types and Traits for the HotShot
consensus module
Modules§
- bundle
- This module provides the
Bundle
type - 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
HotShot
instance 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
BitVectorQc
that 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
- traits
- Common traits for the
HotShot
protocol - upgrade_
config - Holds the upgrade configuration specification for HotShot nodes.
- utils
- Utility functions, type aliases, helper structs and enum definitions.
- vid
- This module provides:
- vote
- Vote, Accumulator, and Certificate Types
Macros§
- impl_
has_ epoch - Helper macro for trivial implementation of the
HasEpoch
trait - impl_
has_ none_ epoch - Helper macro for trivial implementation of the
HasEpoch
trait 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
Functions§
- assert_
future - yoinked from futures crate
- boxed_
sync - yoinked from futures crate, adds sync bound that we need
- default_
epoch_ 🔒start_ block
Type Aliases§
- BoxSync
Future - Pinned future that is Send and Sync