Our games are provably fair and perpetuated by the blockchain. You can calculate the winning result for any block backwards, but you cannot know the outcomes for the future. The spinning wheel and the dice on our website are only a graphical representation of the result, that is actually calculated from the Chia blockchain block header hash and a secret plaintext, set in advance and valid 24h.
For the coin game, we calculate the result using your coin name and our secret plaintext.
A single game lasts 5 blocks of the Chia blockchain. We gather all bets made in each 5 blocks (transactions confirmed in blocks ending in 1 to 5 and blocks ending in 6 to 0). The result of the bets is than calculated from header hashes of blocks ending in 5 and in 0.
Example: you send your bet in XCH to our receive address and see the following in your Chia wallet:
Your transaction is confirmed in block 1,504,884, so we include it in the game of blocks from 1,504,881 to 1,504,885. The result for this block will be calculated from the header hash of block 1,504,885 and a secret plaintext generated in advance. Nobody can predict the outcome or change it.
In rare cases, where the blocks of the blockchain rearange themselves after we fist see the transaction (called the Foliage), the correct transaction block is the one where we first observed the transaction.
Here is how the result is calculated:
HMAC(algorithm=SHA256, data=header_hash, key=secret_plaintext). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal and then:
For the Ultimate Wheel: We divide this number by 21 and then multiply the decimal part with 21.
We always add +1 to the result, to avoid 0.
For the Magic Dice: We divide this number by 6 and then multiply the decimal part with 6.
We always add +1 to the result, to avoid 0.
The table of winnings for each game is below:
Field number WHEEL | Multiplier |
---|---|
1 | 4 |
2 | 0 |
3 | 1.5 |
4 | 2 |
5 | 0 |
6 | 1.5 |
7 | 1.5 |
8 | 0 |
9 | 2 |
10 | 2 |
11 | 0 |
12 | 1 |
13 | 0.5 |
14 | 0.5 |
15 | 0 |
16 | 0.5 |
17 | 0 |
18 | 2 |
19 | 0 |
20 | 0.5 |
21 | 0 |
Field number DICE | Game | Multiplier |
---|---|---|
1 | Bet on Odd | 1.93 |
Bet on 1 and 2 | 2.75 | |
Bet on 1 | 5.55 | |
2 | Bet on Even | 1.93 |
Bet on 1 and 2 | 2.75 | |
Bet on 2 | 5.55 | |
3 | Bet on Odd | 1.93 |
Bet on 3 and 4 | 2.75 | |
Bet on 3 | 5.55 | |
4 | Bet on Even | 1.93 |
Bet on 3 and 4 | 2.75 | |
Bet on 4 | 5.55 | |
5 | Bet on Odd | 1.93 |
Bet on 5 and 6 | 2.75 | |
Bet on 5 | 5.55 | |
6 | Bet on Even | 1.93 |
Bet on 5 and 6 | 2.75 | |
Bet on 6 | 5.55 |
Formula to get the random winner:
HMAC(algorithm=SHA256, data=coin_name, key=secret_plaintext). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal. If the number is divisable by 2 (even number), you win, if the number is odd, we win.
Here are the hashes for secret plaintexts by day. The secret plaintext will be released every day at midnight CET and you can check it against the hash using SHA256(secret_plaintext).
Date | Secret Plaintext | Secret Hash | Date / Secret Plaintext / Secret Hash |
---|---|---|---|
2023-06-09 | 0xe0da3c94d8bf998e9bf1b21232c6e0c9d1e1267ce6c71de8bcce51901b0d7589 |
2023-06-09
0xe0da3c94d8bf998e9bf1b21232c6e0c9d1e1267ce6c71de8bcce51901b0d7589
|
|
2023-06-08 | 0xf07590321f8620628a6e011b910ec88ce9a55d18d61be3008208e2d6a72da695 |
2023-06-08
0xf07590321f8620628a6e011b910ec88ce9a55d18d61be3008208e2d6a72da695
|
|
2023-06-07 | 0x8ee623ee50e5ddc4e219fffad7ef16a84265d35c42b8ab770bc3c4004f587e2e | 0x9867e93eac71b467626a07911e3be750640ab410127e2dc539d07cf677202dd0 |
2023-06-07
0x8ee623ee50e5ddc4e219fffad7ef16a84265d35c42b8ab770bc3c4004f587e2e
0x9867e93eac71b467626a07911e3be750640ab410127e2dc539d07cf677202dd0
|
2023-06-06 | 0xee659f5d0042835b1da3893c9083756b437e7acdcd5df3014e4470c1cb9d6f68 | 0x4401d91385b6c069cfbc00b7d6cc0f05efb9a7f98f18b45192bebc0099cf0d39 |
2023-06-06
0xee659f5d0042835b1da3893c9083756b437e7acdcd5df3014e4470c1cb9d6f68
0x4401d91385b6c069cfbc00b7d6cc0f05efb9a7f98f18b45192bebc0099cf0d39
|
2023-06-05 | 0xd85cc594965ba643a97a774050d39722355e2c669d579531605a4e5744b2b37d | 0xc80bcda0397f32809e03dc9d386346efc51c12cd2bfa78387c3ff193c34677d4 |
2023-06-05
0xd85cc594965ba643a97a774050d39722355e2c669d579531605a4e5744b2b37d
0xc80bcda0397f32809e03dc9d386346efc51c12cd2bfa78387c3ff193c34677d4
|
Each ticket is calculated into a numeric value. The prizes are than given out in a descending manner (highest number wins). The formula to get the value for each ticket is:
HMAC(algorithm=SHA256, data=coin_name, key=block_header_hash). We take first 12 digits of the outcome, calculate it from hexadecimal to decimal. If an user purchases multiple tickets, the data field in calculation is created from coin name and addition of a -$number. For example, first ticket is coin_name-1, second coin_name-2 and so on. The block_header_hash is taken from first block ending in 10 after the pay-in round is closed (for example, block 2,000,010).