Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: remotemass on March 19, 2015, 01:49:45 AM



Title: Lottery using time-lock encryption
Post by: remotemass on March 19, 2015, 01:49:45 AM
Anyone could add a file to a pool of files - all encrypted with time-locking encryption - till a closing date.
Anyone then can place a bet stating what he thinks will be the game result hash.
As soon as the files are decrypted their binary contents are concatenated with each other.
The total concatenation of the decrypted files binary contents is hashed.
The bet that is closest to the hash number result wins.
If more than one are the closest or did bet exactly on the resulting hash the prize is divided between those winners.

The interesting thing about this game is that the winning result is locked in advance apriori to the bets placed.