Module hotshot_types::simple_vote
source · Expand description
Implementations of the simple vote types.
Modules§
- sealed 🔒Sealed is used to make sure no other files can implement the Voteable trait. All simple voteable types should be implemented here. This prevents us from creating/using improper types when using the vote types.
Structs§
- Data used for a DA vote.
- Data used for a DA vote.
- Data used for a yes vote. Used to distinguish votes sent by the next epoch nodes.
- Data used for a yes vote.
- Data used for a yes vote.
- A simple yes vote over some votable type.
- Data used for a timeout vote.
- Data used for a timeout vote.
- Data used for an upgrade once epochs are implemented
- Data used for a Upgrade vote.
- A wrapper for vote data that carries a view number and an
upgrade_lock
, allowing switching the commitment calculation dynamically depending on the version - Data used for a Commit vote.
- Data used for a Commit vote.
- Data used for a Finalize vote.
- Data used for a Finalize vote.
- Data used for a Pre Commit vote.
- Data used for a Pre Commit vote.
Traits§
- A trait for types belonging for specific epoch
- Marker that data should use the quorum cert type
- Marker trait for data or commitments that can be voted on. Only structs in this file can implement voteable. This is enforced with the
Sealed
trait Sealing this trait prevents creating new vote types outside this file. - Marker trait for data or commitments that can be voted on. Only structs in this file can implement voteable. This is enforced with the
Sealed
trait Sealing this trait prevents creating new vote types outside this file.
Functions§
- This implements commit for all the types which contain a view and relay public key.
Type Aliases§
- DA vote type alias
- DA vote 2 type alias
- Quorum vote Alias. This type is useful to distinguish the next epoch nodes’ votes.
- Quorum vote Alias
- Quorum vote Alias
- Timeout Vote type alias
- Timeout Vote 2 type alias
- Upgrade proposal vote
- Upgrade proposal 2 vote
- View Sync Commit Vote type alias
- View Sync Commit Vote 2 type alias
- View Sync Finalize Vote type alias
- View Sync Finalize Vote 2 type alias
- View Sync Pre Commit Vote type alias
- View Sync Pre Commit Vote 2 type alias