I'm back on bitcointalk that can mean only one thing... Welcome to yet another another seeding event. This time for our stake.bet.ar . As always props to Rhavar the creator of crash for the method.
To prove our fairness we have generated a chain of 20,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:
Slide: 42fb6a93e263b95a44512ce30c6164cc41cdb300798b1ae78ed7746855331818
Crash: bf7f7c6f5364e5f1c5bdb97dbbf1136c04a50762d0794fe06d62d52aa11c7c12
The formula for generating the game result:
const gameHash = hashChain.pop()
const hmac = createHmac('sha256', gameHash);
// blockHash is the hash of bitcoin block 584,500
hmac.update(blockHash);
const hex = hmac.digest('hex').substr(0, 8);
const int = parseInt(hex, 16);
// 0.01 will result in 1% house edge with a lowest crashpoint of 1
const crashpoint = Math.max(1, (2 ** 32 / (int + 1)) * (1 - 0.01))
blockHash used is Bitcoin block 939,547 which has not been mined at time of posting. 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. I'd appreciate it if someone could quote this post so this is all set in stone.