About
Scammers print their own payment QR codes and stick them over parking meters, shop counters and charge points. A QR code can't say who put it there, so the payer's phone pays whoever printed last.
Placard moves that trust onto QoreChain (qorechain-diana). A printed Placard code holds only a registry address and a terminal id. Who that terminal pays lives in PayeeRegistry (0x291a798FeA2915744Df024449981f1A6cC27FAF9), and every change to it carries the city's ML-DSA-87 signature, checked on chain with pqcKeyStatus (0x0a02: registered key, proof of possession, and the exact key hash pinned at deploy) and pqcVerify (0x0a01). Before any wallet opens, the payer's app reads the endorsement on chain and refuses bare addresses, codes naming another registry, terminals the city never endorsed, and terminals that are revoked or expired. It then pays the endorsed account with a hybrid secp256k1 + ML-DSA-87 MsgSend from QoreX and confirms pqc_hybrid_verify: verified from the chain receipt.
It is the city vouching for the code, not the shop vouching for itself. And because only the city's post-quantum key is accepted, breaking a classical city key on Q-Day redirects nothing: a valid signature from the city's own secp256k1 key was refused on chain (BadPqcSignature).
Quantum Pass evidence
- Built with create-qorechain-dapp 0.14.0 (contracts/ from the foundry template, app/ from fullstack-web, pinned in package.json).
- Connects QoreX through @qorechain/qorex-types (getQorexNative, hasCapability, qorexSignAndBroadcast).
- Deployed on qorechain-diana (EVM chain id 9800): PayeeRegistry at 0x291a798FeA2915744Df024449981f1A6cC27FAF9 (block 11,154,554).
- Hybrid-signed QoreX payments (pqc_hybrid_verify status=verified, algorithm_id=dilithium5): 9165F721… (block 11,156,557, in /#/proof and reverify.ts) and 0735F502… (block 11,169,012, recorded live in the demo video).
Judge it without a wallet: https://placard-city.vercel.app/#/proof re-reads all 14 evidence transactions from diana as it loads: 4 accepted, 9 refusals decoded to their exact custom errors (BadPqcSignature, BadLabel, PayeeChanged, EndorsementRevoked, NotEndorsed), and 1 QoreX hybrid payment. Its forgery lab takes the city's real signature from a mined endorsement. Flip one bit and both the browser (@qorechain/pqc) and pqcVerify refuse it. Sign the same text with a fresh ML-DSA-87 key and the browser confirms it is valid for that key, while pqcVerify refuses it as the city's. From a terminal, contracts/scripts/reverify.ts runs 16 checks against diana with no keys.
How it's made
Architecture
- Scaffolded with create-qorechain-dapp 0.14.0 (npx create-qorechain-dapp@0.14.0 contracts --template foundry --network testnet, and npx create-qorechain-dapp@0.14.0 app --template fullstack-web --network testnet), keeping both folder layouts and pinning 0.14.0 in package.json and app/package.json.
- PayeeRegistry (Solidity 0.8.28, Foundry, 31 tests with the precompiles mocked), deployed on diana's EVM (chain id 9800) at 0x291a798FeA2915744Df024449981f1A6cC27FAF9 (block 11,154,554). Each endorse or revoke carries an ML-DSA-87 signature over a readable text in QoreChain's message-signing domain (qorechain-msg-v1|qorechain-diana|). Endorsements bind the action, both chain ids, registry, terminal, revision, the payee in both address forms, the payee it replaces, the UTC expiry and the label. Revocations bind the action, chain ids, registry, terminal, revision and the current payee.
- On chain, the registry reads the city's key with pqcKeyStatus (0x0a02) and requires it to be registered, ML-DSA-87 (2,592 bytes), possession-proven and equal to the key hash pinned at deploy. It fails closed (PrecompileUnavailable) on a missing or short answer, then verifies with pqcVerify (0x0a01). Each signature is valid once, for the revision it names, so replays and endorsements relayed after a revocation revert. Only ML-DSA-87 is accepted.
- All four accounts (city, relay, payee and QoreX payer) hold ML-DSA-87 keys (2,592 bytes) registered on chain with proof of possession (MsgRegisterPQCKeyV2).
- The relay and signing scripts (contracts/scripts/window.ts, extended with QORE_WINDOW_TARGETS, and prove.ts) use @qorechain/sdk and @qorechain/evm to register keys, sign endorsements under qorechain-msg-v1, and open an EVM authorization window scoped to the registry (allowed_targets = [0x291a798FeA2915744Df024449981f1A6cC27FAF9]) for all 13 proof transactions.
- App (React, Vite, @qorechain/pqc, @qorechain/qorex-types, cosmjs-types, viem): Verify & pay reads the endorsement over the EVM RPC, re-checks it immediately before QoreX opens, sends a native MsgSend that QoreX signs hybrid through qorexSignAndBroadcast, and reads the receipt back (pqc_hybrid_verify: verified). Print a code makes the sticker, Registry shows the signed event history, Overview walks through the signed text, and Proof re-checks every claim live beside the forgery lab, where @qorechain/pqc and pqcVerify check the same signature independently.
- contracts/scripts/reverify.ts: 16 live checks against diana with no keys: 13 EVM transactions (target contract checked, each revert decoded with eth_call at the block before), the QoreX hybrid payment 9165F721…, the city key against its pinned hash, and the payee key. A second QoreX hybrid payment (0735F502…, block 11,169,012) was recorded live in the demo video.
What was hard
- diana's bech32 precompile (0x0400) is not active (0x0901, 0x0C01, 0x0a01 and 0x0a02 are), so the registry encodes the payee's qor1 address in Solidity; tests match it against the reference encoder.
- QoreX's default (coin-118) accounts cannot send on the EVM lane, so payers send a hybrid-signed native MsgSend. A contract cannot intercept a native MsgSend, so that gate lives in the app and is re-checked immediately before QoreX opens; payEndorsed enforces the same gate on chain for EVM payers.
- diana's RPC nodes cap eth_getLogs at 10,000 blocks, so the Registry feed reads pinned event receipts plus a scan of the latest 9,500 blocks.
- Refusals were sent with an explicit gas limit (1,500,000) so they mine as reverts instead of being dropped at estimation, each signed against the terminal's live revision so the only thing wrong with it is the attack it names.
Limits, stated plainly: testnet only (pqcVerify and pqcKeyStatus are not active on mainnet, where every check fails closed); the demo city is a development account signing from the CLI with @qorechain/sdk in the same qorechain-msg-v1 domain QoreX's signArbitrary uses; one city key per registry; a phone camera that opens a link directly skips Placard's check.
AI-native workflow: documented in AI_USAGE.md, covering the developer's design and security ownership, the implementation pair, the two-vendor adversarial review loop, and the 13 findings it caught, each reproduced before it was fixed (12 fixed in commits, one on chain).