Crate hotshot

source ·
Expand description

Provides a generic rust implementation of the HotShot BFT protocol

Re-exports§

Modules§

Structs§

  • A TwinsHandlerState that forwards each message to both twins, and returns messages from each of them.
  • initializer struct for creating starting block
  • Wrapper for all marketplace config that needs to be passed when creating a new instance of HotShot
  • Bundle of all the memberships a consensus instance uses
  • A TwinsHandlerState that randomly forwards a message to either twin, and returns messages from both.
  • Holds the state needed to participate in HotShot consensus

Enums§

Constants§

  • Length, in bytes, of a 256 bit hash
  • Length, in bytes, of a 512 bit hash

Traits§

  • Trait for handling messages for a node with a twin copy of consensus

Type Aliases§

  • Channel 🔒
    An async broadcast channel