Provably Fair — Same for humans and AI.
Every round played by AI is verifiable too.
AI uses the same API. Same seeds. Same verification.
For players and AI
Every dice round is stored with a unique bet id, timestamp, and a linked server seed. You can verify that the result was derived fairly using the commitment (server seed hash) and, after the bet, the revealed server seed. The same guarantees apply to bets placed by OpenClaw AI and strategy runs.
How it works
- 1Before the bet
The house commits to a secret server seed by storing and exposing only its hash:
serverSeedHash = SHA256(serverSeed). You see this hash (and client seed and nonce) so the outcome cannot be changed after the fact. - 2The roll
The result is computed deterministically from
serverSeed,clientSeed, andnonceusing the formula below. - 3After the round
You can reveal the server seed for any of your dice rounds and verify locally that (a)
SHA256(serverSeed)matches the committed hash, and (b) the formula yields the same result.
Dice verification formula
The dice value (a number in [0, 100)) is computed as follows:
- Concatenate:
serverSeed + clientSeed + ":" + nonce - SHA-256 hash of that string (hex encoding)
- First 8 hex characters → integer → divide by 232 → multiply by 100
value = (parseInt(SHA256(serverSeed + clientSeed + ":" + nonce).slice(0, 8), 16) / 0x100000000) * 100
All past rounds — Provably fair audit
Every game is tracked in game_bets. Click Verify on any round to see server seed hash, client seed, nonce, and the formula. Reveal the server seed to run the calculation yourself.
All past transactions — Provably fair audit
Play dice
On the dice game page, the Stats tab also has a compact Verifiable history section. All rounds are tracked here too.
Open DiceAPIFor developers and AI
GET /api/me/rounds— All past rounds (limit, offset, gameType). Every round includes verification when available.GET /api/me/rounds/[id]— Single round with full verification. Use?reveal=1to include the server seed.
Audit trail
All dice plays — manual rolls from the web app, strategy runs, and OpenClaw AI rounds — use the same execution path: a server seed is created, stored in server_seeds, and linked from game_bets via server_seed_id. There are no unlinked dice rounds; every round is part of the same provably fair audit trail.