#The Secret Santa AIĀ Project
The Secret Santa AI Project
$SecretAI will drop gifts to its hodlers on 25th of every month
For every 500k $SECRETAI holding you will receive 1 Lucky draw ticket.
More holding = more tickets.
First draw on this Christmas.
And then draws on 25th of every month.
This lottery is provably fair All winners are picked randomly and the method for picking the winners is described below.
At the beginning of each round, we generate a server seed for that round and show you the SHA256 hash of this seed.
When a lottery round has concluded, we make a list of all user id’s and their lottery tickets. We then use this list to assign ticket numbers for all tickets. For example if user id 1 has 10 tickets and user id 2 has 20 tickets, then user id 1 will have ticket numbers 0 to 9 and user id 2 will have ticket numbers from 10 to 29. This is done for all users.
Then the list containing the user id’s, tickets held by each user and their ticket numbers is published in a text file. This file also contains the total number of tickets issued in the round and the server seed for that round. A MD5 hash of this text file is calculated.
Then the current bitcoin block number is recorded and a block number that is 12 blocks into the future is decided on. The block hash of this future block is used as a “client seed” ie. a seed that we are not aware of when the list in step 4 has been published.
The winning ticket numbers will be calculated as described below:
A string (STRING1) is created – “[SERVER SEED]:[BLOCK HASH]:[WINNING POSITION]”.
The SHA256 hash of STRING1 is calculated and the first 8 characters of this hash are taken (STRING2).
STRING2 is converted to a decimal which gives us a number between 0 and 4,294,967,295 (NUM1).
NUM1 is then multiplied by the (total number of tickets minus 1) and divided by 4,294,967,295 to get a number (NUM2) between 0 and the total number of tickets less 1.
NUM2 is then rounded off to the nearest whole number which is the winning ticket number.