Skip to main content

verify_checkpoint_signature

Function verify_checkpoint_signature 

Source
pub fn verify_checkpoint_signature(
    cp: &SignedCheckpoint,
    ed_vk: &VerifyingKey,
    pq_vk: Option<&MlDsaVerifyingKey>,
    require_pq: bool,
) -> Result<(), LedgerError>
Expand description

Verify a checkpoint’s composite signature against the ledger DID’s key material, delegating to hyprstream_crypto::cose_sign::verify_composite.

This is the load-bearing use of the unconditional hyprstream-crypto dependency: checkpoint signatures gate anchoring, settlement, and dispute evidence, so the verification primitive belongs in the ledger crate. Full journal replay + multi-checkpoint verification (verify.rs / the CLI) is a later work item; this verifies a single checkpoint’s signature.