Pages:
Author

Topic: Stake.com Crash seeding event - page 2. (Read 774 times)

legendary
Activity: 3192
Merit: 1278
Primedice.com, Stake.com
July 08, 2019, 02:51:19 AM
#1
Welcome to our seeding event for Crash launching in Beta this week. We are seeding it similarly to RHavar and others so it should be fairly straight forward.

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: 78a9757d3be42b74a3f70239078ad9317125fe9ee630d5bdada46de963e56752

The formula for generating the game result:
Code:
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 584,500 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.

Excited to show you all Crash very soon!
Pages:
Jump to: