arXiv:2609.31485cs.CRSep 2026

Manuscript Offprint

arXiv:2609.31485

Verifiable Randomness for Blockchain-Based Lottery Systems

Gonçalo Ferreira, André Zúquete, Paulo Bartolomeu

Gonçalo Ferreira 1,3^{1,3}[0009-0006-1029-9490], André Zúquete 2,3^{2,3}[0000-0002-9745-4361], and Paulo Bartolomeu 2,4^{2,4}[0000-0002-1975-6233]

1^{1} Univ. of Aveiro, Campus Univ. de Santiago, 3810-189 Aveiro, Portugal

2^{2} DETI, Univ. of Aveiro, Campus Univ. de Santiago, 3810-189 Aveiro, Portugal

3^{3} IEETA / LASI, Univ. of Aveiro, Campus Univ. de Santiago, 3810-189 Aveiro, Portugal

4^{4} Instituto de Telecomunicações, Campus Univ. de Santiago, 3810-189 Aveiro, Portugal

Abstract. As lotteries and other high-stakes decentralized applications increasingly depend on unpredictable randomness for their operations, the lack of a secure and transparent on-chain random number generator that is verifiable by all participants remains a critical open problem. Various approaches to blockchain-based random number generation have emerged over the years, each with their own strengths and limitations, and have consistently been superseded as blockchain technology evolved. This paper surveys existing approaches to on-chain randomness and proposes a new platform that builds upon the well-known commit-and-reveal scheme while directly addressing its principal vulnerability, the last revealer attack, in which the final participant can withhold their reveal in order to bias or abort the output upon seeing an unfavorable result. We further compare this solution with prior approaches and evaluate its entropy properties. The proposed architecture combines a web-based front-end with a Solidity smart contract deployed on the Polygon 2.0 blockchain. Implemented and tested on the Amoy testnet, the prototype is low-cost and simple to deploy, providing a practical, accessible proof-of-concept for verifiable on-chain randomness.

Keywords: Verifiable Randomness · Blockchain · Commit-reveal · Smart contracts · Decentralized applications

1 Introduction

For centuries, humans have relied on unpredictable forces to make unbiased decisions [15]. From weather-based rituals determining leadership to dice rolls settling medieval disputes [7], randomness has served as a substitute for human judgment when fairness is required.

This reliance on chance goes deeper than practical utility. When outcomes are uncertain or personal bias might distort judgment, people instinctively defer to external sources of randomness, not out of irresponsibility, but out of a desire for decisions that cannot be blamed on fallible reasoning.

G. Ferreira et al.