Skip to content
QORECHAIN
Register

Quantum Pass

Rekey

One tap turns a half-protected account fully post-quantum.

Share on X

About

The problem Rekey solves is invisible: most QoreChain accounts look post-quantum but aren't. In a live sample of 190 signers on 28 Nov 2026, 17 had a registered ML-DSA-87 key with possessionProven=false — the key exists on chain, but nobody ever proved the owner holds it. Half-protected, and no wallet, explorer or dashboard shows it. Rekey is the status and proof layer that finds them. It reads pqcKeyStatus (precompile 0x0A02) live for any account and shows exactly what is proven and what isn't — no install, no keys, no guessing. It then makes the fix real: the owner rotates to a fresh ML-DSA-87 key and proves possession, and the registry counts that proof on chain. The RekeyRegistry contract (v2, 0xbe6ee0e5d274498f57b4673ad27a9e0bf3b940dd, block 10955915, 3,947 bytes, byte-identical to source) counts an upgrade only when the chain itself says so: registered, algorithmId 1 (ML-DSA-87), possessionProven true, 2,592-byte public key. Live on Diana: upgradeCount = 10, proven by real rotations — the first record(proven) tx 0x2f629da4060985d9a0e81c919b2b24905ca1c7e9b2b3871816b5f8aaa947533c (block 10955920) and the latest live CLI rotation DB876E0EF4CFC4BE7CB51E8198C3EF651B20325E326D1CE91ED66B9E6F461041 (block 11,099,435) — while record(legacy) and recordWithSignature(badSig) are refused on chain. Rotation itself happens where it must — in QoreX's key screen or a local companion CLI that never leaves the user's machine. The web app never sees a secret: it checks, explains and records, and the proof lives on chain where anyone can read it. QCAI audits: 85/100 in Stage 1 and 85/100 in Stage 2, 0 real findings in either. Tests: Foundry 46/46, web 128/128, CLI 52/52, server 26/26.

How it's made

The contract is the source of truth. RekeyRegistry v2 (0xbe6ee0e5d274498f57b4673ad27a9e0bf3b940dd, deployed 28 Nov 2026, block 10955915, 3,947 bytes, byte-identical to source) is the record: it is the only thing that ever says an upgrade is proven. The counting rule is strict — an upgrade is counted only when the chain itself says so: pqcKeyStatus returns (registered=true, algorithmId=1 ML-DSA-87, 2,592-byte public key, possessionProven=true). The full story is in docs/PART_B.md. A PopGate demo contract (0x19632c1e3da259e19f049ed6a5090f40d7f4e797) shows the gate in action: a half-protected key is refused, a proven key passes — the same live account, first refused on chain (block 10941447) then passed (block 10941449). The backend is two Render services. A REST proxy forwards Cosmos reads the browser can't reach (the chain's REST is browser-blocked by CORS), and a relayer submits record transactions for users who can't self-sign. The relayer's window is deliberately narrow — it only submits record (proven) and recordWithSignature (proven) calls, after verifying the record signature client-side, and it never holds a private key. The web app (React 18 + Vite + TypeScript + Tailwind) reads live state and walks the user through the whole upgrade in five steps — check, make a key, rotate, record, re-check — with a one-minute flow for people who just want to see it. The landing page leads with the real rotation (block 10940416) and the live counter, the Record panel guides both paths (QoreX-signed and unsigned escape hatch), and the Relayer status card is honest when the relayer is down. Rotation itself never touches the website. It happens in QoreX's key screen or the companion CLI (TypeScript, @qorechain/qoresign) with two signatures: the old key signs and the new key signs. Rotation tx 322794CE83E9F42CEFD0D1C5E813B0D841FB18B7DA7B88996B2B68CFDA52492D (block 10940416, 29 Nov 2026) — a legacy key with possessionProven=false becomes a proven one, and the gate accepts it. The CLI handles both derivation lanes: eth-native accounts and coin-118 (legacy) accounts, so the old account's new key is recorded on its own lane. The primitive was proven before a line of product was written. Day-1 probe A: a live signArbitrary from QoreX, verified off chain with @qorechain/qoresign's verifyPQSignature — the signature is 4,627 bytes, the key is 2,592. The same verification is now client-side, before any record transaction is submitted. Tests: Foundry 46/46, web 128/128, CLI 52/52, server 26/26, plus CI.

Timeline

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

  • 73bf460 fix cli bin entry so npm keeps the rekey command · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • d526d14 add npm publish workflow for rekey-cli · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

RekeyQuantum Pass

Pushed 1 commit to main

  • ce45e67 README: scannable style pass (2 Dec) · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • b678acd README: inline demo video + live numbers refresh (2 Dec) · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • 897e452 CLI: publish as rekey-cli (unscoped) · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • 344ffcf CLI: install text now points at published npm package · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • 008f43c Docs: README capture note — tabbed rebuild now live on main, counter 10 · goat-dev8
RekeyQuantum Pass

Pushed 1 commit to main

  • 43c4958 Docs: upgradeCount 9 -> 10 live (tenth record), proxyHealth comment fix, PART_B QoreX correction · goat-dev8

Comments and questions

  • No comments yet.