Bitcoin Forum
November 16, 2024, 03:34:46 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Other / Archival / RuneBet.com Crash seeding event! 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!
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!