Provably fair: players verify it themselves

Provably fair (provable fairness) is a way to prove a result was not swapped: a hash is published first and the data is revealed later, so anyone can compare them. In a casino the player sees the hash of the casino's seed before the bet and later recalculates the outcome.

Yevhen Sychov

What provably fair means

Provably fair, in simple terms, is fairness you can check yourself instead of taking it on trust. It works like a sealed envelope: one side fixes the data in advance and shows the envelope, and opens it only later. In cryptography this is called a commitment scheme: instead of an envelope, a hash is published, which does not reveal the data but makes it impossible to swap later.

The approach is used wherever one side sets a random result and the other wants to be sure it was not rigged: online draws, blockchain lotteries, games. In a casino, provably fair means the player can recalculate any of their rounds and confirm that the outcome was not changed after the bet. For the team it is a trust tool and an argument in disputes, but not a replacement for the game's certificate.

How provably fair works

Provably fair works with three values: the casino's server seed, the player's client seed and the bet number (nonce). The casino shows the hash of the server seed in advance, the outcome is calculated with a public formula from the three values, and after the seed pair changes the casino reveals the server seed so the rounds can be recalculated.

  • Before the bet, the casino generates a server seed and shows the player its hash, for example SHA-256. The seed cannot be worked out from the hash, and it cannot be swapped unnoticed: a different seed has a different hash.
  • The player sets a client seed or takes the one issued. A bet number is added to the seeds, and it goes up with every round.
  • The outcome is calculated with a public formula from the two seeds and the bet number.
  • Verification: when the player changes the seed pair, the casino reveals the old server seed. The player checks its hash against the published one and recalculates their rounds.
Round outcome = formula (server seed, client seed, bet number)For example, a player placed 1,000 bets on one seed pair and then changed the pair. The casino revealed the server seed, and all 1,000 outcomes can be recalculated and compared with the betting history.

A common formula is HMAC-SHA256 of the server seed and a string made of the client seed and the bet number. The first bytes of the result are turned into a number, and the game rules turn that number into an outcome: a dice value, a crash point, the cells with mines.

How to verify a round: step by step

A provably fair round can be verified in six steps: save the hash before playing, set your own seed, play, change the seed pair, check the hash of the revealed seed and recalculate the outcomes. The casino's verification tool or an independent calculator using the same public formula will do for the recalculation.

  • Hash before playing. Save the server seed hash the casino showed before the first bet.
  • Your own seed. Set the client seed yourself, after you have seen the hash.
  • Play. The bet number goes up with every round on this seed pair.
  • Change the pair. After the change, the casino reveals the old server seed.
  • Check the hash. The SHA-256 of the revealed seed must match the hash from the first step.
  • Recalculate. Work out the outcome for each bet number and compare it with the history.

If the hash does not match or the recalculation gives a different outcome, the player has facts for a complaint. Support should be able to go through these steps with the player.

Provably fair in crash games

In crash games the round is shared by all players, so one player's seed cannot be used. Often the casino builds a chain of hashes in advance, where each value is the hash of the previous one, and plays it from the end. Hashing a round's hash once more gives the previous round's hash, so future rounds cannot be swapped unnoticed.

A shared value is often added to the chain, one that appears only after the chain is published and that the casino does not control. That way the casino cannot pick a chain that yields favourable outcomes.

Where provably fair is used

Provably fair is most common at casinos with crypto payments and in their in-house fast games: crash, dice, mines, plinko and similar. Slots from major providers usually do not have it: there, fairness is confirmed by a lab certificate for the game and its RNG.

This explains the demand for calculators and predictors. A provably fair calculator is a tool for checking past rounds. A predictor that promises to guess the next outcome does not work: the server seed of the current pair stays hidden until the pair changes, and it cannot be recovered from the hash.

Provably fair vs certified RNG

Provably fair and a certified RNG answer different questions. Provably fair proves to the player that their round was not swapped after the bet. A lab certificate confirms that the generator is random and the game's RTP matches the declared figure. Neither replaces the other.

Provably fairCertified RNG
Who verifiesthe player, any of their own roundsan accredited lab
What it provesthe outcome was not swapped after the betthe generator is random and RTP matches the declared figure
Limitationdoes not show what RTP is built into the formulathe player cannot verify their own round

The house edge is built into the formula that turns the seeds into an outcome, so RTP is checked separately. A hash check does not replace an RNG certificate if the licence requires one.

Common mistakes

  • A hash, but no way to verify. Without a public formula and a verification tool, provably fair is just a marketing label.
  • The player cannot change the seed. If the casino knows the client seed in advance, the server seed can be picked to match it. The player must set their own seed after seeing the hash.
  • Revealing the seed of the active pair. Whoever knows the server seed of the current pair also knows the future outcomes. Only the seed of a pair that has been changed is revealed.
  • Promising more than is proven. The hash proves that the round was not swapped, but says nothing about the level of RTP. Do not claim that such a game is a better deal than a regular one.

FAQ

What does provably fair mean?

It is a way to check the fairness of a round yourself. The casino shows the hash of its seed in advance, and once the seed is revealed the player recalculates the outcome and sees it was not swapped.

How do you verify provably fair?

Save the server seed hash before playing, then after changing the pair check the revealed seed's hash against it and recalculate the outcomes with the public formula.

What is a nonce in provably fair?

It is the bet number on the current seed pair. It usually goes up by one with every round, so one seed pair gives different outcomes.

Can you predict the result of a provably fair game?

No. The server seed of the current pair stays hidden until the pair changes, and it cannot be recovered from the hash, so predictors do not work.

How is provably fair different from an RNG?

An RNG produces a random outcome, and a lab confirms its fairness. Provably fair lets the player check personally that the outcome was not swapped after the bet.

Does provably fair mean a game pays better?

No. The check only proves the round was not swapped. The house edge is built into the formula, and RTP is checked separately.