Type Alias hotshot_types::simple_vote::QuorumVote2
source · pub type QuorumVote2<TYPES> = SimpleVote<TYPES, QuorumData2<TYPES>>;
Expand description
Quorum vote Alias
Aliased Type§
struct QuorumVote2<TYPES> {
pub signature: (<TYPES as NodeType>::SignatureKey, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType),
pub data: QuorumData2<TYPES>,
pub view_number: <TYPES as NodeType>::View,
}
Fields§
§signature: (<TYPES as NodeType>::SignatureKey, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType)
The signature share associated with this vote
data: QuorumData2<TYPES>
The leaf commitment being voted on.
view_number: <TYPES as NodeType>::View
The view this vote was cast for
Implementations§
source§impl<TYPES: NodeType> QuorumVote2<TYPES>
impl<TYPES: NodeType> QuorumVote2<TYPES>
sourcepub fn to_vote(self) -> QuorumVote<TYPES>
pub fn to_vote(self) -> QuorumVote<TYPES>
Convert a QuorumVote2
to a QuorumVote