Provably fair, explained: how to verify a Stake bet
Stake Originals don't ask you to trust the result: each one is computed from seeds you can check afterwards. This is how it works, and how to verify a bet in a minute.
What provably fair means
In a provably fair game the casino commits to the result before you bet, in a way that it can't change later and that you can check yourself. It is the digital version of a dealer sealing a card in an envelope before the hand: you can't see it yet, but you can prove afterwards that it wasn't swapped.
The three ingredients
- Server seed: a random secret generated by Stake. Before you play you only see its SHA-256 hash, a fingerprint that fixes the seed without revealing it.
- Client seed: a string that belongs to you. You can change it whenever you like, so Stake can't choose a server seed that suits a client seed it doesn't know yet.
- Nonce: a counter that goes up by one with every bet made on the same pair of seeds, so each bet gets a different result.
How a result is computed
For every bet the three values go through HMAC-SHA256, a standard cryptographic function:
HMAC-SHA256(server seed, "client seed:nonce:round")
The output is 32 bytes. Every 4 bytes become a number between 0 and 1, and each game turns those numbers into its result:
- Dice: the number is scaled to a roll between 0.00 and 100.00.
- Roulette: the number is scaled to one of the 37 pockets, 0 to 36.
- Plinko: one number per row, and each sends the ball left (below 0.5) or right.
- Mines: the numbers pick the mined tiles one at a time among the tiles still free.
- Keno: ten numbers pick the ten drawn squares, again without repeats.
- Card games (HiLo, Blackjack, Baccarat): each number picks one of the 52 cards.
The same inputs always give the same output. That is the whole point: anyone can repeat the calculation.
How to verify a bet, step by step
- Open Fairness. In any Stake Originals game open Fairness: it shows your client seed, the hash of the active server seed and the nonce.
- Rotate your seeds. The active server seed is hidden. Rotating the seed pair reveals it and starts a new one for your next bets.
- Find the bet. In My Bets open the bet you want to check: its details show the client seed and the nonce it used.
- Recompute it. Paste server seed, client seed and nonce in the bet verifier. If the result matches your bet, it wasn't altered.
- Check the hash. The SHA-256 of the revealed server seed must equal the hash Stake showed before you played. The verifier computes it for you.
What it proves, and what it doesn't
It proves that the result was fixed before your bet and wasn't changed because of how much you bet or what you picked. It doesn't remove the house edge: a fair roll of Dice still returns 99% on average. And it doesn't help anyone predict results, because the server seed stays secret until its bets are over. You can see the odds at work with play money in the Dice, Mines and Plinko demos.
Questions and answers
Why can't I see the server seed straight away?
Because with the server seed, your client seed and the next nonce anyone could compute the next results. Stake shows only its hash until you rotate to a new seed pair; then the old seed is revealed and you can check every bet made with it.
Do I have to verify every bet?
No. The value is that you can check any bet at any time: a casino that altered results would be caught by the first player who looked. Spot checks are enough.
Can a predictor use provably fair to know the next result?
No. The calculation needs the server seed, which is secret while it is in use. Tools that claim to predict Dice, Mines or Plinko are scams.
Which games can I verify?
Stake Originals. Our verifier covers Dice, Limbo, Mines, Plinko, Keno, Roulette and the card games (HiLo, Blackjack, Baccarat). Slots and live tables from other providers are not part of this system.