Skip to main content

Module parser

Module parser 

Source
Expand description

Bounded COSE object parser for the proof-CWT profile.

Parses an untagged COSE object (COSE_Sign1 or COSE_Sign), validates all protected headers, crit sets, typ, hs_domain, and the signature plan, then decodes the claims payload.

This parser does not verify cryptographic signatures — it performs the bounded structural parse and profile-rule validation that must precede signature verification. Signature verification uses the extracted ParsedProof fields with the existing hyprstream_crypto COSE primitives.

Structs§

ParsedProof
A parsed and profile-validated proof-CWT, ready for signature verification.
ParsedSignature
A single signature entry extracted from the COSE object.

Enums§

CoseStructure
Which COSE structure the proof uses.