Type Alias hotshot_types::simple_vote::ViewSyncCommitVote2
source · pub type ViewSyncCommitVote2<TYPES> = SimpleVote<TYPES, ViewSyncCommitData2<TYPES>>;
Expand description
View Sync Commit Vote 2 type alias
Aliased Type§
struct ViewSyncCommitVote2<TYPES> {
pub signature: (<TYPES as NodeType>::SignatureKey, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType),
pub data: ViewSyncCommitData2<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: ViewSyncCommitData2<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> ViewSyncCommitVote2<TYPES>
impl<TYPES: NodeType> ViewSyncCommitVote2<TYPES>
sourcepub fn to_vote(self) -> ViewSyncCommitVote<TYPES>
pub fn to_vote(self) -> ViewSyncCommitVote<TYPES>
Convert a ViewSyncCommitVote2
to a ViewSyncCommitVote