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