Author

Topic: Slide seeding event - JacksClub.io (Read 123 times)

copper member
Activity: 603
Merit: 122
July 18, 2022, 09:29:33 AM
#3
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
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 18, 2022, 04:24:51 AM
#2
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.
copper member
Activity: 603
Merit: 122
July 18, 2022, 04:19:44 AM
#1
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.
Jump to: