Quantum security and identity — position and strategy
- Date: 2026-08-07 · Claude Opus 5 (Claude Code, session 58cff4ff)
- Status: POSITION AND STRATEGY. NOTHING BUILT, NOTHING PROCURED. Research precedes build, by instruction (Pete, 2026-08-07: "we can do further research and then build later").
- Audience: whoever has to answer a client's security questionnaire, price a roadmap, or decide whether to spend money on this. Written to be read by a director, not only by an engineer.
- Technical annex:
docs/PLAN-diamond-identity-card.md— the same subject at implementation depth (the algorithm registry, the PUF construction, the four claims tested one by one). - Current state of the auth it concerns:
docs/OPS-device-credential.md,app/lib/deviceAuth.ts.
PART ONE — POSITION
What we assert, in public and internally. Six statements. Each is defensible under scrutiny today, and each is written so a future session does not re-argue it.
P1 · Our quantum exposure is signatures, and only signatures
Assessed 2026-08-07 against the actual code, not against a general article about quantum risk:
| Control | Primitive | Quantum verdict |
|---|---|---|
Device credential (app/lib/deviceAuth.ts) | 256-bit shared secret, constant-time compare | Already safe. Grover halves it; 128-bit effective is ample. |
| esg-sync gateway assertion | HMAC-SHA256 | Already safe. Symmetric. |
| Event chain / evidence binding | SHA-256 | Already safe in practice. |
Session-JWT (workers/esg-query/src/authz.ts) | ECDSA P-256 (ES256) | EXPOSED. Broken by Shor. |
Event envelope Actor.sig | ECDSA P-256 | EXPOSED. Broken by Shor. |
Two lines of code hold the entire exposure. That is a good position to be in, and it should be stated plainly rather than dressed up. The work is bounded and known — it is not a re-platforming.
Corollary, so effort is not wasted: do not "harden" the device bearer token for quantum reasons. There is nothing there to harden. Anyone proposing it has not read this table.
P2 · We are already post-quantum where it is cheap — and we say so with evidence, not adjectives
The symmetric half of our stack needed no work to be quantum-resistant. That is worth saying to a client because it is true and checkable, and it is a stronger claim than a vendor's "quantum-ready" badge precisely because we can point at which primitive and why.
P3 · We do not make quantum claims we cannot defend
The binding rule. In full at docs/PLAN-diamond-identity-card.md §5; the four that matter:
- ❌ "Quantum-secured by an on-card quantum chip" → ✅ "Post-quantum signatures, plus an unclonable physical factor."
- ❌ "Unbreakable / quantum-proof" → ✅ "Resistant to the known quantum attacks on signatures."
- ❌ "The card contains your DNA" → ✅ "Grown from carbon extracted from your hair."
- ❌ Any roadmap date for on-card quantum hardware.
Why this is a commercial position and not just scruples. Our buyers are infrastructure and rail clients with real security functions. A quantum claim that collapses in a technical due-diligence call does not merely lose the point — it puts every other claim in the submission under suspicion. The true version is also the better story, which is the whole reason this rule is affordable.
P4 · Where physical quantum technology genuinely helps us is IDENTITY — and via a PUF, not a qubit
A quantum computer is a threat model, not a credential. Qubits in a card sign nothing. The defence against Shor is post-quantum mathematics, which runs on ordinary silicon.
The real primitive is a PUF — a physical unclonable function. A diamond's nitrogen-vacancy defect distribution is set stochastically during growth: unique, measurable, and unclonable by the company that grew it. That is a hardware root of trust, it needs no quantum computer, and it is the part of the diamond concept that survives contact with an engineer.
Consequence for the product: the diamond is a factor, not a processor. Diamond in the card, quantum readout in the reader — which is how every unclonable-token system already works.
P5 · We commit to crypto-AGILITY, not to a specific algorithm
We do not know which post-quantum algorithm we will ship, and anyone who claims to know is guessing. ML-DSA is the front-runner; lattice cryptography is young; hybrid schemes exist precisely because the field is not certain of itself.
So the commitment is structural: the ability to change algorithm without a flag day. Today the
verifier pins ES256 as a literal and the envelope does not record what signed it. The seam that fixes
both is specced (PLAN-diamond-identity-card.md §9), is additive, changes no existing behaviour when
unconfigured, and does not require choosing a post-quantum algorithm to be worth building.
This is the position that ages well. An algorithm choice made in 2026 may be wrong by 2030. The ability to change it cheaply will not be.
P6 · We are early on purpose, and there is exactly one reason to be
No client has asked. No regulator compels us yet. The honest reason to move before we are made to:
Harvest now, decrypt later. An adversary recording traffic today can break it when the machine exists. This does not apply to a signature — a forged signature in 2035 does not retroactively forge a 2026 inspection. It does apply to evidence content in transit: GPS to four decimal places, dictated transcripts, incident detail.
Therefore the priority order is transport first, signatures second. Which is fortunate, because transport is the cheap end (§S1).
PART TWO — STRATEGY
Research → decide → build. Each horizon has an entry gate (what must be true to start) and an exit test (how we know it is done). Nothing starts because it is interesting.
S0 · Research, before any build
These questions are unanswered. Answering them is the current work.
| # | Question | Why it gates a decision | Effort |
|---|---|---|---|
| R1 | What PQ key exchange do our handsets actually negotiate to the Cloudflare edge, in the field, on the OS versions our clients run? | Determines whether P6 is already solved for free or needs work. Measurement, not opinion. | Hours |
| R2 | Current status of NCSC / NIST / CNSA migration timelines and whether any bind an infrastructure supplier in our position. | Determines whether this is a differentiator or a future obligation — different budget conversations. | Days |
| R3 | Cost of ML-DSA in a bundled Worker: WASM/JS size, cold-start penalty, verify latency. | Workers' WebCrypto does not expose ML-DSA. The cost is unknown and could be disqualifying. | Days |
| R4 | NV-PUF fuzzy-extractor literature: what error rates and helper-data constructions are proven? | Determines whether Tier 1 is engineering or research. The single largest unknown in the hardware concept. | Days |
| R5 | Can a memorial-diamond grower evidence carbon chain-of-custody in writing? | The provenance claim is the whole product claim. If unevidenceable, the concept is decorative. | One conversation |
| R6 | Who is the buyer — executive credential or site badge? | £1–5k/unit and 6–9 month lead times make only one of these coherent. Blocks all hardware spend. | A decision, not research |
Do not skip to build on R3 or R4. They are the two that can kill their respective horizons, and both are cheap to answer relative to what they gate.
S1 · Horizon 1 — transport (cheapest, addresses the only urgent risk)
- Entry gate: R1 answered.
- Scope: confirm and, if needed, force hybrid PQ key agreement end-to-end. Mostly configuration and measurement.
- Exit test: a captured handshake from a real device on a real network showing a PQ hybrid group.
- Effort: small. This is where harvest-now-decrypt-later is actually mitigated (P6).
S2 · Horizon 2 — crypto-agility seam (the structural commitment of P5)
- Entry gate: none. No hardware dependency, no algorithm decision, no research blocker.
- Scope: algorithm registry + optional
Actor.algin@esg/event-envelope; anESG_SESSION_JWT_ALGORITHMSallow-list replacing the hardcoded pin in esg-query. Spec atPLAN-diamond-identity-card.md§9. - Exit test: a second algorithm can be registered and accepted without editing the verifier; unset config behaves byte-for-byte as today; every already-anchored event hashes unchanged.
- Effort: small–medium. Additive and independently mergeable.
- Note: this is the only item that could start today. It is deliberately not started.
S3 · Horizon 3 — post-quantum signatures
- Entry gate: R3 answered (the Worker cost may disqualify), and S2 landed.
- Scope: hybrid ES256 + ML-DSA. Hybrid, not pure PQ — it keeps the hardware-backed P-256 guarantee while adding lattice resistance, so neither a Shor break nor an unexpected lattice break alone forges an event.
- Known cost to carry into the decision: an ML-DSA-44 signature is ~38× an ES256 signature (2420 vs 64 bytes) in every envelope, over a metered link, from a tunnel.
- Known trade: Secure Enclave and StrongBox implement P-256 and nothing else. A post-quantum device key is necessarily a software key. PQ on a handset trades away hardware non-extractability — which is the strongest argument for hybrid over pure PQ.
- Exit test: a device-signed event verifying under both halves, with the field-link cost measured rather than estimated.
S4 · Horizon 4 — the diamond identity credential
- Entry gate: R6 decided (buyer), R4 answered (is the PUF engineering or research), R5 attested.
- Scope: Tier 1 only — secure-element card/fob plus a hair-grown diamond enrolled as an unclonable factor. Tier 2 (ODMR reader) is a separate funding decision. Tier 3 (on-card quantum) does not exist and gets no date.
- Binding constraint: the stone is 6–9 months. If this is ever wanted for a demo, the hair goes to the grower first and everything else is built while it grows. Nothing else in this document has a lead time remotely like it.
- Exit test: one card, one enrolled stone, one signed inspection, one demonstrated re-verification after a week's drift.
S5 · What we explicitly do NOT do
Recorded so it is not re-proposed:
- QKD. Real, deployed in banking. Needs dedicated fibre or line-of-sight optics. A handset in a tunnel in Scarborough will never have a QKD link.
- On-card quantum processing. Reading an NV centre needs a ~532 nm laser and a ~2.87 GHz microwave drive. Not in a 0.76 mm card, not this decade.
- A stub PQ verifier "so the interface exists". A signature check that returns
trueis a forgery oracle — strictly worse than an honest gap. - Hardening the device bearer token for quantum reasons. See P1.
Risks
| Risk | Consequence | Mitigation |
|---|---|---|
| The false quantum claim escapes into a deck. | Due-diligence failure that contaminates every other claim in the submission. | P3 is binding. The honesty register is written down, not remembered. |
| ML-DSA is too heavy for a bundled Worker (R3). | S3 stalls after S2 is built. | S2 has independent value and no PQ dependency — that is why it is sequenced first. |
| Lattice cryptography suffers a break. | A pure-PQ migration would be worse than where we started. | Hybrid, never pure (S3). |
| PUF drift makes re-verification unreliable (R4). | S4 is research, not engineering, and the budget is wrong. | R4 gates S4. Fuzzy extractors are the known construction; the question is the error rate on this substrate. |
| Diamond lead time discovered late. | A demo commitment that cannot be met by 6–9 months. | Stated as the binding constraint in S4 and in the plan. |
| Genetic/biometric data handling (GDPR Art. 9, PIPEDA). | Regulatory exposure on a compliance product — the worst possible place to have it. | Truthful framing keeps the finished stone outside Art. 9 scope; collecting the hair is still a biological sample and needs consent and a destruction record regardless. Legal question before engineering. |
The one-paragraph version
Our quantum exposure is two ECDSA signatures and nothing else; the rest of the stack is symmetric and already resistant. The urgent risk is not forged signatures but recorded evidence traffic, so transport comes first and it is cheap. We commit to the ability to change algorithm, not to a specific one, because 2026 is too early to be certain and the seam is worth building either way. The diamond identity concept is real, but its value is an unclonable physical factor rather than anything quantum-computational, and it is gated on a buyer decision and a 6–9 month lead time. We will not claim more than that, because the true version is already the better story and it survives the meeting where someone checks.
Decision log — settled, not to be re-argued
- A quantum computer is a threat model, not a credential.
- A hair-grown diamond contains no DNA — purification to elemental carbon destroys the sequence.
- The security value of the diamond is the PUF, not the qubit.
- Hybrid, never pure PQ, for signatures.
- Crypto-agility before algorithm choice.
- Transport before signatures, because harvest-now-decrypt-later applies to content and not to signatures.