Skip to main content

Certificate2

Type Alias Certificate2 

Source
pub type Certificate2<T> = SimpleCertificate<T, Vote2Data<T>, SuccessThreshold>;

Aliased Type§

pub struct Certificate2<T> {
    pub data: Vote2Data<T>,
    pub view_number: ViewNumber,
    pub signatures: Option<<<T as NodeType>::SignatureKey as SignatureKey>::QcType>,
    pub _pd: PhantomData<(T, SuccessThreshold)>,
    /* private fields */
}

Fields§

§data: Vote2Data<T>

The data this certificate is for. I.e the thing that was voted on to create this Certificate

§view_number: ViewNumber

Which view this QC relates to

§signatures: Option<<<T as NodeType>::SignatureKey as SignatureKey>::QcType>

assembled signature for certificate aggregation

§_pd: PhantomData<(T, SuccessThreshold)>

phantom data for THRESHOLD and TYPES