Skip to main content

What Provably Fair System do you use in Crash?

Written by Sylvia

Crash uses a Provably Fair system that lets players check the shared round result after it ends.

Each round uses the next secret Hash code from a prepared list and the Seed, which is the hash of the Bitcoin block named in the public seeding event. The Seed stays the same for rounds using that event; each round uses a different code. The code stays secret until the round ends.

After the code is revealed, apply SHA-256 to check its place in the list:

commitment = SHA256(hash)

For the first code, the result should match the commitment published before the Bitcoin block existed. For each later code, it should match the previous code in the chain.

The game combines the round’s Hash code and Seed using HMAC-SHA256, then uses the result to calculate the Crash point:

commitment = SHA256(hash) hmac = HMAC_SHA256(hash, seed) raw = parseInt(hmac[0..7], 16) crashPoint = max(100, floor(99 × 2³² / (raw + 1))) / 100

floor means round down. The minimum Crash point is 1.00.

After the round, use its revealed Hash and Seed in the calculation; the result should match the recorded Crash point.

Did this answer your question?