Type Alias hotshot_types::simple_vote::ViewSyncPreCommitVote2

source ·
pub type ViewSyncPreCommitVote2<TYPES> = SimpleVote<TYPES, ViewSyncPreCommitData2<TYPES>>;
Expand description

View Sync Pre Commit Vote 2 type alias

Aliased Type§

struct ViewSyncPreCommitVote2<TYPES> {
    pub signature: (<TYPES as NodeType>::SignatureKey, <<TYPES as NodeType>::SignatureKey as SignatureKey>::PureAssembledSignatureType),
    pub data: ViewSyncPreCommitData2<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: ViewSyncPreCommitData2<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> ViewSyncPreCommitVote2<TYPES>

source

pub fn to_vote(self) -> ViewSyncPreCommitVote<TYPES>

Convert a ViewSyncPreCommitVote2 to a ViewSyncPreCommitVote