Bitcoin Forum

Economy => Gambling => Topic started by: JacksClub on July 18, 2022, 09:19:44 AM



Title: Slide seeding event - JacksClub.io
Post by: JacksClub on July 18, 2022, 09:19:44 AM
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.


Title: Re: Slide seeding event - JacksClub.io
Post by: LoyceV on July 18, 2022, 09:24:51 AM
Quoting:
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.
The last block in my Bitcoin Core is currently block 745,472.


Title: Re: Slide seeding event - JacksClub.io
Post by: JacksClub on July 18, 2022, 02:29:33 PM
The block has been mined!

Code:
00000000000000000007ac0d06e3ffbabf415cb425a6f90ed814a70bb847aaeb
https://www.blockchain.com/btc/block/745480

The game is going live soon!
https://jacksclub.io/games/slide