Skip to main content

Module cose

Module cose 

Source
Expand description

Bounded paired COSE_Sign1 candidate for QBDL publication proofs.

This strict profile is NOT a generic COSE implementation. Both signatures authenticate one exact expected binding. A verified pair is NOT authority: QBS-04 must independently admit the supplied keys and current controller. Legacy contextual adapters and their qualification flags are unchanged.

Structs§

Binding
Unverified binding. Public fields confer no authority.
KeyIds
Application-domain SHA-384 references, not COSE thumbprints.
PairSignatures
Caller-owned output signatures. Byte presence is not verification.
PairedPublicKeys
Borrowed primitive encodings; the caller separately admits trusted authority.
ParsedPair
Parsed syntax only, never a signature or authority grant.
VerifiedPair
Both signatures match the caller’s expected binding under the supplied pair. NOT proof of trusted controller authority, current consent or policy.
Workspace
Public-message scratch. Provider-internal resources are separately qualified.

Constants§

ED25519
EXTERNAL_AAD
MAX_AUDIENCE_BYTES
MAX_BINDING_BYTES
MAX_ENVELOPE_BYTES
MAX_PROTECTED_BYTES
MAX_PURPOSE_BYTES
MAX_SIG_STRUCTURE_BYTES
ML_DSA_65
PROFILE
SCHEMA_VERSION

Functions§

decode_binding
Parse canonical syntax only. Returned fields are explicitly UNVERIFIED.
decode_pair
Parse syntax and common payload/key role consistency, without crypto checks.
encode_binding
Encode the seven-field binding. Output is invalid on any error.
encode_pair
Serialize canonical binding bytes and supplied signatures; does not verify. No prefix is valid after an error. Detached/extension encodings are excluded.
sig_structure_into
RFC 9052 Signature1 bytes, with fixed profile AAD and canonical protection. This function only encodes; its result conveys no signature verification.
sign_pair
Public signing requires the existing library owner’s single-use capability. Cancellation/generation updates are serialized against final publication. Scratch signatures are erased on every error; output is untouched unless publication succeeds. The host must provide a trusted clock at admission.
verify_pair
Verify BOTH signatures and every expected binding field. No authority is minted. Unknown/expired/revoked controllers must be rejected independently by QBS-04.