Welcome to the official Castle.com Crash seeding event!
To prove our fairness, we have generated a chain of 6 million SHA256 hashes, where each hash is the SHA256 hash of the hexadecimal representation of the previous hash. The final hash in the chain is:
Crash: 9ae25118db2d09254721d89f090caa976a79cfb88bf16596243ad74d9ead11dc
The formula for generating the game result is:
// Crash result generation based on the widely used Rhavar method.
const hash = crypto.createHmac("sha256", serverHash)
.update(clientHash)
.digest("hex");
const subHash = hash.substring(0, 8);
const number = Math.abs(Number.parseInt(subHash, 16));
const maxInt32 = Math.pow(2, 32);
// 0.04 will result in a 4% house edge
const multiplier = Math.max(
1,
(maxInt32 / (number + 1)) * (1 - 0.04)
);
return Math.trunc(multiplier * 100) / 100;
The client hash used will be the hash of Bitcoin block 954459, which has not yet been mined at the time of posting.
By using the hash of a future Bitcoin block as the client hash, players can be certain that neither Castle nor any third party could have known or influenced its value in advance.
Once Bitcoin block 954459 has been mined, the resulting block hash will become the client hash used together with the server hash chain to generate Crash outcomes.
I'd appreciate it if someone could quote this post so that the seeding event is permanently recorded.
See you in the Arena!