How Provably Fair Works
How Provably Fair Works: Seeds, Hashes and the Order They Run In
How provably fair works, part by part: seeds and nonces, SHA-256 and HMAC, commit and reveal, the full algorithm, and what a verified round cannot prove.
In this section
- Provably Fair Algorithm Explained Step by StepHow a provably fair system turns seeds into results: the provably fair algorithm explained step by step, from SHA-256 to HMAC-SHA256 to one real roll.
- Server Seed, Client Seed and NonceServer seed, client seed and nonce in provably fair games: what each input does, why your client seed matters, and what changes when you rotate seeds.
- SHA-256 and HMACHow SHA-256 and HMAC-SHA256 work in provably fair games: fixed 64-character hashes, preimage resistance, the avalanche effect and why the seed is the key.
- Commit-RevealHow the commit-reveal scheme behind provably fair games works: the sealed-envelope idea, publishing the seed hash first, rotation, reveal and hash chains.
- What Provably Fair Does Not ProveWhat a provably fair check proves and what it leaves open: house edge, payout tables, RTP, licensing, withdrawals and the gaps between hash and balance.
A provably fair round leaves four things behind: a 64-character hash you saw before betting, a 64-character server seed you see afterward, the client seed you used, and the number of your bet. With those four, anyone can rebuild the result. That is how provably fair works in one sentence, and the pages in this section take it apart piece by piece so you know what each piece protects.
The parts are few, but they depend on each other in a strict order. A hash shown after the bet proves nothing. A client seed set before the commitment protects nothing. Most of what goes wrong with provably fair claims is a problem of timing, not of math.
Which parts make up a provably fair round?
Three inputs and two functions. The inputs are the server seed, the game's secret; the client seed, your contribution; and the nonce, a counter that goes up with every bet. The functions are SHA-256, which turns the server seed into a public commitment, and HMAC-SHA256, which mixes all three inputs into the bytes that become a result.
Each part answers one question, and each has its own page.
Swipe the table
| Page | The question it answers | Key value from our example |
|---|---|---|
| Seeds and nonces | What does each input do, and why can I change one? | client seed player-17, nonce 1 |
| SHA-256 and HMAC | What do the two functions guarantee? | 256-bit output, 64 hex characters |
| Commit and reveal | Why must the hash come first? | commitment f51376a5…3de0 |
| The algorithm | How do the bytes become a result? | x ≈ 0.4217, dice 42.17 |
| What it does not prove | Where does the proof stop? | 1% edge in the crash formula |
If you read only one, read the algorithm walkthrough. It follows a single round from seed to dice roll with every intermediate value, and the other pages make more sense once you have seen the full chain once.
What does each piece of cryptography actually do?
SHA-256 does one job here: it lets the game promise a value without showing it. The hash is short and fixed in size, it gives nothing away about the seed, and no one can produce a different seed that hashes to the same string. NIST defines it in FIPS 180-4, and every current browser can compute it through the Web Crypto API, which is how our calculator can run the whole check inside your browser.
HMAC does a different job. It is a keyed hash, defined in RFC 2104 in 1997, and in a provably fair game the server seed is the key. That means only someone who knows the seed can compute the result, which is why you have to wait for the reveal before you can check. It also means the result depends on every character of the client seed and the nonce. The page on SHA-256 and HMAC explains both functions without assuming any background in cryptography.
Neither function produces fairness on its own. Fairness comes from how they are arranged in time.
Why does the order of events matter more than the math?
Because every protection in the scheme is a timing rule. The server commits to its seed before you bet, so it cannot change the seed after seeing your bet. You set your client seed after the commitment, so the server could not have picked its seed to suit your bets. The seed is revealed only when you rotate, so you cannot use it to predict rounds that have not happened yet.
Swap any two of those events and a protection disappears. This is an old idea in cryptography: Manuel Blum described it in 1981 as a way to flip a coin fairly over the telephone between two people who do not trust each other. The page on commit and reveal covers this sequence in detail and what each step in a game's seed panel corresponds to.
It also explains the one rule players most often break without noticing. The commitment only helps you if you saved it before playing. Checking a revealed seed against a hash shown on the same screen tells you little; checking it against a copy you made beforehand tells you a lot.
How do the three inputs work together across many bets?
Under one seed pair, the server seed and client seed stay fixed and only the nonce moves. Bet 1, bet 2 and bet 3 each get their own HMAC message and their own unrelated result. In our example those first three dice rolls are 42.17, 97.15 and 55.88. When you rotate, the old server seed is revealed, a new hash appears, and the nonce starts over.
What looks like a small detail is where most failed checks come from. The nonce has to be exactly right, the client seed has to match to the letter, and the platform's starting count, 0 or 1, has to be followed. The seeds and nonces page covers all of this, including what really changes when you pick a new client seed (only which results you get, never how likely they are).
What should a game's fairness panel show you?
Every part above should have a place on screen. Look for the hashed server seed of the pair you are using now, the client seed with a way to edit it, and a count of bets placed under the current pair, which is your next nonce. There should also be a button or link to rotate to a new pair, and somewhere to find server seeds from earlier pairs once they have been revealed.
Labels differ from game to game. You may see the commitment called the server seed hash, the hashed seed or simply the active seed, and the nonce may appear as a bet number. What matters is that each of the three inputs and the commitment can be found and copied. If one of them has no field at all, the game is asking you to trust the missing piece, and the rest of the proof leans on it.
Where does the proof stop?
A verified round shows that the result came from the committed seeds through the documented math. It does not show that the game's odds are good, that its payouts are fair, or that the site behind it is licensed or pays withdrawals. The house edge sits in the game's rules, and a provably fair game can keep as much as its designer decides.
That gap matters enough to get its own page: what provably fair does not prove. Read it before treating a provably fair label as a recommendation.
Where should you start?
It depends on what brought you here. If you have a round you want to check, go straight to the calculator and come back if the numbers do not match. If you want to understand the mechanism, start with the algorithm walkthrough and follow its links. If you are deciding whether to trust a game at all, start with the limits page, because the most useful thing to know about provably fair is the list of questions it was never designed to answer.
Sources
References behind this guide.
6 references
- 01 National Council on Problem Gambling, 1-800-MY-RESET announcement (opens in a new tab)
- 02 NIST FIPS 180-4, Secure Hash Standard (opens in a new tab)
- 03 RFC 2104, HMAC: Keyed-Hashing for Message Authentication (opens in a new tab)
- 04 NIST FIPS 198-1, The Keyed-Hash Message Authentication Code (opens in a new tab)
- 05 Commitment scheme, including Manuel Blum's Coin Flipping by Telephone (opens in a new tab)
- 06 MDN Web Docs, SubtleCrypto.digest() (opens in a new tab)
Keep reading
- How it works Provably Fair Algorithm Explained Step by Step How a provably fair system turns seeds into results: the provably fair algorithm explained step by step, from SHA-256 to HMAC-SHA256 to one real roll. Read guide
- How it works Server Seed, Client Seed and Nonce Server seed, client seed and nonce in provably fair games: what each input does, why your client seed matters, and what changes when you rotate seeds. Read guide
- Verify Provably Fair Calculator and Checker A provably fair calculator and checker: test the server seed hash and reproduce dice, crash, roulette, plinko and more to verify a round in your browser. Open tool