How it works
drand is safe today, but not against quantum computers. Qtum'd mixes every drand round with quantum-safe randomness, keeping results unriggable even after Q‑Day.
round
drand round
Public, checked on chain. Fair today, not quantum-proof.
ML-DSA-87
Quantum-safe values
Fixed ahead by hash chains. Still secret after Q‑Day.
73
Your number
Mixed on chain in about 8 s. Anyone can check it.
Try it out
No wallet needed. if you want more rolls.Switch QoreX to testnet in the wallet, then come back here. Free rolls work until then.Rolling from your QoreX wallet .
Roll a number
Pick a winner
About
Built for QoreChain's Build Before Q‑Day hackathon. Runs on QoreChain testnet.
Frequent questions
Why does QoreChain need this?
A contract cannot make randomness by itself: every node must reach the same answer, so anything it works out, anyone can work out too.
The usual shortcut is empty on QoreChain testnet: blockhash returns 0, so a contract that uses it reads the same number every time.
For example, Quantum Flip says in its own docs that every flip on testnet is fully predictable for this reason, and that a real version would need commit-reveal or a VRF.
Why not just use drand?
drand is fair today, but its signatures are not post-quantum: once a quantum computer can forge them, rounds could be known early.
Qtum'd provider values are fixed in advance and guarded by ML-DSA-87, a post-quantum signature, so someone who can forge drand still cannot predict a result.
What if a provider cheats or goes quiet?
It cannot pick its value: each one is fixed in advance by a hash chain. All it can do is reveal or stay quiet, so at most it chooses between two results, never a number.
It must decide 3 s before the drand round, so today it cannot even tell which result each choice gives. A missing value is left out and the result still comes on time.
Can I run my own provider?
Yes. Anyone can register one: the contract only checks that the provider's list is signed with its own ML-DSA-87 key. The provider guide covers making a list, registering it and running a bot that reveals its values.
Apps can pass their own providers with requestWith instead of the default list. One honest provider is enough to keep a result unpredictable, even after Q‑Day.
How do I use it in my contract?
Call request on the Qtumd contract with the fee from quote, and Qtum'd calls your contract's onRandom with the result. The JavaScript library in the repo does the same from an app, and can recheck any result.
Qtum'd contract on QoreChain testnet: