Post
Topic
Board Gambling
Merits 4 from 1 user
Topic OP
Slide seeding event - JacksClub.io
by
JacksClub
on 18/07/2022, 09:19:44 UTC
⭐ Merited by LoyceV (4)
Hi Everyone,

Welcome to our seeding event for Slide.
To prove our fairness we have generated a chain of 10,000,000 SHA256 hashes where each hash is the hash of the hexadecimal representation of the previous hash.

The last hash in the chain is: afa3dfc17cc60a23b7aaa3daa9023f62097dc857733dbddf1d6ed6916cb19a99

The formula for generating the game result:
Code:
const slides = [...];
const gameHash = hashChain.pop()
const hmac = createHmac('sha256', gameHash);
// blockHash is the hash of bitcoin block 745,480
hmac.update(blockHash);
const hex = hmac.digest('hex').substr(0, 13);
const num = parseInt(hex, 16) / Math.pow(2, 52);
const int = Math.floor(num * slides.length);
const result = slides[ random ];

blockHash used is Bitcoin block 745,480 which has not been mined at time of posting. We are using the hash of a future bitcoin block as a client seed so players can be certain that we did not pick one in the house’s favor. I’d appreciate it if someone could quote this post so this is all set in stone.