ExactOdds · paper
ExactOdds: Fair Outcomes, Provably Identical Rules
Get it on npm Back to ExactOdds Operator one-pager
ExactOdds: Fair Outcomes, Provably Identical Rules
Slid Phi Labs — 26 September 2026
1. What "provably fair" proves today — and what it doesn't
Every provably-fair casino in operation works the same way. Before you bet, the house publishes a commitment — usually SHA-256 of a secret server seed. You supply a client seed. After the bet, the house reveals the server seed, and you can re-run the math yourself: the outcome was decided before your bet, so the house couldn't have rigged that particular roll against you.
That half works. It is genuinely provable.
Here is the half that isn't. You verified the outcome. You did not verify the rules. The program that ran on the house's server — the one that turns seeds into a roll, a card, a flip — is a black box. The house can show one ruleset to an auditor and run a different one in production, and no amount of seed math will catch it. Players verify the dice; nobody verifies the table.
ExactOdds closes that gap. It makes the rules themselves provable: the exact same game program, running identically, on every machine that runs it — or the program is refused outright.
2. The protocol
ExactOdds has two halves, and both have to hold for a game to be called fair.
Half 1 — commit-reveal (the outcome is provable). Standard practice, unchanged:
- The house publishes
commit = SHA-256(server_seed)before any bet. - The player provides a client seed (or accepts a random one, recorded).
- After the round, the house reveals
server_seed. - The player checks that
SHA-256(server_seed)matches the published commitment. If it doesn't, the house cheated and the proof is public.
Half 2 — exactness (the rules are provable). This is the new part:
- Every game is written once, in one source file (the reference games live
in
games/in this repository). - That source compiles to every target seat — Python, JavaScript, TypeScript, C, C++ — and every seat must produce byte-identical output for the same inputs. Not "equivalent". Byte-identical.
- If any seat disagrees, or if a program can't be compiled exactly, the compiler refuses the program. There is no "close enough" mode.
- The gate writes a source-hash receipt: SHA-256 of the exact source that was gated, the pass/fail verdict, and per-seat emit/run status.
The consequence: an auditor reads one short program, gates it, and knows that the program the house runs in production is the same program — because any change to the source changes the source hash, and any behavior change that differs across seats fails the gate. One ruleset for the audit is the only ruleset there is.
Why byte-identical, not just equivalent
Floating point, integer overflow, string encoding, and modulo on negatives
all differ across languages and platforms. A game that is "equivalent"
everywhere is a game whose edge cases someone gets to choose. Byte-identical
output removes the choice. The reference games use only integer arithmetic
with explicit modulus (the Park-Miller step, state = (48271 * mixed) mod
2147483647), so there is no platform-dependent behavior to hide behind.
What the program contains — and doesn't
The program is deterministic: seeds go in, the result comes out. There is no randomness inside the program. The seeds are the randomness, and they come from the commit-reveal half. This separation is deliberate: randomness you can audit (revealed seeds) stays outside; rules you can audit (the program) stay inside. Nothing about the outcome is left to the machine's mood.
3. The reference games
Three games ship in this repository, all gated 2026-09-26 on the five-seat matrix (py, js, ts, c, cpp). All passed: every seat byte-identical.
Game 1 — Dice (games/provably-fair-dice.exactodds)
Mixes server_seed, client_seed, and round with a Park-Miller step,
then takes the roll as (state % 6) + 1. Also exposes a 0–99 roll.
Audited outputs (same seeds, every seat, 9 bytes total):
3
4
1
84
Source SHA-256: 795a43fa1864c30565d436e302ac0011662b01a45dc4c023c5af37f76ccdbb44
Stdout SHA-256: a79a72f0b7987fab1a4e54c85f617a723f5d2b25aa1d3b2f2fc3a2a470ba5f8b
Game 2 — Coin flip (games/provably-fair-coin-flip.exactodds)
Same derivation shape as the dice game (seed mix + Park-Miller step); the flip is heads when the state is even, tails when odd. Also exposes the raw 0/1 bit for payout math.
Audited outputs (same seeds, every seat, 52 bytes total):
heads
tails
heads
tails
heads
heads
tails
tails
0
1
Source SHA-256: 04783043adaf23b7880977bfaacc4324eb02d8d77bf41991f7dfd6037510c3d0
Stdout SHA-256: da48a6ba509f0840da7040eaa51961e9506334e043601253c534437a091202b7
Game 3 — European roulette (games/provably-fair-roulette.exactodds)
Same derivation shape (seed mix + Park-Miller step); the winning number is
(state % 37) — a European wheel, 0–36. Color, odd/even, and high/low are
derived deterministically from the number under the standard European layout
(reds: 1,3,5,7,9,12,14,16,18,19,21,23,25,27,30,32,34,36; 0 is green and takes
neither odd/even nor high/low). One of the seven audited spins lands on 0,
exercising the green path.
Audited outputs (same seeds, every seat, 180 bytes total):
spin 1: 31 black odd high
spin 2: 34 red even high
spin 3: 0 green neither neither
spin 1: 6 black even low
spin 2: 9 red odd low
spin 7: 23 red odd high
spin 13: 2 black even low
Source SHA-256: 1eaac333fa3d25c23224a0d649a52471e3e38077c406d4913212271d79c9cc9c
Stdout SHA-256: f3cc95467f2d41d7f96cccb08ba84bd95f53adc0bcb6a5752a7f1e6cab71fe70
Worked verification — follow along (players and operators)
You need only Python 3 (or node, gcc — any one seat) and the game's source.
- Get the source. Download
games/provably-fair-coin-flip.exactoddsfrom this repository, or from the house's published copy. - Check the source hash. Run
sha256sumon the file. It must equal the source hash in the receipt (receipts/provably-fair-coin-flip.receipt.json) and the hash the house published with its game listing. If it doesn't match, stop — that's a different game. - Get the revealed seeds. After your round, the house reveals its
server_seed. CheckSHA-256(server_seed)against the commitment it published before you bet. - Re-run the round. Plug the revealed server seed, your client seed,
and the round number into the program's
flipfunction (any seat — the gate guarantees they all agree). The output must match what the house reported for your round. - Check the receipt. The receipt in this repository records the gated
verdict and per-seat results. An independent auditor can re-run
./gate/run-gate.shand reproduce the same PASS.
If every step checks out, two facts hold: the outcome was fixed before your bet (commit-reveal), and the rules that produced it are the audited rules (exactness). Either half failing is a caught cheat.
4. Source-hash receipts
A receipt (receipts/*.receipt.json) is a small signed-by-math artifact:
path— which program was gatedsource_hash— SHA-256 of the exact bytes that were gatedexact/summary— the verdict (exactness: PASS (5 langs))langs/seats— per-seat emit and run status
Receipts are how a house answers "prove you're running the audited game": publish the receipt alongside the source hash. A player hashes the source, compares, and knows. An auditor re-runs the gate and reproduces the verdict. The receipt is not trust — it's a checkable claim.
5. What this is NOT
Plainly, so there's no confusion:
- Not a casino. ExactOdds is a protocol and two reference games. It takes no bets, holds no funds, and operates no tables.
- Not a license. Nothing here grants or implies a gaming license in any jurisdiction. Operators are responsible for their own compliance.
- No custody of funds. There is no wallet, no escrow, no token. Money movement is entirely outside this protocol.
- Not a randomness source. The protocol consumes seeds; it does not generate them. Seed generation and commitment handling are the operator's job, and they must be done honestly — the math only catches cheating, it doesn't prevent a dishonest setup.
- Three games, not a platform. Dice, coin flip, and roulette demonstrate the pattern. Blackjack, slots — each new game needs its own source, its own gate pass, its own receipt. The pattern scales; the games don't write themselves.
6. For operators: what you get
- A defense against your own worst incident. A rigged-rules scandal ends a casino. Exactness makes "we ran different code in production" technically checkable by anyone, which is the strongest form of "we didn't."
- Audits that mean something. An auditor gates one short program instead of reviewing your whole stack. The receipt is the audit artifact.
- Player trust you can point at. Every verification step above is something a player can actually do, tonight, with free tools.
Start with OPERATOR_ONEPAGER.md (one page), then this paper, then
gate/run-gate.sh.
Reference implementation and gate by Slid Phi Labs, Cherry Hill, NJ. Protocol: commit-reveal seeds + exactness law (same program, every seat, byte-identical or refused). License: AGPL-3.0, commercial licenses available.
ExactOdds — one page for casino operators
Fair outcomes you can prove. Rules you can prove. Both, or neither.
The gap in today's "provably fair"
Your casino already proves outcomes: commit-reveal seeds, the player re-runs the math, the roll wasn't rigged. That half works.
The half that doesn't: the rules. The program on your server that turns seeds into results is a black box. Show one ruleset to an auditor, run another in production — no seed math catches that. Players verify the dice. Nobody verifies the table.
What ExactOdds adds
One law: the same game program, byte-identical output on every machine — or the program is refused. Your game is written once, compiled to Python, JavaScript, TypeScript, C, and C++ seats, and every seat must produce the exact same bytes for the same seeds. Any disagreement, any seat, and the game doesn't ship.
What that buys you:
- One ruleset, everywhere. The program the auditor gates is the only program that can pass. Change a line and the source hash changes; change behavior and the gate fails. "Different code in production" becomes checkable by anyone.
- Audits that fit in a receipt. The gate writes a source-hash receipt: SHA-256 of the exact source, the pass verdict, per-seat results. That's your audit artifact — publish it next to the source hash.
- Verification players can actually do. Get the source, hash it, check the revealed seed against the pre-bet commitment, re-run the round in any language, compare. Five steps, free tools, tonight.
The reference games
Three games ship gated and receipted (2026-09-26, all five seats PASS, byte-identical):
- Dice — Park-Miller mix of server seed + client seed + round, roll is
(state % 6) + 1. Source795a43fa…ccdbb44. - Coin flip — same derivation, heads on even state, tails on odd.
Source
04783043…7510c3d0. - Roulette — same derivation, winning number
(state % 37)on a European wheel; color, odd/even, high/low derived from the number. Source1eaac333…79c9cc9c.
Each new game (blackjack, roulette, slots) follows the same pattern: one source, one gate pass, one receipt.
What it is not
Not a casino. Not a gaming license. No custody of funds — no wallets, no escrow, no tokens. Your compliance and your money handling stay yours.
Next step
Read paper/PAPER.md (the full protocol), then run ./gate/run-gate.sh
to reproduce the PASS yourself. The gate either passes everywhere or the
game is refused — that's the whole pitch.
Slid Phi Labs — AGPL-3.0, or commercial license at $2,500/yr per operator. Contact [email protected].