Author

Topic: Lottery Game (Read 523 times)

full member
Activity: 140
Merit: 100
October 25, 2016, 02:18:08 AM
#6
The problem with that is, small lotteries grow bigger and 1BTC is still enough money for bigger miners to cheat. There have been a lottery on this forum, based on the blocks in the Blockchain and the miners did cheat. I cannot find it now, but it was pretty big and the operator was a well known user in the community.

The Millionairmakers concept on Reddit seems to work, if you want to try and get a hold of those guys. Go to : https://www.reddit.com/r/millionairemakers/

Unfortunately, the MillionaireMakers system suffers from a different problem: A big miner can withhold all blocks that do not result in him winning the drawing, unfairly increasing the chance that a winning block is eventually found.

The now defunct PevPot.com is an example of a system that solves this problem. It does not use the hash of the deciding block directly but instead applies a very slow (think 30+ minutes) key stretching function to it and uses its result to determine the winner. This prevents a big miner from even knowing whether any blocks he finds would result in him winning the draw until it is likely too late to submit that block. The key stretching function can be made even slower to provide even more certainty, though I do not believe it is necessary.
legendary
Activity: 3542
Merit: 1965
Leading Crypto Sports Betting & Casino Platform
October 25, 2016, 01:38:46 AM
#5
Merely proving that the game result was predetermined is not sufficient in a pool-backed game like a lottery, unfortunately. The problem is that the game operator knows the result ahead of time and could participate in the lottery himself with the winning ticket.

A simple solution would be to choose a block some time in the future and use its hash as the game result. That way players can be certain that the operator isn't (unfairly) partaking in the game. It is not completely provably fair as a big miner could still cheat, but it is probably sufficient for a small game.

The problem with that is, small lotteries grow bigger and 1BTC is still enough money for bigger miners to cheat. There have been a lottery on this forum, based on the blocks in the Blockchain and the miners did cheat. I cannot find it now, but it was pretty big and the operator was a well known user in the community.

The Millionairmakers concept on Reddit seems to work, if you want to try and get a hold of those guys. Go to : https://www.reddit.com/r/millionairemakers/
staff
Activity: 3458
Merit: 6793
Just writing some code
October 24, 2016, 01:09:38 PM
#4
Thank you for your comment. How would this work though, I mean what tool do I use and how? Which block do I choose in the future also?
Your lottery has to have an end time, so you would do something like choose the 6th block after the end time and take the first 4 bytes and use that as your winning number.
newbie
Activity: 8
Merit: 0
October 24, 2016, 12:27:39 PM
#3
Merely proving that the game result was predetermined is not sufficient in a pool-backed game like a lottery, unfortunately. The problem is that the game operator knows the result ahead of time and could participate in the lottery himself with the winning ticket.

A simple solution would be to choose a block some time in the future and use its hash as the game result. That way players can be certain that the operator isn't (unfairly) partaking in the game. It is not completely provably fair as a big miner could still cheat, but it is probably sufficient for a small game.

Thank you for your comment. How would this work though, I mean what tool do I use and how? Which block do I choose in the future also?
full member
Activity: 140
Merit: 100
October 24, 2016, 12:24:46 PM
#2
Merely proving that the game result was predetermined is not sufficient in a pool-backed game like a lottery, unfortunately. The problem is that the game operator knows the result ahead of time and could participate in the lottery himself with the winning ticket.

A simple solution would be to choose a block some time in the future and use its hash as the game result. That way players can be certain that the operator isn't (unfairly) partaking in the game. It is not completely provably fair as a big miner could still cheat, but it is probably sufficient for a small game.
newbie
Activity: 8
Merit: 0
October 24, 2016, 11:45:57 AM
#1
I want to create a lottery game but do not have enough knowledge to create or implement a deposit/withdrawal or provably fair system.

Would you be willing to participate in the game if there is a hashed winning number and all deposit are held in escrow?

The escrow would have to be a member of this forum and sign a message with the deposit addresses stating he owns them and only he has access.

There will be 3 games, each one has a prize of 1 BTC.

#1 Entry: 0.0001, Players: 10,000
#2 Entry: 0.001, Players: 1,000
#3 Entry: 0.01, Players: 100
Jump to: