A casino could easily manipulate your results if they generated a new seed for every spin. This Hash-Chain Auditor lets you verify a complete chain of round hashes, proving that the casino pre-generated every single game outcome in advance (a key pillar of modern Provably Fair systems) and could not alter them during play.
| Label | Computed | Published | Status |
|---|
First pioneered by early crypto casinos like Bustabit, a hash chain is a secure method to lock in millions of game results in advance. Instead of generating a random number on the fly, the operator starts with a single random seed and hashes it repeatedly using the SHA-256 algorithm—often up to 10 million times.
The casino publishes the very last hash (the “genesis” hash) before any games are played. Because SHA-256 is a one-way function, players cannot calculate backward to find the next seed. However, as the games are played in reverse order, anyone can verify that each round’s hash is the exact SHA-256 parent of the previous round’s hash.
The generation of the hash chain works forward, while the game play and verification work in reverse:
The casino starts with a secret base seed ($S_0$) and hashes it recursively $N$ times:
S₁ = SHA-256(S₀)
S₂ = SHA-256(S₁)
...
S_N = SHA-256(S_{N-1}) (This is the Genesis Hash, made public first)The games are played in reverse order, starting from round $N$ and working down to round 1. To prove that the sequence is intact, you take the hash of the current round ($S_k$) and check if its SHA-256 value matches the hash of the previous round ($S_{k+1}$):
SHA-256(S_k) = S_{k+1}Suppose you want to audit a block of 100 crash rounds you just played. Most provably fair casinos allow you to download a history log as a CSV file containing the round numbers and their respective hashes:
A broken chain means that the hash of round $k$ does not hash to the value of round $k+1$. This is definitive mathematical proof of manipulation: either the casino altered a game outcome mid-session, skipped a round, or inserted an unrecorded round to evade a winning streak.
To prevent the casino from generating millions of chains and picking one that favors them, reputable operators mix in a public “client seed” (like a recent Bitcoin block hash) into the final round outcomes. Since the casino could not predict the future Bitcoin block when generating the chain, they could not optimize the outcomes.
SHA-256 is an industry-standard cryptographic hash function. It is completely collision-resistant and behaves pseudo-randomly. Changing a single character in the input seed completely alters the resulting hash output, making pattern prediction impossible.