Module hotshot_types::traits
source · Expand description
Common traits for the HotShot
protocol
Re-exports§
pub use block_contents::BlockPayload;
pub use block_contents::EncodeBytes;
pub use states::ValidatedState;
Modules§
- This module defines the interaction layer with the Solver via the
AuctionResultsProvider
trait, which handles connecting to, and fetching the allocation results from, the Solver. - Abstraction over the contents of a block
- Contains the
ConsensusApi
trait. - The election trait, used to decide which node is the leader and determine if a vote is valid.
- The
Metrics
trait is used to collect information from multiple components in the entire system. - Network access compatibility
- Composite trait for node behavior
- The quorum certificate (QC) trait is a certificate of a sufficient quorum of distinct parties voted for a message or statement.
- Minimal compatibility over public key signatures
- Trait for stake table data structures
- Abstractions over the immutable instance-level state and the global state that blocks modify.
- Abstract storage type for storing DA proposals and VID shares