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.
- Pair
Signatures - Caller-owned output signatures. Byte presence is not verification.
- Paired
Public Keys - Borrowed primitive encodings; the caller separately admits trusted authority.
- Parsed
Pair - Parsed syntax only, never a signature or authority grant.
- Verified
Pair - 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.