Skip to main content

Module verify

Module verify 

Source
Expand description

COSE signature verification for proof CWTs.

After the structural parser validates headers, claims, and plan topology, this module reconstructs the COSE Sig_structure and verifies each component signature against the resolved key material:

  • Unattributed proofs: keys from the self-asserted COSE_KeySet in the body protected header (hs_unattributed_key_set).
  • Authenticated proofs: keys from the credential cnf-resolved signer-suite record (provided by the caller).

Uses coset’s built-in CoseSign1::verify_detached_signature and CoseSign::verify_detached_signature for Sig_structure construction.

Structs§

VerifiedApprover
One additional enrolled logical signer that approved this request.
VerifiedProof
What a successful verification establishes about the proof’s signers.

Functions§

verify_proof_signatures
Verify all component signatures on a parsed request proof.
verify_response_proof
Verify a response proof against the enrolled service identity for the service domain the request was addressed to, and against the exact request it answers.