Abstract
Lotteries are an excellent use case for Ethereum. Like pyramids, lotteries were among the first contracts on the Ethereum blockchain. Results are provably fair, enabling the lottery to be run without a central authority taking a cut of the winnings, and without anchoring its operation in any single legal jurisdiction. It is highly likely that the lotteries of the future will be conducted on a blockchain. This chapter covers the primary roadblock to running a good lottery—random-number generation—and develops a series of increasingly complex lottery contracts.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Kedar Iyer and Chris Dannen
About this chapter
Cite this chapter
Iyer, K., Dannen, C. (2018). Lotteries. In: Building Games with Ethereum Smart Contracts. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3492-1_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3492-1_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3491-4
Online ISBN: 978-1-4842-3492-1
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books