Post
Topic
Board Gambling
Merits 2 from 1 user
Re: 🔥🎲Luckydice.com 🎲🔥 - ⭐ 100,000 USD Jackpot ⭐ Cashback ⭐ Faucet ⭐ Unique Game ⭐️
by
Tytanowy Janusz
on 03/02/2020, 09:15:55 UTC
⭐ Merited by tyKiwanuka (2)
Here you can find step by step guide on guide on how to check fairness of your bet using Lyckydince provably fair system.

Click on Activity [1] -> MY BETS [2] -> choose bet that you want to check and reveal its details [3] -> copy Server Seed (Hashed) - that's mine: dd278ba121872e8527861c0c163afc57b5baa70ae1c25f03837474bce92efb1c  -> Clink on RANDOMIZE [4] to reveal server seed (from now on every next bet will be made using new Server Seed)



Copy Server seed, client seed and nonce.

Server seed:
bafeeb0d100b41c1296273d1b7eff123cff55233674d229dee2a4d8958f5b169

Client seed:
37c3b51b49f6f0cb60b2c0e64cc26a98

Nonce:
2

Now we have every data that we need. Lets do the math:

1- Check if Server seed is correct - hash it with SHA256 and check if you will receive Server Seed (Hashed). The easiest way to do that is to use online tool f.e. https://emn178.github.io/online-tools/sha256.html



Correct !

2- Calculate HMAC_SHA256(K,m) function
K- Server seed
m = "{client_seed}:{nonce}:{round_number}:0" - its   37c3b51b49f6f0cb60b2c0e64cc26a98:2:0:0 for me.
We can use this tool - https://www.freeformatter.com/hmac-generator.html#ad-output for calculation.


I get: 2202b355351a1b6b5393fd4fa4e820785ed3336d0fd81eac707226886b53717a

3- Get final resoult
3.1
In my case i'm checking "CLASSIC DICE" game. So i need first eight bytes.

Quote
First eight bytes of HMAC_SHA256(K,m) function’s result need to be converted into decimal values (0-255 each). First byte is divided by 256 (256 raised to power of 1), second byte is divided by 65,256 (256 raised to power of 2), third byte is divided by 16,777,216 (256 raised to power of 3), fourth byte is divided by 4,294,967,296 (256 raised to power of 4).

Each hexadecimal digit represents four binary digits, also known as a nibble, which is half a byte.

So 8 first bytes is 16 digits - 2202b355351a1b6b

2202b355 - dice 1 resoult
351a1b6b - dice 2 resoult

Hosseinimr93 helped me out with rest of the calculation. You can find his post here:
https://bitcointalk.org/index.php?topic=5218483.msg53763462#msg53763462
The final dice result is
[0.78]+1 = 1
[1.25]+1 = 2
Correct !

3.2
What if I was playing "DIGITAL DICE"? I need first 4 bytes - 8 digits: 2202b355

We do the same steps as with "CLASSIC DICE" but we stop here:

(34/256)+(2/2562)+(179/2563)+(85/2564) = 0.13

hosseinimr93 rounded the result, but its exact form is 0.132858753

Now we need to multiply it by 10 000, take floor and devide it by 100.

floor(0.132858753 * 10 000) = 1328
1328/100=13,28 - and that would be the resoult if I would play "DIGITAL DICE" instead of "CLASSIC DICE" in this game.