Recreating the Winning Numbers
Once all ticket entries are locked and secure, the BALLGAME.COM smart contract requests a random seed from Chainlinkβs Verifiable Random Function (VRF). The Chainlink VRF is an independent and third party service that provides unpredictable and tamper-proof randomness. This seed is then expanded using a secure algorithm (HMAC-SHA256) to create a long sequence of random-looking numbers.
From this sequence, the BALLGAME.COM Lottery smart contract selects the required winning numbers, being:
Five unique numbers between 1 and 40; and
One Powerball number between 1 and 20.
Since both the server seed from Chainlink and the selection algorithm are publicly available after the draw, anyone can rerun the process themselves and confirm that the winning numbers were generated fairly, without manipulation by BALLGAME.COM.
How to Recreate the Winning Numbers
To recreate the winning numbers, follow the steps below.
Download the following .html file and open it in your browser (Chrome, Safari or Firefox).
When the file is loaded in your browser, you will see the following screen:

The next step is to navigate to the Verify Results link on the 'Tickets and Prizes' tab that lives on the Lottery page:

Once the modal opens, the next step is to copy the following input:
Server Seed
Nonce
Lottery ID (i.e. Draw Number)

After inputting all the required details, press Verify Draw which will call the smart contract and extract the winning numbers.

You should now see the following output showing the winning numbers which can then be compared to what is shown on BALLGAME.COM for that particular draw.
Last updated