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!