Verification
How to Verify a Provably Fair Bet, Step by Step
A practical guide to checking a provably fair round: collect the server seed hash, client seed, and nonce, then recompute the outcome and compare. Includes a worked dice example on the pfc-hmac-v1 protocol.
ProvablyFair.click · November 16, 2026

What you need
| What you need | When | What it is |
|---|---|---|
| Server seed hash | Before the bet | The commitment — a SHA-256 hash of the operator's secret server seed, published before the bet. Note it down or keep the page open. |
| Client seed | Before the bet | A value you choose, or one your browser generates for you. You can usually change it in the game's fairness or settings panel. |
| Nonce | Before the bet | A counter that increases by one with each round you play. Each round has its own nonce, which is why consecutive rounds produce different outcomes even with the same seeds. |
| Revealed server seed | After the round | The operator publishes this after the round (or when the seed is rotated). Without the revealed seed, you cannot recompute the outcome. |
If an operator does not show you the pre-bet hash, or never reveals the server seed, you cannot verify the round. That is a red flag, not a technicality.
Step 1: Confirm the commitment
Take the revealed server seed and hash it with SHA-256. Compare the result to the hash that was published before your bet.
If the two hashes match, the seed is the one the operator committed to. The operator could not have changed it after seeing your bet, because any different seed would produce a different hash.
If the hashes do not match, stop. The round cannot be verified, and the operator's commitment was broken. Do not continue playing on that seed.
Step 2: Recompute the outcome
With the revealed seed confirmed, recompute the round's outcome from the seeds and the nonce, following the game's published rules.
On the pfc-hmac-v1 protocol, the calculation works like this:
1. Compute HMAC-SHA256(key = serverSeed, message = "clientSeed:nonce:round"), where round starts at 0. Each 32-byte digest yields 8 random floats. 2. Derive each float from four consecutive bytes: float = b0/256 + b1/256² + b2/256³ + b3/256⁴. Each float is a number between 0 and 1. 3. Map the floats to the game's outcome. For dice, the roll is floor(float × 10001) / 100, giving a result from 0.00 to 100.00. Each game has its own mapping — a slot machine turns floats into reel stops, a card game turns them into a shuffled deck — but the floats always come from the same HMAC stream.
You do not need to do this arithmetic by hand. The free verifier does it for you. But knowing the formula means you can check the verifier itself, which is the whole point of a system built on independent verification.
Step 3: Compare with the displayed result
Compare the recomputed outcome with the result the operator displayed. If they match, the round is verified: the outcome was fixed before the bet, was not changed, and followed the published rules. If they do not match, the round has failed verification — the displayed result does not follow from the committed seed.
A third possibility is an inconclusive result: you are missing a piece of information (for example, the server seed has not been revealed yet) or the round uses a game or protocol version the verifier does not support. Inconclusive does not mean the round was unfair; it means the check could not be completed.
A worked example: dice
Here is a complete dice round, computed with the pfc-hmac-v1 protocol. These values are illustrative — they are real values computed from the formula above, chosen so you can follow every step.
Before the bet, the operator publishes:
- Server seed hash (commitment):
c6e10d0dc8b822097c87ad06e68bd90cb71dcef5f8f54a9034ab6aeb35999afc
You bet with:
- Client seed:
player-seed-4815 - Nonce:
42
After the round, the operator reveals:
- Server seed:
a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6
Step 1 — check the commitment. Hash the revealed server seed with SHA-256:
SHA-256("a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6")
= c6e10d0dc8b822097c87ad06e68bd90cb71dcef5f8f54a9034ab6aeb35999afcIt matches the published commitment. The seed is genuine.
Step 2 — recompute the outcome. Compute the HMAC for round 0:
HMAC-SHA256(key = "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6",
message = "player-seed-4815:42:0")
= e1e81acd62da0b2e74d738e97c8780fdc9bdf8130ffae924437801d5a1fc9c9dTake the first four bytes, e1 e8 1a cd, and derive the float:
float = 0xe1/256 + 0xe8/256² + 0x1a/256³ + 0xcd/256⁴
= 225/256 + 232/65536 + 26/16777216 + 205/4294967296
= 0.88244788...Map it to a dice roll:
roll = floor(0.88244788... × 10001) / 100
= floor(8825.36...) / 100
= 88.25Step 3 — compare. If the operator displayed a roll of 88.25, the round is verified. Any other displayed value would fail the check.
Using the free verifier
You can run this whole check without doing any arithmetic. The free verifier at /verify takes the server seed, client seed, nonce, and the pre-bet hash, and does the recomputation for you. It shows the commitment check, the derived outcome, and a step-by-step trace so you can see exactly how the result was produced.
For developers and agents, the same check is available through the REST API and MCP tools. Single-bet verification is free — 10 calls a day with no key at all — so you can verify rounds programmatically without setting up billing. See the documentation for the endpoint details.
What to do if a round fails
If a verification fails, first double-check your inputs: a mistyped seed, the wrong nonce, or a client seed that changed between rounds are the most common causes. Pay particular attention to the nonce — it must be the nonce of the round you are checking, not the current one.
If your inputs are correct and the check still fails, the displayed outcome does not follow from the committed seed. Keep the evidence: the pre-bet hash, the revealed seed, the client seed, the nonce, and the displayed result. That is the complete record needed to demonstrate the mismatch. And consider it a serious signal about the operator — a single unexplained failure is enough reason to stop playing there.
Key takeaways
- Before betting, record the server seed hash, your client seed, and the nonce.
- After the round, confirm the revealed server seed hashes to the published commitment, then recompute the outcome.
- On pfc-hmac-v1, outcomes come from HMAC-SHA256 digests, with 8 floats per digest; dice rolls are
floor(float × 10001) / 100. - A match means the round was fixed before the bet and followed the published rules. A mismatch, with correct inputs, means the operator's result does not follow from its commitment.
- You can verify by hand, with the free web verifier, or through the API — single-bet verification is free, 10 calls a day with no key.
- Try it now: paste a round's details into the free verifier at /verify and watch the check run step by step.