Skip to main content

Checking a result

Every finished giveaway has a public results page. Anyone can open it, signed in or not.

The page rechecks the result in your own browser, without trusting FairDrops' servers:

  1. The rules are the ones locked with the prize. The giveaway's settings (the game, the prize split) are hashed into the contract when it opens. The page checks what FairDrops serves against that hash.
  2. The seed matches the commitment. It hashes the revealed seed and compares it with the commitment recorded on-chain before the game started.
  3. The game replays to the same winners. It replays the transcript with that seed and recomputes every payout.
  4. The payouts match what was signed. It rebuilds the payout tree and compares its root with the one the verifiers signed and the contract accepted.
  5. The transcript is the one that was signed. It hashes the transcript and compares it with the hash in the settlement.

If every check passes, the result is the one the rules produce, and nobody changed it.

Coming to these docs

A step-by-step guide to checking a result from the command line with the FairDrops SDK.