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