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