Type Alias hotshot_types::simple_certificate::TimeoutCertificate2
source · pub type TimeoutCertificate2<TYPES> = SimpleCertificate<TYPES, TimeoutData2<TYPES>, SuccessThreshold>;Expand description
Type alias for a TimeoutCertificate2, which is a SimpleCertificate over TimeoutData2
Aliased Type§
struct TimeoutCertificate2<TYPES> {
pub data: TimeoutData2<TYPES>,
vote_commitment: Commitment<TimeoutData2<TYPES>>,
pub view_number: <TYPES as NodeType>::View,
pub signatures: Option<<<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType>,
pub _pd: PhantomData<(TYPES, SuccessThreshold)>,
}Fields§
§data: TimeoutData2<TYPES>The data this certificate is for. I.e the thing that was voted on to create this Certificate
vote_commitment: Commitment<TimeoutData2<TYPES>>commitment of all the votes this cert should be signed over
view_number: <TYPES as NodeType>::ViewWhich view this QC relates to
signatures: Option<<<TYPES as NodeType>::SignatureKey as SignatureKey>::QcType>assembled signature for certificate aggregation
_pd: PhantomData<(TYPES, SuccessThreshold)>phantom data for THRESHOLD and TYPES
Implementations§
source§impl<TYPES: NodeType> TimeoutCertificate2<TYPES>
impl<TYPES: NodeType> TimeoutCertificate2<TYPES>
sourcepub fn to_tc(self) -> TimeoutCertificate<TYPES>
pub fn to_tc(self) -> TimeoutCertificate<TYPES>
Convert a DaCertificate into a DaCertificate2