Crate hotshot_types
source ·Expand description
Types and Traits for the HotShot consensus module
Modules§
- This module provides the
Bundletype - Provides the core consensus types
- configurable constants for hotshot
- Provides types useful for representing
HotShot’s data structures - Holds the types and functions for DRB computation.
- Error type for
HotShot - Events that a
HotShotinstance can emit - Holds the configuration file specification for a HotShot node.
- Types and structs associated with light client state
- Network message types
- Holds the network configuration specification for HotShot nodes.
- Implementation for
BitVectorQcthat uses BLS signature + Bit vector. See more details in hotshot paper. - Types for the request/response implementations. This module incorporates all of the shared types for all of the network backends.
- Types and structs for the hotshot signature keys
- Implementations of the simple certificate type. Used for Quorum, DA, and Timeout Certificates
- Implementations of the simple vote types.
- Types and structs related to the stake table
- Common traits for the
HotShotprotocol - Holds the upgrade configuration specification for HotShot nodes.
- Utility functions, type aliases, helper structs and enum definitions.
- Holds the validator configuration specification for HotShot nodes.
- This module provides:
- Vote, Accumulator, and Certificate Types
Macros§
- Helper macro for trivial implementation of the
HasEpochtrait - Helper macro for trivial implementation of the
HasEpochtrait for types that have no epoch
Structs§
- Holds configuration for a
HotShot - structure of peers’ config, including public key, stake value, and state key.
- config for validator, including public key, private key, stake value
Functions§
- yoinked from futures crate
- yoinked from futures crate, adds sync bound that we need
Type Aliases§
- Pinned future that is Send and Sync