Bitcoin Forum

Other => Archival => Topic started by: runebet on October 26, 2019, 11:18:33 PM



Title: RuneBet.com Crash seeding event!
Post by: runebet on October 26, 2019, 11:18:33 PM
Welcome to our seeding event for RuneBet.com launching in a few days. We are seeding it very similarly to my friend Stunna's setup!

To prove our fairness we have generated a chain of 9,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: 62c40c5fb567b29caa1b0cb04faad2c126d36a8856273bcc39495b9e560d1995

The formula for generating the game result:
Code:
const gameHash = hashChain.pop()

const hmac = createHmac('sha256', gameHash);

// blockHash is the hash of bitcoin block 601,201

hmac.update(blockHash);

const hex = hmac.digest('hex').substr(0, 8);
const int = parseInt(hex, 16);

const crashpoint = Math.max(1, (2 ** 32 / (int + 1)) * (1 - houseEdgePercentage / 100.0))

blockHash used is Bitcoin block 601,201 which has not been mined at time of posting. Current Bitcoin block is 601,188. Basically 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.

Excited to show you all Crash on https://www.runebet.com/ very soon!


Title: Re: RuneBet.com Crash seeding event!
Post by: DarkStar_ on October 27, 2019, 04:37:12 AM
Welcome to our seeding event for RuneBet.com launching in a few days. We are seeding it very similarly to my friend Stunna's setup!

To prove our fairness we have generated a chain of 9,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: 62c40c5fb567b29caa1b0cb04faad2c126d36a8856273bcc39495b9e560d1995

The formula for generating the game result:
Code:
const gameHash = hashChain.pop()

const hmac = createHmac('sha256', gameHash);

// blockHash is the hash of bitcoin block 601,201

hmac.update(blockHash);

const hex = hmac.digest('hex').substr(0, 8);
const int = parseInt(hex, 16);

const crashpoint = Math.max(1, (2 ** 32 / (int + 1)) * (1 - houseEdgePercentage / 100.0))

blockHash used is Bitcoin block 601,201 which has not been mined at time of posting. Current Bitcoin block is 601,188. Basically 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.

Excited to show you all Crash on https://www.runebet.com/ very soon!

Block 601201 (https://blockchair.com/bitcoin/block/601201) has a hash of 0000000000000000000aec2fe61dd7af9348bc82bd0a4fb030119d8cbd7143c4

archive.is (https://archive.is/Fh1v1) archive.org (https://web.archive.org/web/20191027043649/https://bitcointalk.org/index.php?topic=5196259.0)