Type Alias hotshot_types::simple_vote::QuorumVote

source ·
pub type QuorumVote<TYPES> = SimpleVote<TYPES, QuorumData<TYPES>>;
Expand description

Quorum vote Alias

Aliased Type§

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

source

pub fn to_vote2(self) -> QuorumVote2<TYPES>

Convert a QuorumVote to a QuorumVote2