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