Dice verifier
Before the first roll, GammonMind shows you the game’s commitment: the SHA-256 fingerprint of a secret seed. When the game ends, it reveals the seed. Here you check that it is the same one and recompute every roll with the same engine as the app, without sending anything to any server.
How it works
- The commitment is sha256(seed). If the revealed seed does not produce that commitment, the game was not played with it.
- Each die comes from HMAC-SHA256(seed, “client seed:game:block”): a byte below 252 gives (byte mod 6) + 1; bytes 252 to 255 are discarded so all six faces come up equally often.
- In the opening roll each side rolls one die (the first belongs to side 0), repeated on a tie. After that, two dice per roll.