Skip to main content

verify_checkpoint_linkage

Function verify_checkpoint_linkage 

Source
pub fn verify_checkpoint_linkage(
    current: &VerifiedCheckpoint,
    checkpoint: CertifiedCheckpointSummary,
) -> Result<CertifiedCheckpointSummary, CertifiedCheckpointSummary>
Expand description

The chain-linkage part of checkpoint verification: checks that checkpoint directly extends current (matching previous digest and a valid epoch transition). Does not verify authority signatures; returns the summary unchanged on success so the caller can finish verification.

§Panics

Panics if checkpoint’s sequence number is not current’s plus one.