Type Alias hotshot_types::simple_vote::DaVote2

source ·
pub type DaVote2<TYPES> = SimpleVote<TYPES, DaData2<TYPES>>;
Expand description

DA vote 2 type alias

Aliased Type§

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

source

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

Convert a QuorumVote2 to a QuorumVote