Deterministic Verification with On-Chain Incremental Merkle Trees in Decentralized Lotteries
Abstract
In large-scale lotteries, operational costs can make traditional approaches impractical. This paper proposes an architecture that addresses this limitation by introducing an on-chain Incremental Merkle Tree (IMT), which records a cryptographic commitment for each ticket purchase. During finalization, the contract requires that the submitted root matches the root derived from the IMT, preventing omission, address substitution, and fabricated sales in the commit phase, without requiring dispute windows or security deposits. We evaluate four implementations and show that the IMT-based variant preserves the favorable scalability of Merkle-based approaches while adding a constant overhead of ≈71k gas per purchase, regardless of the number of participants.References
Antonopoulos, A. M. and Wood, G. (2018). Mastering Ethereum: Building Smart Contracts and DApps. O’Reilly Media.
Breidenbach, L., Cachin, C., Chan, B., Coventry, A., Ellis, S., Juels, A., Koushanfar, F., Miller, A., Magauran, B., and et al., D. M. (2021). Chainlink 2.0: Next steps in the evolution of decentralized oracle networks. Chainlink Labs, 1:1–136.
Hire, A., Lanjewar, H., Haridas, P., Jadhav, M., and Rane, M. (2023). Decentralized lottery using blockchain. In Proceedings of the 2023 3rd International Conference on Pervasive Computing and Social Networking (ICPCSN), pages 1035–1041. IEEE.
Kalodner, H., Goldfeder, S., Chen, X., Weinberg, S. M., and Felten, E. W. (2018). Arbitrum: Scalable, private smart contracts. In 27th USENIX Security Symposium. USENIX Association.
Moraes, R., Bubolz, A. G., Ayres, D. G., Pinto, V. G., and Dalmazo, B. L. (2025). Arquitetura híbrida para loterias em blockchain com compressão de estado via merkle tree. In Anais da XXII Escola Regional de Redes de Computadores (ERRC 2025), pages 8–13, Porto Alegre, RS, Brasil. SBC.
Pan, Y., Zhao, Y., Liu, X., Wang, G., and Su, M. (2022). Fplotto: A fair blockchain-based lottery scheme for privacy protection. In Proceedings of the 2022 IEEE International Conference on Blockchain (Blockchain), pages 21–28. IEEE.
Zhang, Y., Yang, J., Lei, H., Bao, Z., Lu, N., Shi, W., and Chen, B. (2024). Verifiable random function schemes based on sm2 digital signature algorithm and its applications for committee elections. IEEE Open Journal of the Computer Society.
Breidenbach, L., Cachin, C., Chan, B., Coventry, A., Ellis, S., Juels, A., Koushanfar, F., Miller, A., Magauran, B., and et al., D. M. (2021). Chainlink 2.0: Next steps in the evolution of decentralized oracle networks. Chainlink Labs, 1:1–136.
Hire, A., Lanjewar, H., Haridas, P., Jadhav, M., and Rane, M. (2023). Decentralized lottery using blockchain. In Proceedings of the 2023 3rd International Conference on Pervasive Computing and Social Networking (ICPCSN), pages 1035–1041. IEEE.
Kalodner, H., Goldfeder, S., Chen, X., Weinberg, S. M., and Felten, E. W. (2018). Arbitrum: Scalable, private smart contracts. In 27th USENIX Security Symposium. USENIX Association.
Moraes, R., Bubolz, A. G., Ayres, D. G., Pinto, V. G., and Dalmazo, B. L. (2025). Arquitetura híbrida para loterias em blockchain com compressão de estado via merkle tree. In Anais da XXII Escola Regional de Redes de Computadores (ERRC 2025), pages 8–13, Porto Alegre, RS, Brasil. SBC.
Pan, Y., Zhao, Y., Liu, X., Wang, G., and Su, M. (2022). Fplotto: A fair blockchain-based lottery scheme for privacy protection. In Proceedings of the 2022 IEEE International Conference on Blockchain (Blockchain), pages 21–28. IEEE.
Zhang, Y., Yang, J., Lei, H., Bao, Z., Lu, N., Shi, W., and Chen, B. (2024). Verifiable random function schemes based on sm2 digital signature algorithm and its applications for committee elections. IEEE Open Journal of the Computer Society.
Published
2026-07-19
How to Cite
MORAES, Romulo de; PINTO, Vinícius G.; GONÇALVES, Eder; IMMICH, Roger; DALMAZO, Bruno L..
Deterministic Verification with On-Chain Incremental Merkle Trees in Decentralized Lotteries. In: COLLOQUIUM ON BLOCKCHAIN AND DECENTRALIZED WEB (CBLOCKCHAIN), 4. , 2026, Gramado/RS.
Anais [...].
Porto Alegre: Sociedade Brasileira de Computação,
2026
.
p. 65-70.
DOI: https://doi.org/10.5753/cblockchain.2026.23185.