
About
QoreChain had no fair randomness. Apps that need chance use transaction hashes or block values, which the sender can steer. The usual answers, VRF and drand, rest on cryptography a quantum computer breaks. Sortes is a commit-reveal house any QoreChain app can plug into. Each result mixes three inputs: a house value locked in a keccak256 hash chain at enrollment, a user secret committed before the request, and the lock-block hash. Silence never helps: a missed deadline floors the result, and a silent house also pays the user from its bond. The flagship app is Sortes Lots: an NFT whose traits come from that result, with the plate drawn on chain. A stolen ECDSA key cannot move the house’s money. Every withdraw, payout change, anchor rotation and pause needs a fresh ML-DSA-87 signature, checked on chain with pqcVerify against the key from pqcKeyStatus. Live mint: https://sortes-live.vercel.app Judge path: mint → tracker → /verify → /attacks
How it's made
Foundry contracts on diana (SortesHouse, SortesMint, on-chain SortesRenderer, SortesDice). The house daemon is TypeScript on Fly.io: it watches requests, reveals the next hash-chain value, relays the user reveal, finalizes, and keeps a scoped EVM window limited to the house and mint contracts. Admin actions are signed with @qorechain/pqc (ML-DSA-87) and verified on chain. QoreX mints go through native MsgCrossVMCall into mintSponsored; MetaMask pays 1 QOR inside a window opened from QoreX. Kits in the repo: @qorechain/sdk, @qorechain/evm, @qorechain/pqc, @qorechain/qorex-rainbowkit, @qorechain/qorex-types. Two-stage QCAI audit in docs/audit/. What was hard: diana’s blockhash() is zero inside contracts and prevrandao is constant, so the live trust model is two-party (house + that buyer), stated in the README. ML-DSA cannot be a VRF (signatures are randomized); that is why the house is a hash chain, not a signature.
Timeline
Pushed 24 commits to main
- 572f857 Polish the live dapp: Sortes favicon, compact mint notices, explorer links, verify RPC proxy, and nav scroll reset. · Chibey-max
- afb64dd Include contract ABIs in the web app so Vercel can build without the house tree. · Chibey-max
- 5f9809d Ship the live site polish: QoreX mint path, marquee swipe, and attack hashes for Vercel. · Chibey-max
- 44a6c8c Record that /verify passes 6/6 on five live lots. · Chibey-max
- c7e336d Record QCAI Stage 2: same six findings, score 65 to 72, no contract change. · Chibey-max
and 19 more commits
New project.
Comments and questions
- No comments yet.