About TFA Dice & Raffle
The rules:
Simple and intuitive dice game for everyone.
You bet by transferring the specified amount in GLMR (Bet Amount) to the system, In order to generate a return transaction. The system decides who is the winner or loser. The compensation will be sent to your wallet if you win, whether once or several times in a row.
User’s point = 1st Random number + 2nd Random number
System’s point = 3rd Random number + 4th Random number
If user’s point > System’s point, the user wins.
If you choose Jackpot Option,
you need to win 3 or 5 times the above game in a row to get the x7 or x100 reward
Provably Fair:
In order to ensure that there is no way for the system to change the outcome of a bet, the secret keys used are decided ahead of time. They are not released right away, since they could be used to submit selective transactions and win bets unfairly. However, the hash of the secrets is released and forever recorded in the blockchain. After the secrets are release users can verify that preceeding bets were provably fair. Each bet transaction that comes in is assigned to the secret key of the current day when it is first processed. In most cases this will be as soon as the transaction is broadcast on the network
Progress to generate random numbers:
1. performs a 512-bit SHA2 hash for secret key and Convert to HEX, make this transaction hash public to community
2. Player sends Bet Amount to blockchain by a transaction, save the transaction hash (called TxH).
3. Use private key, perform a 512-bit SHA2 hash for TxH into 128 characters, convert it into Binary (128). Divide them into groups of 4 numbers.
first group of User, second group of System, third group of User, fourth group of System, etc.
Calculate the average of each group and mod 6 plus 1 to get the random number.
4. End of the day, make the private key public.
Supported Chains
Similar Dapps