Verify Fairness
Verifies that a round's outcome was fixed before the bet was placed and not altered afterwards.
Re-derives the outcome hash from the revealed server seed, the player's client seed and the nonce, and compares it against the hash the game published:
SHA256(serverSeed + ":" + clientSeed + ":" + nonce) === expectedHash
Cheap enough to expose in the game's own UI, which is the usual way to ship a fairness checker players can run themselves.
Inputs
Actions
| Signal | Description |
|---|---|
| Do | Runs the check. |
General
| Data | Description |
|---|---|
| Server Seed (string) | The revealed server seed. |
| Client Seed (string) | The player's client seed. |
| Nonce (number) | The nonce used for the round. |
| Expected Hash (string) | The outcome hash the game published. |
Outputs
| Data | Description |
|---|---|
| isFair (boolean) | True when the three inputs reproduce the published hash. |
| Signal | Description |
|---|---|
| Done | Sent when the node has finished, on success and on failure alike. |