Newly verified on chain: AMM pools, QoreSeal and the encryption key registry

Quantum Pass
QPredict
Seal a prediction nobody can peek at — not even you. The chain settles it.
About
QPredict is a sealed-prediction mini-game on QoreChain. Pick EVEN or ODD: your guess is hashed with a random salt in your browser and only the hash goes on-chain. The QPredict contract mixes that commitment with the block your prediction lands in — its number, timestamp and proposer, none of which you can know exactly when you sign — and fixes the outcome. Reveal your guess afterwards and the contract checks it against the seal and records the result permanently, with a public win/loss record per player. Leave a prediction unrevealed for more than 200 blocks and anyone can forfeit it as a loss: a sealed prediction can never be quietly buried. Built the hard way: two earlier designs derived the outcome from the BLOCKHASH opcode and both failed on Diana — the opcode returns 0 for past blocks on this EVM lane, verified on-chain against blocks carrying our own transactions. The landing-block context is the chain-native substitute that actually settles here, and the full lifecycle (seal, wrong-salt rejection, reveal, a win) is proven on testnet.
How it's made
Built with create-qorechain-dapp and @qorechain/evm, deployed through QoreChain's native flow — a registered ML-DSA-87 key plus a live EVM authorisation window, opened with hybrid-signed transactions. One small Solidity contract (QPredict.sol, Diana testnet, chain ID 9800) holds the commitment scheme: commitPrediction seals keccak256(player, guess, salt) and fixes the outcome from the landing block's context; revealPrediction verifies the reveal against the commitment; forfeitPrediction lets anyone convert an abandoned seal into a loss after 200 blocks. The web app is zero-build (viem via CDN) and talks to the contract through QoreX/MetaMask. The hardest part was discovering — on-chain, twice — that BLOCKHASH cannot settle games on Diana, and redesigning around it.
Timeline
Comments and questions
- No comments yet.