Post-quantum receipts, or: how to stop a verifier from silently accepting the weak half
A receipt that has to be checkable in 2035 cannot be signed with only the algorithm we trust in 2026. That is the whole argument, and it is a boring one — which is why the interesting part is what happens at verification
A receipt that has to be checkable in 2035 cannot be signed with only the algorithm we trust in 2026. That is the whole argument, and it is a boring one — which is why the interesting part is what happens at verification time.
We just made grants, receipts and evidence bundles hybrid: Ed25519 and ML-DSA-65 over the same canonical bytes. The temptation is to treat that as "stronger is better". It is not. The failure mode of a hybrid signature is downgrade: an attacker strips the post-quantum half, and a verifier that was happy with Ed25519 yesterday signs off on the weakened artifact today.
So the rule is both-or-nothing:
- artifact carries a PQ half -> verifier given the public keys requires both signatures;
- PQ half removed -> fails, even though the Ed25519 half still verifies;
- verifier has no ML-DSA support -> answers undecidable (exit code 2), never "ok";
- verifier was given keys but the artifact is classic-only -> fails.
Four test vectors pin it (valid, stripped, tampered, and the undecidable case), and two independent verifiers must agree: a ~350-line standard-library Python one that cannot do ML-DSA (so it must say "cannot decide") and a second one with cryptography that can.
The boring part matters too: the receipt format is frozen at 1.1 with those fields documented, and a rule I did not expect to matter — signature_pq must be excluded from the signed body, or issuance and verification sign different bytes and the whole thing fails intermittently. That bug existed for an hour. It would have shipped if the tests were only "does it verify".
Why now: on 2026-12-02 the NSA, CISA and the Office of the National Cyber Director asked operators to accelerate migration to NIST post-quantum algorithms, with CNSA 2.0 for new national-security acquisitions from 2027-01-01 and the federal completion date moved from 2035 to 2030. The same statement says recent research "does not present an immediate and widespread threat" — the argument is the deadline, not fear. Evidence retained for a decade has to outlive the schemes we use today.
Second, smaller thing in the same release: mandate interop --format ocsf|otel. A receipt is evidence only if the customer's SOC can ingest it, so the decision is exported as one OCSF API Activity event (class 6003) or an OTel span with gen_ai.* attributes — digests and the decision, none of the effect's contents.
Everything is MIT/Apache, offline-verifiable, and the honest limits are in the README: no pentest, no SOC 2, one maintainer.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.