Commit-and-reveal scheme blocks last revealer attack for on-chain lottery randomness
The proposed platform eliminates the last revealer attack in blockchain-based random number generation
People & policy arXiv 25 Sep 2026 Method Prototype evidence
Published as “Verifiable Randomness for Blockchain-Based Lottery Systems”
Why it matters
The scheme enables low-cost, trustless randomness for decentralized lottery applications without relying on paid oracle services.
Summary
The proposed commit-reveal lottery scheme produces verifiable on-chain randomness that passes statistical quality tests, achieving χ2 values of 1.01 and 1.03 (well below the critical threshold) and a Shannon entropy of 2.3219 bits, matching the theoretical maximum. It eliminates the classic last-revealer bias by making reveal optional and anchoring the seed to a future block hash, all without external oracles or financial penalties. The evidence comes from 10,000 on-chain lottery runs on a local Hardhat node and a 256-lottery off-chain simulation, showing no seed collisions and uniform winner selection.
What they found 2
- Statistical tests show uniform winner selection and high entropy
“Run A yielded χ2 = 1.01 and Run B yielded χ2 = 1.03, both far below the critical value, so H0 is not rejected in either case.”
- Shannon entropy matches theoretical maximum for 5 participants
“The Shannon entropy of winner distribution for RunB reached H = 2.3219 bits, matching the theoretical maximum log2(5) to four decimal places.”
Caveats 2
- An attack surface that cannot be fully closed by the deadline block scheme alone is a block producer with sufficient influence over block construction.
- The main limitation inherent in any blockchain-based system is that ticket purchases are not fully refundable; mechanisms for cancelable lotteries or refundable tickets are left for future work.
What’s new here 4
- Introduces "reveal-as-a-choice", allowing participants to withhold reveals without aborting the lottery.
- Anchors the randomness seed to the hash of a future block, removing the last-revealer advantage.
- Eliminates the need for slashing deposits or external oracle services, reducing cost and trust assumptions.
- Implements the full protocol as a Solidity contract on Polygon 2.0, providing a practical, low-cost proof-of-concept.