
Quantum Pass
Live Fire
What can a stolen key still do? A live Q-Day drill: an attacker with only the ordinary key tries five ways to steal.
About
What can a stolen key still do? Live Fire is a Q-Day drill you can run yourself. Every QoreChain account has an ordinary key (secp256k1, the one quantum computers will break first) and can add a quantum-safe key (ML-DSA-87). Live Fire builds a real account on QoreChain testnet, set up one of four ways, hands an attacker ONLY the ordinary key, and lets it try five ways to steal. Each attempt is a real transaction; you watch the chain block or allow it, with the chain's own reason and error code. What the four lanes show (measured on diana, every drill re-measures it): - No quantum-safe key: the attacker adds ITS OWN quantum-safe key, drains the account, and the real owner is locked out. - Quantum-safe key added: all five attacks are refused. - Key added, but a wide EVM window left open: the ordinary key can still spend on the EVM side. - Key added, narrow EVM window: nothing gets through. The lesson: add your quantum-safe key before Q-Day, and keep EVM windows narrow. After a drill you sign a one-line report with your ML-DSA-87 key in QoreX, and the LiveFireRange contract verifies it on chain (pqcKeyStatus + pqcVerify) before recording it. Whatever the attacker does not take goes back to you. Live: https://live-fire-lime.vercel.app Code: https://github.com/Oluwatimothy/live-fire (MIT)
How it's made
Scaffolded with create-qorechain-dapp 0.14.0: web/ (fullstack-web, Vite + React + TypeScript) and contracts/ (foundry). Measured first: contracts/scripts/probe.ts plays owner and attacker on testnet in all four set-ups. Results (codespace pqc): ordinary-key send with no PQ key → code 8; with a key → code 20; re-register over a key → 234; owner after takeover → 21 (hybrid PQC signature verification failed); EVM transfer only inside an open window. In the browser: keys are generated on the page and never leave it. @qorechain/sdk EthNativeSigner signs classical or hybrid transactions (MsgSend, MsgRegisterPQCKeyV2 with proof of possession, MsgOpenEVMWindow with allowedTargets), broadcast through the REST API (Vercel rewrite, since REST has no CORS). EVM attacks are signed with viem and sent raw so the node's refusal text is shown. QoreX funds each drill (signAndBroadcast, two MsgSend, hybrid) and signs the report (signArbitrary, QoreSign message-signing-v1). LiveFireRange (0x0dDf61a579646C980072030A5056CFAB77b7BB70): rebuilds the report "live-fire/v1 lane … target … shots … hits … lost … height …", prefixes "qorechain-msg-v1|qorechain-diana|", reads the shooter's key with pqcKeyStatus (registered, ML-DSA-87, possession proven), verifies with pqcVerify, and reads the TARGET's key from the registry as independent evidence. One record per target, no owner. A throwaway witness relays it through an EVM window scoped to the range, one transaction. Tests: 24 Foundry (exact text, tampering, replay, other chain, key checks, inactive precompiles, fuzzing) + 17 vitest (the chain's real refusal messages, lanes, funding math). CI on GitHub. What was hard: QoreChain's explorer indexes EVM transactions by their native hash, so links resolve 0x hashes through ethereum_tx.ethereumTxHash first; reading how QoreX's signArbitrary builds its ML-DSA-87 signature so the contract verifies exactly that; keeping the language plain for non-experts. AI use is documented in AI_USAGE.md.
Timeline
Comments and questions
- No comments yet.