Type Alias hotshot_types::simple_vote::DaVote

source ·
pub type DaVote<TYPES> = SimpleVote<TYPES, DaData>;
Expand description

DA vote type alias

Aliased Type§

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

The leaf commitment being voted on.

§view_number: <TYPES as NodeType>::View

The view this vote was cast for

Implementations§

source§

impl<TYPES: NodeType> DaVote<TYPES>

source

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

Convert a QuorumVote to a QuorumVote2