Organize raffle/lottery games based on the Bitcoin blockchain.
The total amount gathered is
|Transaction ID||Paid||n. of tickets|
The organizer specifies their Bitcoin address, the ticket price and the block height that the ticket draw to happens.
Each participant sends funds to the provided address and their ticket(s) hash is calculated with the following formula:
sha256(transactionHash + targetBlockHash + nonce)
nonce is increased for the amount of tickets bought. The person with the lowest hash value wins.
A Bitcoin block is very difficult to generate and the resulting hash is unpredictable we can safely assume that it is impossible to cheat. Yet because the results are derived from a public ledger, they can be verified independently.
The software runs in the browser and it is open source.
If you like this software, consider supporting me: 1Nn7SdKxqvxPZNYa7rpSiK2qxYr34457jY