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 yes vote.
- A simple yes vote over some votable type.
- Data used for a timeout vote.
- 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 VID vote.
- Data used for a Commit vote.
- Data used for a Finalize vote.
- Data used for a Pre Commit vote.
Traits§
- 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
- Quorum vote Alias
- Timeout Vote type alias
- Upgrade proposal vote
- View Sync Commit Vote type alias
- View Sync Finalize Vote type alias
- View Sync Pre Commit Vote type alias