The diamond identity card — what is real, what is not, and what to build
- Date: 2026-08-07 · Claude Opus 5 (Claude Code, session 58cff4ff)
- Origin: Pete, 2026-08-07 — "I want this to be quantum … issued into a card or device that embeds the security quantum chip … a personal identity system based on diamond made with our own DNA (hair) that becomes our own identity."
- Status: SPECIFICATION ONLY — FUTURE DEVELOPMENT. NO CODE HAS BEEN WRITTEN. Nothing here has been built, procured, prototyped, or tested. No supplier has been contacted. Every number below is order-of-magnitude and marked as such. Pete's instruction, 2026-08-07: "i dont want you to build it just spec it out and mark it future development."
- Supersedes nothing. It extends
docs/OPS-device-credential.md, which already names per-device enrolment as the next step and namesdeviceToken()as the seam.
0 · Verdict up front
The pitch merges four separate claims. Two are real and buildable, one is real but not in a card, and one is a category error that will embarrass us in front of a client if we say it out loud.
| Claim | Verdict |
|---|---|
| A diamond can be grown from my own hair | TRUE. Commercially available today. |
| That diamond carries my DNA / my identity | FALSE as stated. The carbon is purified to elemental carbon. The DNA sequence is destroyed. What survives is provenance, not genetics. |
| A room-temperature diamond quantum chip exists | TRUE. NV-centre devices work at room temperature. But they are bench/rack instruments with lasers and microwave drive — not card-sized, and not in 2026. |
| A quantum chip makes authentication stronger | FALSE. A quantum computer is a threat model, not a credential. Qubits in your pocket sign nothing. |
But the underlying instinct is right, and there is a real primitive that delivers exactly what Pete is describing — it just isn't a qubit. It is a PUF: a physical unclonable function. A diamond's nitrogen-vacancy distribution is stochastic, unique, and cannot be duplicated even by the company that grew it. Read it, and you have an unclonable hardware identity. That is buildable now, it does not need a working quantum computer, and it makes the diamond load-bearing rather than decorative.
1 · The four claims, tested
1.1 Diamond from hair — REAL, purchasable
Memorial-diamond companies (Algordanza, LONITÉ, Heart In Diamond, Eterneva and peers) grow HPHT and CVD diamonds from carbon extracted from cremated remains or hair. Hair is an accepted carbon source; keratin is ~50% carbon by mass. Order of magnitude: £1,000–£4,000+, 6–9 months lead time, 0.2–1.0 ct typical.
The honesty problem. The process purifies the carbon to graphite before crystallisation. Nitrogen, hydrogen, oxygen, phosphorus — the atoms that are the DNA — are driven off. A sequencer applied to the finished stone recovers nothing. Anyone claiming a hair diamond "contains your DNA" in an identity product is making a claim a molecular biologist will demolish in one sentence.
What is honestly true: the carbon atoms in the crystal came from that person's body. That is a chain-of-custody claim about the raw material — real, meaningful, and provable only by the supplier's process attestation, not by measuring the stone.
What this is actually good for: the stone is a physical token that is personally unique, emotionally significant, and — via §2 — cryptographically unclonable. Three different kinds of uniqueness. Only the third one does security work. Say so.
1.2 Room-temperature NV quantum devices — REAL, but not in a card
Nitrogen-vacancy centres genuinely operate at room temperature. This is the mature part of the field, and it splits in two:
- Quantum sensing — magnetometry, thermometry, NMR at the micron scale. This is the commercialised half (Element Six supplies the diamond; QuantumDiamonds and peers build instruments). Real products, real revenue.
- Quantum computing — small qubit counts. The Live Science story Pete pasted (2026-08-06, German startup, >10 qubits, portable) fits Quantum Brilliance's line of work, but that article post-dates my knowledge cutoff and I have not verified it — treat the attribution as unconfirmed.
Why it is not a card. Reading an NV centre requires a ~532 nm green excitation source, a photon collection path filtered to ~637–800 nm, and — for spin readout — a microwave drive at ~2.87 GHz. "Portable" in that headline means shoebox-to-rack, not ISO 7810. Nobody is putting this inside a 0.76 mm card in this decade.
The right split is: the diamond goes in the card; the quantum readout stays in the reader. That is not a compromise — it is exactly how every other unclonable-token system works.
10 qubits also computes nothing. For scale: breaking P-256 needs thousands of logical qubits, i.e. millions of physical ones. A 10-qubit machine is a physics demonstrator.
1.3 "Quantum chip = stronger auth" — a category error, and the expensive kind
This is the one to kill before it reaches a slide.
Quantum computing is the attack, not the defence. The reason quantum matters to ESG's auth is
that Shor's algorithm breaks the ECDSA P-256 signatures in workers/esg-query/src/authz.ts and in
the event envelope. The defence against that is post-quantum mathematics — ML-DSA (FIPS 204) —
which runs perfectly well on a £5 ordinary chip. Carrying qubits changes nothing about it.
There are two genuine quantum-*defence* technologies, and neither fits:
- QKD (quantum key distribution) — real, deployed in banking backbones. Needs dedicated fibre or line-of-sight optics between the two endpoints. A handset in a tunnel in Scarborough is not getting a QKD link.
- QRNG (quantum random number generation) — real, genuinely useful, and cheap. Already in some phones. Worth having; it improves key generation entropy. It is not an identity system.
The sentence that must never appear in ESG material: "quantum-secured by an on-card quantum chip." It is false, and it is the kind of false that ends a procurement conversation.
1.4 "My own diamond becomes my identity" — REAL, via a PUF
See §2. This is the part that works.
2 · The primitive that actually delivers it: the NV optical PUF
When a diamond is grown, the nitrogen atoms and their adjacent vacancies land stochastically. Their positions, orientations, and local strain environment are set by the chaos of crystal growth. The result:
- Unique — no two stones share a defect distribution.
- Unclonable — the manufacturer cannot reproduce it either. You cannot re-grow a specified defect map any more than you can re-grow a specified snowflake.
- Measurable — under green excitation the ensemble fluoresces; under a microwave sweep the ODMR spectrum shows strain-shifted resonances around 2.87 GHz. Both are stable, repeatable readings.
- Physically bound — grinding, recutting, or heating the stone destroys the response. A stolen stone that has been altered stops authenticating.
That is a hardware root of trust made from Pete's hair, and it needs no qubits at all — only the same physics the qubit people are exploiting, read as a fingerprint instead of a register.
2.1 Two mistakes that would sink a naive build
Mistake 1 — treating the PUF response as a password. If the card photographs the stone and sends the image to the console, the image is the secret, and it is replayable forever the moment it is captured once. The PUF must never travel. It must be read locally and fed into a key derivation that happens inside the secure element, or driven as challenge–response where the reader picks the challenge.
Mistake 2 — assuming the reading is stable. It is not. PUF responses drift with temperature, ageing, surface contamination, and reader alignment. Raw bits will not match twice. The standard and correct construction is a fuzzy extractor: at enrolment, generate public helper data that error-corrects a noisy re-read back to the exact enrolled value. Helper data is public by design and leaks nothing. Skipping this step is why most PUF prototypes fail on the second day.
3 · The architecture — three tiers, honestly graded
Tier 1 — BUILDABLE NOW. The ESG identity card.
┌─────────────────────────────────────────┐
│ ESG IDENTITY CARD │
│ │
│ ◆ diamond (grown from bearer's hair) │ ← unclonable factor + provenance
│ ▢ secure element (NFC/contactless) │ ← non-extractable signing key
│ · P-256 today │
│ · ML-DSA-44 when SEs ship it │
│ # printed holder id + photo │
└─────────────────────────────────────────┘
│ NFC / contactless
▼
reader or handset ──► ESG console
Three independent factors, which is the actual security argument:
- Something you have — the card.
- Something unclonable — the stone's optical fingerprint, enrolled once, verified at issuance and on re-verification.
- Something provable — a signature from a non-extractable key in the secure element.
The diamond does real work here: it is what makes a cloned card detectable. A copied secure element (hard) still cannot bring a matching stone (impossible).
Cost, order of magnitude: diamond £1,000–£4,000 + 6–9 months · JavaCard/SE with ECDSA £5–£30 · setting and lamination, bespoke. This is a £1–5k executive credential, not a £15 site badge — price it as what it is.
Realistic form factor: an NFC fob, badge-holder, or signet-style setting is mechanically far more sensible than a 0.76 mm laminated card. Say "card or token", build the token.
Tier 2 — NEAR-TERM. ODMR readout at a fixed point.
A bench NV reader (green laser, filtered photon collection, microwave sweep) reads the ODMR spectrum rather than a surface image. Far harder to spoof than optical: you would have to reproduce the spin resonances, not just the appearance.
Where it sits: site office, security desk, issuance station. Not a handset. Cost, order of magnitude: £20k–£100k+ for instrument-grade, less for a purpose-built single-purpose reader. Requires an engineering partner — this is not an off-the-shelf purchase.
Tier 3 — SPECULATIVE. On-card quantum.
Not available. Do not put it on a roadmap with a date. If it ever arrives, the value is still sensing/entropy, not signing. Recorded here so the question is answered once and not re-argued.
4 · How this binds to the auth ESG actually has
Today's control (app/lib/deviceAuth.ts) is a shared per-build bearer token. Its two named
weaknesses are exactly what this fixes:
*"The token is per-build, not per-device. Two handsets on one build share a credential and cannot be revoked independently."* —
docs/OPS-device-credential.md
"It does not authenticate a HUMAN … there is no identity provider here." —
deviceAuth.ts
The card is a person-scoped credential, which the current design has no answer for at all:
| Layer | Today | With the card |
|---|---|---|
| Device → console | shared build token | per-device token (unchanged) |
| Person → console | nothing (Cloudflare Access, unconfigured) | card signs an ESG session-JWT |
| Signature on an NCR | none | SE key, bound to the enrolled holder |
| Revocation | rotate the secret, reissue every build | revoke one card |
The attach point already exists. workers/esg-query/src/authz.ts verifies an ES256 session-JWT
against configured public keys and never mints. A card is simply another minter whose public key
is added to ESG_SESSION_JWT_PUBLIC_KEYS. No change to the verifier is needed to accept
card-minted sessions — which is what makes this independently deliverable under the AGENTS.md
PR-independence rule.
4.1 The one software change that is worth making now
The verifier pins alg === 'ES256' and hardcodes EC/P-256 key import. That pin is correct
today (it defeats alg-confusion), but it means a PQ or card-specific algorithm cannot land without
editing the verifier under time pressure later.
The crypto-agility seam — an algorithm registry, an ESG_SESSION_JWT_ALGORITHMS allow-list
defaulting to ['ES256'] so behaviour is unchanged when unset, and a pluggable suite interface —
makes ML-DSA or a card suite a registration, not a rewrite. Same treatment for the envelope's
actor.sig: an optional alg field, absent ⇒ ES256, which is hash-stable for every existing
event because the canonicaliser omits undefined properties.
FUTURE DEVELOPMENT — NOT BUILT. Specified in full at §9. It is worth doing whether or not a single diamond is ever cut — it is the honest, cheap half of "make this quantum" — but no code has been written and none should be until this plan is accepted.
5 · The honesty register — what must never be claimed
Written down because these are exactly the claims that drift back in once a deck gets designed.
- ❌ "The card contains your DNA." → ✅ "The diamond was grown from carbon extracted from your hair."
- ❌ "Quantum-secured by an on-card quantum chip." → ✅ "Post-quantum signatures (ML-DSA), plus an unclonable diamond factor."
- ❌ "Unbreakable / quantum-proof." → ✅ "Resistant to the known quantum attacks on signatures."
- ❌ "Reads your genetic identity." → ✅ "Reads the crystal's defect fingerprint, which is unique to this stone."
- ❌ Any roadmap date for Tier 3.
Sales value is not the issue — the true version is a better story. "A stone grown from my own body, whose atomic flaws cannot be reproduced by anyone including the people who grew it, holding the key that signs my inspections" is stronger than a fake quantum claim, and it survives due diligence.
6 · Legal and privacy
- Biometric and genetic data are special-category under GDPR Art. 9, and sensitive under PIPEDA / Ontario privacy law. An ESG product binding worker identity to body-derived artefacts carries real regulatory weight — this is a Legal question before it is an engineering one.
- Useful consequence of §1.1: because the purification destroys the sequence, the finished stone is arguably not genetic data at all — it is carbon of attested origin. That is a meaningful legal advantage, and it exists only if we describe the product truthfully. The false marketing claim would drag the product into Art. 9 scope unnecessarily.
- Collecting the hair IS collecting a biological sample. That step needs consent, a retention policy, and a destruction record regardless of what happens downstream.
- Bodily-derived credentials cannot be revoked like a password. A lost card is a lost stone, and the person cannot be reissued a "new" original. Design the revocation model around the key, not the stone.
7 · What to decide
- Who is this for? An executive/director credential (a handful, £1–5k each) is coherent. A site-wide worker badge is not — the economics and the consent burden both fail.
- Tier 1 only, or fund a Tier 2 reader? Tier 1 alone is a strong product. Tier 2 needs an engineering partner and a real budget.
- Is this ESG, or is it a Sequents/Cogneris platform credential? It reads as platform identity that ESG consumes, not as an ESG feature.
- Prototype route: one stone from Pete's hair + an off-the-shelf SE card is a genuine, demonstrable proof of concept for low four figures and ~9 months' lead time. The lead time is the binding constraint — if this is wanted for a demo, the hair goes to the grower first, and everything else is built while it grows.
8 · Next actions (NONE TAKEN — all future development)
- [ ] Decide §7.1 (audience) before any procurement. Blocks everything else.
- [ ] Accept or reject the §9 crypto-agility spec. Software only; no hardware dependency.
- [ ] If proceeding with hardware: get written process attestation from a memorial-diamond grower — specifically what carbon-source chain of custody they can evidence, since that is the entire provenance claim.
- [ ] Literature check on NV-PUF fuzzy-extractor constructions before committing to Tier 2.
9 · SPEC (future development) — the crypto-agility seam
Not built. Specified so that it can be built later without re-deriving it, and so the shape is argued once. Two files change; both changes are additive and independently mergeable under the AGENTS.md PR-independence rule.
9.1 Envelope: name the algorithm that signed
Actor.sig (all three variants: DeviceSig, ServiceEnvelope, SystemActor) is a bare base64
string whose algorithm is implied to be P-256 ECDSA. Implied is fine until it has to change,
and then it is a flag day across every signer, verifier, and stored event at once.
Add one optional field — readonly alg?: SignatureAlgorithm — plus a registry module
(packages/esg-event-envelope/src/signatureAlgorithm.ts) holding:
| Name | Posture | Status | Sig bytes | Hardware-backed | Note |
|---|---|---|---|---|---|
ES256 | classical | available | 64 | yes | ECDSA P-256/SHA-256. The historical default and the only algorithm any ESG verifier implements. Broken by Shor — this field is the quantum exposure. |
ML-DSA-44 | post-quantum | reserved | 2420 | no | FIPS 204. Name only; nothing here can produce or verify one. |
ES256+ML-DSA-44 | hybrid | reserved | composite | no | Both signatures present, both must verify. The intended migration target. |
Four properties this design depends on, each of which is the reason a naive version fails:
- Hash-stable. The field is optional and the canonicaliser omits
undefinedproperties (contentHash.ts, matchingJSON.stringify). Every already-anchored event hashes to exactly the digest it always did. Absence resolves toES256— a statement about history, stated rather than assumed. - No downgrade attack, for free.
deviceSigningBytesbuilds the signing preimage as a denylist — everything included unless explicitly excluded — soalgis automatically covered by the device signature and by both chain hashes, with no change tochain.tsat all. An attacker cannot rewrite a strongalgdown to a weak one without breaking the signature and the chain link that commit to it. This is the first field to rely on that property, and it is why the denylist was the right original choice. reservedmust fail closed. A verifier meeting a reserved algorithm refuses. Registering a name is not implementing it, and a stub that returnstrueis a forgery oracle. No post-quantum signer or verifier exists in this repo; do not write one that pretends.- The hardware column is a hard constraint, not a preference. Secure Enclave and StrongBox implement P-256 and nothing else. A post-quantum device key is therefore necessarily a software key — moving to PQ on a handset trades away hardware non-extractability. That is a product decision and it must be visible in the contract rather than discovered mid-build. It is also the strongest argument for the hybrid entry.
Also note the field cost of ML-DSA-44: ~38× the signature bytes (2420 vs 64) in every envelope,
over a metered link, from a tunnel. Not a blocker; a budget item nobody remembers until it bites.
9.2 esg-query: an algorithm allow-list instead of a hardcoded pin
workers/esg-query/src/authz.ts:282 pins alg !== 'ES256' → reject, and importVerifyKeys hardcodes
EC/P-256 import and a 64-byte signature length. The pin is correct today — it defeats the
alg-confusion class where a token is downgraded to none or HS256 — and the spec must not weaken it.
Replace the constant with a registry of verification suites plus one new config var:
ESG_SESSION_JWT_ALGORITHMS— comma-separated allow-list. Unset ⇒['ES256'], so an existing deployment is byte-for-byte unchanged and the change is safe to merge alone.- A suite owns its own JWK matching, its own signature-length check, and its own verify call, so the 64-byte and
kty: ECassumptions stop being global facts. - A name in the allow-list with no registered suite is dropped, not honoured; if that empties the set, verification fails closed exactly as an unprovisioned key does today.
- Alg-confusion defence is preserved and strengthened: the token's
algmust appear in the configured allow-list and resolve to a registered suite, so widening is an explicit operator act rather than a property of the token.
No verifier change is needed to accept card-minted sessions (§4) — a card is just another minter
whose public key joins ESG_SESSION_JWT_PUBLIC_KEYS. The agility seam is for the day the
algorithm changes, not the day the minter does.
9.3 What this spec deliberately leaves out
- Any ML-DSA implementation. Workers' WebCrypto does not expose it; it would mean a WASM or pure-JS dependency in a bundled Worker, with real size and cold-start cost. That is its own ticket, with its own measurement, after this seam exists.
- Key provisioning and rotation for a second algorithm. Paired ops work; out of scope here.
- **The envelope's verifier.** Signature authenticity is a gateway concern (
chain.tsheader says so explicitly); this spec only makes the envelope say what signed it.