Coin flip & dice — now on Lightning

Verify any game

Every result uses a commit-reveal scheme. The server seed is hashed before bets and revealed after. Combined with player seeds, anyone can verify the outcome.

How verification works

Before any bets are placed, the server commits to a secret seed by publishing its SHA-256 hash.

Each player's client seed is generated in their own browser with crypto.getRandomValues — never controlled by the server.

result = HMAC-SHA256(server_seed, client_seeds) mod N

After the game fills, the server seed is revealed. Anyone can recompute the hash and check it matches the original commitment, then recompute the result from the revealed seed and each player's client seed.