
Quantum Pass
QorePass
Passes owned by an ML-DSA-87 key, not a wallet: issued, checked in and revoked on QoreChain — plus a QoreX dApp.
About
QorePass is a pass registry for things that must be unforgeable but are not money — an event badge, a course credential, a signed receipt, a door code for one night. Today those are a barcode, a PDF, or a row keyed by an account, and they fail the same way twice: a screenshot is as good as the original, and whoever can sign for the account can mint as many as they like. Behind both sits a classical signature that one quantum computer undoes. QorePass makes the pass belong to an ML-DSA-87 (FIPS 204) key. At issuance the registry stores keccak256(holder public key) next to the event, a metadata hash and an expiry. Checking in requires the holder's post-quantum signature, verified on chain by QoreChain's pqcVerify precompile (0x…0a01), so a copied pass id or a screenshot checks in for nobody — and the attendee needs no wallet and no gas: the venue submits the transaction. The issuer's authorisation is checked against the key the chain holds for the issuer's own account (pqcKeyStatus, 0x…0a02) with a monotonic per-issuer nonce, so a captured signature cannot mint a second pass. An attacker who holds the issuer's classical ECDSA key — the Q-Day case — can submit from the issuer's account and still cannot mint: BadIssuerSignature(). On testnet diana: registry 0x312845b8256cafe2ecc8be7addf54f83a836a88b, ten passes (three checked in, one revoked, six valid), 41 transactions (20 EVM, 21 hybrid-signed native), six refusals mined with the contract's own errors. The verifier is a static page that reads the chain over JSON-RPC; dapp/ is a real create-qorechain-dapp project (viem-wagmi, v0.14.0) with the QoreX wallet, built into web/dapp/ and served by GitHub Pages. Third pass: the rails around the registry. QoreSeal seals the whole issuance archive (the ten pass documents) to the issuer's ML-KEM-1024 key and puts only the envelope's digest on chain in a hybrid-signed memo. QoreSign writes each admission as a Sign-In-With-QoreChain receipt, signed by the venue's hybrid key and verified against the ML-DSA-87 key its account registered on chain. The venue also links an Ed25519 kiosk key with the evm permission and a spending rule allowing exactly one call — checkIn on this registry — so the door scanner can admit a pass through MsgExecuteEVM (it admitted dara-1) and is refused by the chain when it tries to mint one. The registry's counters are readable through qorechain-mcp, and qorescan produces a CycloneDX CBOM of the contract and chain plus DORA and NIS2 mappings. python verify.py re-checks all of it read-only with no key: 27 checks in about 30 seconds, and the same job runs in GitHub Actions daily. Name note: another project called QorePass appeared in this same track the same day; this one is the registry at 0x312845b8256cafe2ecc8be7addf54f83a836a88b in dorithesky/qorepass-verify, and its README says so at the top.
How it's made
Architecture. A Solidity 0.8.24 registry, a Python signer/CLI on qorechain-sdk 0.15.0, and a dependency-free HTML verifier. QorePassRegistry keeps issuers (key hash, name hash, nonce, active), passes (issuer, event id, metadata hash, holder key hash, validity, check-in time, status) and counters. Four functions change state — registerIssuer, issuePass, checkIn, revokePass — and each is authorised by an ML-DSA-87 signature over a message that starts with the domain, block.chainid and address(this). The four *Message views return the exact bytes to sign, and verify.py compares each pass document's signed bytes with the contract's own view. Network features. Every account registers its canonical ML-DSA-87 key with proof of possession (MsgRegisterPQCKeyV2); the issuer also registers an ML-KEM-1024 key and QoreSeal seals the archive to it. The EVM lane is reachable only through a window opened by a hybrid-signed native transaction: one 1-transaction window for the deployment, then target-scoped windows naming only the registry. The registry calls pqcVerify for every signature and pqcKeyStatus to bind an issuer to its chain identity. The rails. sealing.py seals all ten pass documents with qorechain-qoreseal (hybrid X25519 + ML-KEM-1024, envelope bound to chain, purpose and batch AAD) and the digest is anchored in a hybrid-signed MsgSend memo. receipts.py builds SIWQ messages with qorechain-qoresign, signs them hybrid and verifies them with verify_siwq(require_pq=True) against fetch_pqc_status — a classical-only signature is refused. kiosk.py links an Ed25519 key with link_authenticator_msgs (permissions ["evm"], allowed_evm_calls = [registry/0x1ef04ae6]) and executes checkIn as the venue through MsgExecuteEVM while a funded relayer pays; the same path pointed at issuePass is refused with "authenticator not permitted for this action". mcpread.py reads the registry through qorechain-mcp's read_contract. qorescan scanned the contract and the live chain into docs/cbom.json, and its dora/nis reports are committed beside it. GitHub Actions (.github/workflows/daily-verify.yml) runs forge test, a 100% coverage gate and verify.py on every push and daily. Tests. 47 Foundry tests plus a 7-invariant suite (256 sequences × 500 calls, 128,000 calls): counters equal objects, the approval nonce equals the issuer's authorisations, a revoke is final, a check-in time never moves, no pass exists without a holder-key commitment. Coverage: 100% lines (105/105), statements (148/148), branches (35/35), functions (19/19). The precompiles are etched mocks and a "signature" is 0x01 || message, so signing is a pure function of the message — the property ML-DSA-87 gives on the wire. What was hard. (1) An EVM window's max_value must cover the maximum fee of every admitted transaction, not just the value transferred: the first deploy was refused with "this transaction needs 480000 uqor". (2) A reverted EVM call stores no reason, so refusals are recovered by replaying the transaction one block earlier and decoding the custom error — that is how EVIDENCE.md quotes BadIssuerSignature() instead of "execution reverted". (3) The first forged-pass demo reused an existing pass id, so PassExists refused it before the signature check; the demo now uses a fresh id. (4) The kiosk check-in signs the account's per-key auth nonce, not the EVM nonce — reading the wrong one produces a signature the chain will not accept. (5) The connected GitHub App has no workflows permission, so a push carrying a workflow file is rejected; daily-verify.yml went in through the GitHub web UI instead, and the run it started passed on GitHub's own runner in 1m45s. (6) npm install was killed by a per-command timeout and left a half-extracted node_modules/esbuild, after which every install died with "Invalid Version:"; removing the tree and installing --install-strategy=nested fixed it, and vite build needed NODE_OPTIONS=--max-old-space-size=3072.
Timeline
Newly verified on chain: MCP server or qore CLI, QoreScan
Pushed 4 commits to main
- d8bc609 ci: re-check QorePass daily (forge test, coverage gate, verify.py) · dorithesky
- af2c8ab feat: the rails beyond the registry — QoreSeal archive, SIWQ receipts, kiosk key, MCP, QoreScan · pickle-scout
- 0dc4fcf dapp: load the stylesheet (the page rendered unstyled) · pickle-scout
- ffb965d dapp: create-qorechain-dapp (viem-wagmi) verifier with the QoreX wallet · pickle-scout
Newly verified on chain: MCP server or qore CLI, QoreScan, QoreSeal and the encryption key registry, Smart accounts and spending rules
Earned a Ship Weeks badge.
Earned a Ship Weeks badge.
Pushed 5 commits to main
- 47702c8 docs: submission record and QoreChain README badge · pickle-scout
- ac7080f feat(demo): 107s demo video, live verifier screenshots, copy fix · pickle-scout
- bf0a53f fix(web): keep the ?pass= payload through the root redirect · pickle-scout
- d750ccc fix(web): prefix eth_call calldata with 0x · pickle-scout
- 59069e2 feat: QorePass — post-quantum pass registry on QoreChain testnet · pickle-scout
Earned a Ship Weeks badge.
Earned a Ship Weeks badge.
New project.
Comments and questions
- No comments yet.