Skip to main content

Cert

Type Alias Cert 

Source
pub type Cert<T, V, Th> = SimpleCertificate<T, <V as Vote<T>>::Commitment, Th>;
Expand description

The certificate formed from votes of type V under threshold Th.

Aliased Type§

pub struct Cert<T, V, Th> {
    pub data: <V as Vote<T>>::Commitment,
    pub view_number: ViewNumber,
    pub signatures: Option<<<T as NodeType>::SignatureKey as SignatureKey>::QcType>,
    pub _pd: PhantomData<(T, Th)>,
    /* private fields */
}

Fields§

§data: <V as Vote<T>>::Commitment

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, Th)>

phantom data for THRESHOLD and TYPES