Skip to main content

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

SignalDescription
DoRuns the check.

General

DataDescription
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

DataDescription
isFair (boolean)True when the three inputs reproduce the published hash.
SignalDescription
DoneSent when the node has finished, on success and on failure alike.