| Internet-Draft | Cedulon PQ Hybrid | December 2026 |
| Dogru | Expires 8 June 2027 | [Page] |
This document specifies an optional second signature on the spend receipts and epoch checkpoints of the Cedulon core document (draft-dogru-cedulon-core). The nested object keeps the core profile, including its Ed25519 signature. A wrapper adds one ML-DSA-87 COSE_Sign1 over the same payload and binds that signature to the classic COSE bytes. A verifier that does not implement this profile is given the nested object. It does not read the wrapper.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 8 June 2027.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
[CEDULON-CORE] defines a spend receipt and an epoch checkpoint as a COSE_Sign1 [RFC9052] signed with Ed25519 [RFC8032]. This profile adds a second COSE_Sign1, signed with ML-DSA-87 [RFC9964] [FIPS204], in a wrapper around that object. The nested receipt or checkpoint is not rewritten. Its claims, its Ed25519 signature, and its content type stay the bytes [CEDULON-CORE] already defines. A verifier that does not implement this profile does not read the wrapper. The caller passes the nested receipt or checkpoint, and that object is unchanged.¶
The profile applies when the caller passes a hybrid policy
configuration (HybridPolicyConfig) to the audit, which prepares the
policy itself with createHybridPolicy; the audit does not take the
prepared HybridPolicy that the standalone verifier takes. An audit called with no policy argument is the audit of
[CEDULON-CORE] and does not read a PQ half. So is an audit whose
policy is an object other than null or an array, with an own
enumerable data property mode whose value is classic, and whose
only enumerable string key on that object or on a prototype before
Object.prototype is mode. auditWindows, the MCP server, and the
command-line audit stay on that classic entry.¶
When a hybrid policy is in force, a receipt, a checkpoint, and an anchor each require both halves. An attached witness body that is only the classic object stays when the SHA-256 of its COSE octets equals the SHA-256 of a checkpoint whose PQ half verified in the same audit, as Section 8 states. Other inputs, such as the witness envelope, extracts and manifests, carry no PQ half and are verified as [CEDULON-CORE] states.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
The ML-DSA-87 COSE_Sign1 carried in pqCoseHex.¶
The nested receipt or checkpoint, which is a COSE_Sign1 of [CEDULON-CORE].¶
The COSE algorithm identifier -19 is Ed25519 [RFC8032]. That COSE registration is Section 4.2.1 of [RFC9864]. The COSE algorithm identifier -50 is ML-DSA-87, registered by [RFC9964].¶
A hybrid receipt is a JSON object with the members hybrid,
receipt, and pqCoseHex. A hybrid checkpoint is the same object
with checkpoint in place of receipt. A JSON text has no other
member: every JSON member is an own enumerable string key, and an
extra one is refused. The TypeScript verifier applies that extra-member
check to Object.keys. A non-enumerable key or a symbol key is not
in that list. hybrid is the number 1. A JSON parser that accepts the
token 1.0 yields the number 1, and that value is version 1. Any
other value, including a string, is refused as pq-suite-mismatch
with detail wrapper-version.¶
The wrapper check reads own data properties. An inherited member is
absent. An own enumerable accessor under a string key is not called and is refused as
pq-suite-mismatch with detail wrapper-members. A non-enumerable
accessor on an expected member is not that scan. It is treated as a
missing member, so the detail can be wrapper-members,
legacy-object, wrapper-role, or pq-absent. An object
that has no hybrid member and that has claims, coseHex,
encoding, signature, or publicKeyPem is a classic object and is
refused as pq-signature-missing with detail legacy-object. Any
other object without hybrid is pq-suite-mismatch with detail
wrapper-members. The member for the other role, present while this
role's member is absent, is pq-suite-mismatch with detail
wrapper-role. The role member MUST be an object.¶
pqCoseHex absent, undefined, or the empty string is
pq-signature-missing with detail pq-absent. A present pqCoseHex
that is not a string, including null, a number, or an object, is
pq-signature-bad with detail pq-hex-type.¶
The classic half is the COSE_Sign1 already defined for that role. Its
protected header carries algorithm -19, a kid, and content type
application/cedulon-receipt+cbor or
application/cedulon-checkpoint+cbor, matching the role. It MUST NOT
carry the text label cedulon-pair. The unprotected header MUST be an
empty map. The signature value is 64 octets.¶
The receipt's base64 signature member is a copy of that Ed25519
signature. It is an unsigned surface. The evidence verifier does not
read it, and the pinned receipt check does not compare it. A different
copy does not by itself fail either check. The presented-form check
compares the copy with the classic signature.
encoding on a receipt MUST be the string cose. encoding on a
checkpoint is not read.¶
receiptHash, checkpointHash, receipt and checkpoint chain links,
the countersignature claim -70401, witness commitments, and SCITT
commitments are computed from the classic COSE bytes, as
[CEDULON-CORE] defines them. A different ML-DSA-87 signature over
the same classic bytes does not change those values. The public-hash
anchor encoding and the SCITT anchor stub read the classic receipt
and do not read pqCoseHex.¶
The PQ half is an untagged COSE_Sign1: a CBOR array of four, with no tag. The unprotected header MUST be an empty map. The payload MUST be the same bytes as the classic payload. The protected header carries:¶
cedulon-pair is not an integer label. Its value MUST be a CBOR array
of three items: the integer 1, an array of the two integers -19 and
-50 in that order, and a byte string. That byte string MUST be
SHA-384 of the entire presented classic COSE_Sign1, signature
included, which are the original classic bytes and not a re-encoding.
Any other PQ algorithm, including -48 and -49, is refused.¶
A protected crit header (label 2) is accepted on either half when
it is an array whose entries are drawn from the integers 1, 3, and 4,
each at most once, and each listed label is present in that header.
An empty array is accepted, by the TypeScript decoder and by the Go
runner. Section 3.1 of [RFC9052] requires at least one element when
crit is present. cedulon-pair is not one of those integers, so it
cannot appear in crit. Any other protected label is refused.¶
kid in each protected header is the leading 8 octets of SHA-256 of
that algorithm's canonical SubjectPublicKeyInfo DER. The verifier
does not treat a key carried on the evidence as the signer's
identity. It selects one configured pair whose two key identifiers
equal the two protected kid values, then checks each signature under
that pair's key.¶
The ML-DSA-87 signature is pure ML-DSA [FIPS204] over the COSE
Sig_structure [RFC9052]. The external additional authenticated
data is empty. The ML-DSA context string is empty, as [RFC9964]
requires for this algorithm. A signature produced under any other
context does not verify. The signature value is 4627 octets.
HashML-DSA is not this signature.¶
The TypeScript verifier requires the HybridPolicy that a successful
createHybridPolicy call returns in its policy member. A plain object, including one whose fields would be a valid
configuration, is hybrid-policy-invalid with detail policy, and
the verification probe of Section 7 does not run. After that object
and that probe, the checks below run in this order. A failure returns
at that step. This order and these details are the TypeScript
verifier.¶
Wrapper shape, as this section states. A missing or empty
pqCoseHex is pq-signature-missing. A pqCoseHex that is not a
string is pq-signature-bad.¶
The length of the PQ hex string, in UTF-16 code units. More than
131072 is pq-signature-bad with detail pq-hex-too-long, before
the classic coseHex is read.¶
The classic coseHex, as an own data property. Missing, empty,
not a string, or not own data is pq-suite-mismatch with detail
classic-hex-absent. More than 131072 code units is
pq-suite-mismatch with detail classic-hex-too-long, before the
characters are scanned. An odd length, an uppercase digit, or a
character that is not a hex digit keeps that decoder detail
(hex-odd, hex-not-lowercase, hex-not-hex) and is
pq-suite-mismatch. The classic bytes are then decoded as COSE.
Header field types and crit are checked in that decode. A decode
failure is pq-suite-mismatch and keeps the decoder's detail.
openCose catches a throw from the decoder and returns that
detail.¶
The PQ hex characters, then the PQ COSE decode. An odd length, an
uppercase digit, or a character that is not a hex digit is
pq-signature-bad with those same hex details. A PQ decode
failure is pq-signature-bad and keeps the decoder's detail,
including a throw openCose caught.¶
The profile, after both halves have decoded. The remaining label
checks come before the algorithm and the content type, then
payload equality and the cedulon-pair digest. A mismatch is
pq-suite-mismatch.¶
Presented claims. On a receipt, encoding is cose, the claims
value is an object, and noManifest is true exactly when
manifestHash is null. policyHash is 64 lowercase hexadecimal
characters. manifestHash and prevReceiptHash are that text or
null. The decoded payload is canonically equal to the presented
claims, and the nonce in that payload is at least 16 UTF-8 bytes.
On a checkpoint, the claims value is an object, chainHeadHash
and prevCheckpointHash are 64 lowercase hexadecimal characters
or null, and the same canonical equality applies. encoding is
not read on a checkpoint. The role's CBOR decoder also checks
claim types and numeric fields. A payload that does not decode is
detail claims, not the decoder's name. A mismatch is
pq-suite-mismatch.¶
No configured pair for the two kid values is
issuer-key-mismatch with detail kid.¶
A PQ signature whose length is not 4627 octets is
pq-signature-bad with detail pq-signature-length. A classic
signature whose length is not 64 octets is
classic-signature-bad with detail classic-signature-length.
The PQ length is checked first. Both are checked before either
verification call.¶
The Ed25519 signature, then the ML-DSA-87 signature. The base64
copy is not a step. An Ed25519 failure is classic-signature-bad
with detail classic-verify. If the platform Ed25519 verification
throws, that call is a failure and the detail is still
classic-verify. An ML-DSA-87 failure is pq-signature-bad with
detail pq-verify.¶
The Go runner does not follow this order. It checks the classic hex,
including its length, before the PQ hex length. It imports both pins,
decodes the classic COSE, and checks the presented claims before it
decodes the PQ COSE. A failure is text on the runner's standard error,
not a finding object. The two signature lengths are one result,
signature-length.¶
Success of this evidence check, in TypeScript, is a result whose only
member is ok with the value true. A publicKeyPem that differs
from the pinned Ed25519 key is visible to the caller and is not a
refusal of this check. A throw that is not caught as a decode refusal
or as a platform verification failure is pq-signature-bad with
detail pq-verify.¶
Hybrid receipt signing and hybrid checkpoint signing encode the claims once, measure those payload bytes against the string and nesting limits of Section 5, and sign those same bytes in both halves. A failure throws, and no wrapper is returned.¶
The PQ signer accepts algorithm -50 only. The public key MUST be a
canonical ML-DSA-87 SPKI. In signPqCoseSign1 the signing probe of
Section 7 runs before the signature callback. The callback MUST
return a Uint8Array of 4627 octets. The verification probe then
runs, and the signature is checked under the signer's public key.
The self-check rebuilds Sig_structure from the protected header and
the payload that are written into the COSE. It does not verify a
buffer the signer callback can modify. signHybridReceipt and
signHybridCheckpoint verify both halves again before the wrapper is
returned. The names thrown on this path include
cose-key-type, pq-unsupported-runtime, pq-suite-mismatch,
pq-signer-failed, and cbor-too-large.¶
pemPqSigner accepts only a PRIVATE KEY PEM whose DER is 54 octets
and begins with the seed PKCS#8 prefix for ML-DSA-87. The text is at
most 512 characters, checked before import. The imported type MUST be
ml-dsa-87, and the SPKI derived from that key MUST equal the
supplied public key. An expanded private key does not match that DER
and is refused with cose-key-type. A derived SPKI that differs is
cose-key-mismatch. pemPqSigner checks the seed and the supplied
public SPKI before the probe. An invalid public SPKI is
cose-key-type even when the seed is well formed. The signing probe
runs after both of those checks and before the private key is
imported. When both have passed, a bad runtime is
pq-unsupported-runtime and not a key-type error.¶
createHybridPolicy takes one object. mode, issuerId,
receiptPairs, and checkpointPairs MUST be own properties. Any
other own enumerable string key is hybrid-policy-invalid with
detail config-shape. A non-enumerable key or a symbol key is not
that check.¶
For a configuration of plain data, the checks run in this order and a
failure returns at that step. A property getter that throws is outside
this order: its exception propagates out of createHybridPolicy as
thrown.¶
A value that is not an object, a mode that is not an own property
or is other than hybrid (including pq-only), or an issuerId
that is not own or that fails the rule in Section 5 is
hybrid-policy-invalid. The details are config-type, mode, and
issuer-id. Mode is decided before any pin is read. An extra own
enumerable string key is decided in this same step, still before
pins.¶
Pin shape, bounds, canonical DER, count, and a kid collision are
hybrid-pin-invalid. This step does not probe and does not import
a key. A missing receiptPairs or checkpointPairs member is
detail pair-missing.¶
A failed verification probe is pq-unsupported-runtime with detail
runtime. No pin is imported.¶
After that probe, a native key whose type is not the expected
algorithm is hybrid-pin-invalid with detail spki-type.¶
Each role is an array of 1 to 32 entries. Each index MUST be an own
property. A pin entry passes the member check when Object.keys
returns two names and the entry has own ed25519Spki and own
mlDsa87Spki. That count does not include a non-enumerable key or a
symbol key. Each value is a public PEM or
canonical padded base64 SubjectPublicKeyInfo, within the bounds of
Section 5. The same DER MAY appear in more than one entry. Two
different DERs that share a key identifier within one role and one
algorithm are hybrid-pin-invalid with detail kid-ambiguous.¶
The verifier selects the one configured pair for that role whose two key identifiers equal the two protected headers. A key carried on the evidence has no authority.¶
On the audit entry, hybrid-pin-invalid is reported as
trust-key-unreadable with detail hybrid-pin-invalid.
pq-unsupported-runtime is reported as that code.
hybrid-policy-invalid is reported as presented-object-malformed
with detail hybrid-policy-invalid. The finer policy details are not
copied into the audit report.¶
Each hex envelope, classic or PQ, is at most 131072. TypeScript measures that length in UTF-16 code units. The Go runner measures it in bytes. A valid ASCII hex string meets the same limit in both. On a string that is not ASCII, the first refusal and its detail can differ. The length is decided before the characters are scanned and before CBOR decode. 131072 is twice the CBOR size limit, in hex digits of an ASCII encoding.¶
CBOR input is at most 65536 bytes. Nesting deeper than 16 levels is
refused. An array or a map of more than 4096 entries is refused. A
text or byte string of more than 16384 bytes is refused. Both
decoders also refuse a non-deterministic encoding, a duplicate map
key, a truncated item, trailing bytes, a tag, a floating-point value,
an indefinite length, ill-formed UTF-8, and an integer outside
-(2^53-1) through 2^53-1. The detail name is the decoder's name. When
the claim step cannot decode the payload, both implementations report
detail claims instead of that name.¶
Public pin text is at most 4096, in UTF-16 code units in TypeScript and in bytes in the Go runner, checked before base64 or PEM decode. Valid ASCII text meets the same limit in both. Ed25519 SPKI DER is 44 octets. ML-DSA-87 SPKI DER is 2614 octets. The ML-DSA-87 algorithm identifier is OID 2.16.840.1.101.3.4.3.19, parameters are absent, and the bit string's unused-bits octet is zero. The check is the whole canonical prefix and the whole length. An OID that only occurs inside the key bits does not pass.¶
A public value is either a PUBLIC KEY PEM or canonical padded
base64. When the PEM body is more than one line, every line but the
last is 64 characters and the last line is at most 64, in both
parsers. A single body line may be longer than 64. An empty body line
is refused.¶
Base64 is canonical when decoding it and encoding it again yields the same text.¶
Private ML-DSA-87 PEM text is at most 512 characters, checked before import.¶
issuerId is a string of 1 to 256 UTF-16 code units. No code unit
below U+0020 is accepted, and U+007F is not accepted.¶
An evidence file and a pin file are one JSON text each. Each is admitted from its raw bytes before any member of that file is used.¶
The file is at most 262144 bytes. A longer file is refused, and no
member of it is read. The Go runner's verify command reads the file
with os.ReadFile and applies that limit to the bytes already read.
The bytes MUST be UTF-8. An ill-formed sequence,
including an overlong form, is refused. The decoder does not replace
those bytes with U+FFFD. A leading EF BB BF is U+FEFF. It is not
stripped, and it is not JSON whitespace, so the text is refused.¶
The top-level value is depth 0. Each value inside an array or object is one level deeper than the array or object that contains it. A value whose depth is greater than 64 is refused, including a value inside a member the verifier does not read. Sixty-three arrays nested directly under the role object, the innermost one empty, put that array at depth 64 when the wrapper is the top-level value, and that array is accepted. A number inside that array is depth 65 and is refused.¶
A repeated member name keeps the last value, in an evidence file and in a pin file.¶
A number is the IEEE-754 binary64 value of its decimal, the same value a JSON parser produces for that token. An exponent that overflows that format is positive or negative infinity. A non-finite number used as a version or a claim is refused. -0 and 0 are one claim value.¶
The top-level value of an evidence file is the hybrid wrapper. The Go
runner does not read an evidence member of that wrapper. Its
-vector flag selects the vector file: the file's evidence member
is the hybrid wrapper, and the other members of the vector file are
not wrapper members. A hybrid wrapper that also has an evidence
member is refused for that extra member when it is read without
-vector.¶
A pin file uses the same reader. ed25519SpkiPem and mlDsa87SpkiPem
MUST be strings. The PEM and base64 bounds apply after the file has
been admitted. Those two names are the file's names. The policy object
in Section 4 uses ed25519Spki and mlDsa87Spki for the same DER
text.¶
verifyHybridReceipt and verifyHybridCheckpoint take an object the
caller has already parsed. They do not call the file admission. A byte
limit cannot apply to an object. A caller that starts from a file
applies readPresentedJson, which enforces the 262144-byte limit
before it parses.¶
The audit selects the policy and reads the policy members before the
data walk. The walk then accepts the evidence only as plain data:
objects whose prototype is Object.prototype or null, arrays whose
prototype is Array.prototype, and primitives. It reads own
descriptors. It refuses a proxy, a function, a symbol key, an
accessor, and an array member other than an index or length, as
presented-object-malformed with detail not-data. JSON text parsed
in the same JavaScript realm, and within the walk bounds below, passes
this check. Data parsed in another realm has that realm's prototypes
and MUST be parsed again, or cloned, in this realm.¶
hybrid-depth and hybrid-objects apply to an object or array the
first time the walk sees it. A primitive, and a reference already
seen, is skipped before the depth check. hybrid-objects counts those
unique objects and arrays. An object or array at a depth greater than
256, more than 4000000 such objects, or an array longer than 4000000
entries throws audit-too-large on the hybrid-depth,
hybrid-objects, or hybrid-array-length axis.¶
checkHybridPresentedForm checks form only. It does not probe and it
does not take pins, so it runs where ML-DSA-87 verification does not.
checkPresentedForm is unchanged and still walks only classic objects.¶
In the TypeScript implementation, verification and signing each run one capability probe per loaded instance of the module. The result is cached, whether it succeeded or failed, and a later call through that instance does not probe again. The Go runner does not probe; it verifies the signatures directly.¶
The verification probe uses the ML-DSA-87 public key, message, and
signature compiled into the implementation. It does not read a fixture
path. The signature in that vector is 4627 octets. The probe imports
the key, requires the type ml-dsa-87, and verifies the signature.
Importing the package does not run a probe. A classic caller does not
run it. A verification-only caller does not generate a signing key.¶
The signing probe generates one ML-DSA-87 key, signs the ASCII bytes
of cedulon-pq-sign-probe-v1, requires a signature of 4627 octets, and
verifies that signature. pemPqSigner calls it when the signer is
created, before a signature is requested. Signing a PQ half also calls
it before the signature callback.¶
There is no environment variable for either probe. A test helper may
record a fault, verify, sign, or both, before the attempt. That
value is read once, cached with the attempt, and is not a production
switch.¶
A failed verification probe is pq-unsupported-runtime. On the audit
entry that is one finding, and the evidence is not read. A failed
signing probe throws pq-unsupported-runtime and returns no wrapper.¶
The hybrid audit judges the PQ half, then runs the audit of [CEDULON-CORE] on the classic objects with the policy's Ed25519 keys.¶
The audit's second argument is the configuration. createHybridPolicy
checks the configuration and the pin text, runs the verification
probe, and then imports the keys; the evidence is read only after
that. A failed probe does not read the
evidence. An own data property issuerTrust is
presented-object-malformed with detail hybrid-issuer-trust. An own
data property profile is the same code with detail hybrid-profile.
When both are own data, issuerTrust is the one finding. An
issuerTrust or profile inherited from a prototype other than
Object.prototype is not-data from the data walk, before these
details. A member of Object.prototype is neither detail. The issuer
root for the window is the role lists on the policy. Receipts answer
to receiptPairs. Checkpoints, the anchor, and an attached witness
body answer to checkpointPairs.¶
No receipts, no checkpoints, no anchor, and no inclusion body that is
an object is presented-object-malformed with detail
hybrid-evidence-empty. A falsy anchor, including null, is not an
anchor. Settlements alone do not count. receipts or
checkpoints that is not a list is presented-object-malformed with
detail not-array, and the finding's identifier is that member's
name. The classic audit reports its generic input failure for the same
shape. Both fail, and the reports are not the same report.¶
The classic count caps apply before any hybrid decode: more than 4096
receipts, more than 256 checkpoints, more than 4096 settlements, or
more than 4096 inclusion receipts throws audit-too-large on that
axis. The same settlement cap applies to the rows of a presented
extract, and to the settlement rows of a presented nextExtract or
previousExtract when those rows are an array. A
further budget of 67108864 hex characters, which is 64 times
1024 times 1024, covers coseHex and pqCoseHex on the receipt,
checkpoint, anchor, and attached witness checkpoint bodies, including
the classic coseHex nested inside a wrapper. It does not cover the
witness receipt's own COSE. Crossing the budget throws
audit-too-large on the hybrid-hex axis before a decode. The data
walk of Section 6 throws on hybrid-depth, hybrid-objects, or
hybrid-array-length before the evidence is judged.¶
The PQ layer judges only the PQ half of each object: the wrapper,
algorithm -50, the cedulon-pair header bound to the classic COSE
bytes, the role, the pinned pair named by both key identifiers, and
the ML-DSA-87 signature. It does not judge the Ed25519 signature, the
presented claims, encoding, or the base64 copy. The classic audit
judges the Ed25519 signature, the presented claims, and encoding.
The pinned receipt check does not compare the base64 copy. That
comparison is checkPresentedForm and checkHybridPresentedForm.
Within one audit, the PQ verdict is cached by
the policy object, the role, and the two hex strings, so a repeated PQ
half is verified once in that audit; the Ed25519 signature is judged
by the classic audit. A later audit verifies again.¶
The classic object of an accepted wrapper is passed by reference to the classic audit. The issuer pin of that audit is the Ed25519 SPKI values of the policy, receipt pairs before checkpoint pairs, each distinct value once. A refused object is left out, with one PQ finding. The hybrid report is the classic report when the hybrid layer produces no finding. A classic witness body stays when the SHA-256 of its COSE octets equals the SHA-256 of a checkpoint whose PQ half verified in the same audit. That set is the presented checkpoints, the anchor, and a hybrid checkpoint attached to another witness. Any other classic body is removed with a finding even when every PQ half verifies.¶
PQ findings come before the classic findings. A report that contains
one is not successful, and its guarantee is conditional. The four
codes below are appended after presented-object-malformed in the
finding-object code list. The finding-object version remains 1. A
hybrid refusal sets guarantee to conditional, including
pq-unsupported-runtime.¶
| Code | Effect | Meaning |
|---|---|---|
| pq-signature-missing | audit fails; guarantee conditional | No ML-DSA-87 half is present: a classic object, or a wrapper whose pqCoseHex is absent or empty |
| pq-signature-bad | audit fails; guarantee conditional | The PQ half is present and does not verify, or its hex, length, or COSE encoding is refused |
| pq-suite-mismatch | audit fails; guarantee conditional | The audit's PQ layer returns this when the wrapper, algorithms, content type, labels, or pair binding do not match, and when a classic witness coseHex is longer than 131072 code units. It does not compare presented claims; it passes them to the classic audit. The standalone hybrid verifier returns this code for those profile failures and also when the presented claims do not match |
| pq-unsupported-runtime | audit fails; guarantee conditional | This process cannot verify ML-DSA-87. The evidence is not read |
These four codes follow the codes of [CEDULON-CORE] in the finding list.¶
A PQ half that names no configured pair is issuer-key-mismatch,
which is a code of [CEDULON-CORE]. The object is left out, and that
finding is placed with the PQ findings.¶
Witness envelopes and witness proofs stay classic. An attached hybrid
body is judged as a checkpoint. An attached classic body stays only
when the SHA-256 of its COSE octets equals the SHA-256 of a checkpoint
whose PQ half verified in the same audit. Any other classic body is
removed before the classic audit reads the record. When its coseHex
is a string longer than 131072 code units, the finding is
pq-suite-mismatch with detail classic-hex-too-long. Otherwise the
finding is pq-signature-missing with detail legacy-object. A
matching classic body stays as the caller's record, and the classic
audit reads that record's checkpoint member again. A body inherited
from a prototype other than Object.prototype, and a body computed
by an accessor, are not-data from the data walk, before this
comparison. An inclusion
record or body that is not an object carries no checkpoint and is
passed on as the classic audit reads it. An inclusionReceipts value
that is not a list is passed on the same way, under its own name.¶
interop/pq/v1 holds the vectors for this profile. SHA256SUMS in
that directory is the SHA-256 of the other 29 files there. The
producer excludes SHA256SUMS itself. The Go runner is
tools/pq-interop, module cedulon.local/pq-interop, Go 1.27, and it
links only the standard library (crypto/mldsa, crypto/ed25519,
crypto/x509). The repository root is not a Go module, so the tool is
run with go run -C on that directory. The documented commands set
GOTOOLCHAIN to local and GOPROXY to off. They do not set
GOSUMDB. The differential test sets GOSUMDB to off in its Go
build environment. Those runs do not download a module. npm run test:pq
builds and runs this runner from that differential test when Go is
installed. Without Go, that test is skipped; with a Go older than the
1.27 that tools/pq-interop/go.mod names, the build fails and the test
fails rather than skipping.¶
verify parses both COSE envelopes and rebuilds each Sig_structure
from the protected header and the payload. It does not trust
sigStructureHex. go-vector.json carries that field as 00 on
purpose. The Go signatures on the positive vectors are FIPS 204
deterministic signatures under the empty context. The wrong-context
negative vector is signed with the non-empty context
cedulon-pq-v1-context. The Node vector is node-hybrid-receipt.json, with
node-pins.json. The Node ML-DSA-87 signature is hedged, and a re-run
does not reproduce it.¶
Both halves are required for a receipt, a checkpoint, and an anchor. The evidence verifier accepts an object only when the Ed25519 signature and the ML-DSA-87 signature both verify under one configured pair. The audit accepts an object as coverage only when the PQ half verifies and the classic audit then accepts the nested object under the policy's Ed25519 keys. A key carried on the object is not that pair.¶
receiptHash, checkpointHash, chain links, countersignatures over
the classic COSE bytes (claim -70401), witness commitments, and SCITT
commitments name the classic bytes. They do not name pqCoseHex.¶
Under this profile, a broken Ed25519 key does not let an attacker
obtain acceptance of classic bytes the attacker newly chooses. The
ML-DSA-87 signature still has to verify, and cedulon-pair still has
to be SHA-384 of those classic bytes, signature included, under the
pinned ML-DSA-87 key. Changing those classic bytes changes the SHA-384
cedulon-pair digest and the SHA-256 identities computed from those
bytes, under the second-preimage resistance of SHA-384 and SHA-256.
This profile
does not change the nested object. A verifier that does not implement
the profile, and that reads only the nested object, relies on Ed25519
alone.¶
A broken ML-DSA-87 key lets an attacker produce a PQ half that verifies for classic bytes of the attacker's choice. Acceptance still requires the Ed25519 signature on those bytes under a pinned Ed25519 key. The attacker can therefore replace the PQ half of a classic object that already verifies, and the identities above do not change, because they do not include the PQ half. Breaking only ML-DSA-87 does not produce a new claim map or a new classic signature.¶
This document has no IANA actions.¶
It uses the COSE algorithm identifier -50, ML-DSA-87, registered by [RFC9964].¶
This section is to be removed before publishing as an RFC ([RFC7942]).¶
This section records the known implementation of this profile.¶
One implementation, by one implementer, in the companion repository at https://github.com/dogrucanemek-alt/cedulon.¶
The wrapper, both signatures, the policy, the file admission, the
probes, and the hybrid audit are implemented there. On this tree,
with Go go1.27.0 installed, npm run test:pq measured 85 cases,
none failing and none skipped. The differential test in that command
builds and runs the Go runner when Go 1.27 or later is installed, is
skipped when Go is not installed, and fails with an older Go. On a runtime that cannot verify ML-DSA-87, some
tests return without the positive verification. The Go runner is
tools/pq-interop. No independent implementation is known.¶