Crate hotshot_types

source ·
Expand description

Types and Traits for the HotShot consensus module

Modules§

  • This module provides the Bundle type
  • 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 HotShot instance 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 BitVectorQc that 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 HotShot protocol
  • 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 HasEpoch trait

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§

Type Aliases§