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