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§
- DaData
- Data used for a DA vote.
- DaData2
- Data used for a DA vote.
- Epoch
Root Quorum Vote - Light
Client State Update Vote - Type for light client state update vote
- Next
Epoch Quorum Data2 - Data used for a yes vote. Used to distinguish votes sent by the next epoch nodes.
- Quorum
Data - Data used for a yes vote.
- Quorum
Data2 - Data used for a yes vote.
- Simple
Vote - A simple yes vote over some votable type.
- Timeout
Data - Data used for a timeout vote.
- Timeout
Data2 - Data used for a timeout vote.
- Upgrade
Data2 - Data used for an upgrade once epochs are implemented
- Upgrade
Proposal Data - Data used for a Upgrade vote.
- Versioned
Vote Data - A wrapper for vote data that carries a view number and an
upgrade_lock
, allowing switching the commitment calculation dynamically depending on the version - View
Sync Commit Data - Data used for a Commit vote.
- View
Sync Commit Data2 - Data used for a Commit vote.
- View
Sync Finalize Data - Data used for a Finalize vote.
- View
Sync Finalize Data2 - Data used for a Finalize vote.
- View
Sync PreCommit Data - Data used for a Pre Commit vote.
- View
Sync PreCommit Data2 - Data used for a Pre Commit vote.
Traits§
- HasEpoch
- A trait for types belonging for specific epoch
- Quorum
Marker 🔒 - Marker that data should use the quorum cert type
- Voteable
- 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. - Voteable2
- 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§
- view_
and_ 🔒relay_ commit - This implements commit for all the types which contain a view and relay public key.
Type Aliases§
- DaVote
- DA vote type alias
- DaVote2
- DA vote 2 type alias
- Next
Epoch Quorum Vote2 - Quorum vote Alias. This type is useful to distinguish the next epoch nodes’ votes.
- Quorum
Vote - Quorum vote Alias
- Quorum
Vote2 - Quorum vote Alias
- Timeout
Vote - Timeout Vote type alias
- Timeout
Vote2 - Timeout Vote 2 type alias
- Upgrade
Vote - Upgrade proposal vote
- Upgrade
Vote2 - Upgrade proposal 2 vote
- View
Sync Commit Vote - View Sync Commit Vote type alias
- View
Sync Commit Vote2 - View Sync Commit Vote 2 type alias
- View
Sync Finalize Vote - View Sync Finalize Vote type alias
- View
Sync Finalize Vote2 - View Sync Finalize Vote 2 type alias
- View
Sync PreCommit Vote - View Sync Pre Commit Vote type alias
- View
Sync PreCommit Vote2 - View Sync Pre Commit Vote 2 type alias