Fairness

Is provably fair legit? What the scheme proves and what it doesn't

Provably fair proves that the secret is fixed before your bet and that the round number cannot be changed after it. Anyone can check this in their own browser. The page shows what the check confirms at FAIRDRUM, how to run it yourself, and where the answers to the other questions are.

Summary

  • You can trust the scheme for what it checks. At FAIRDRUM the round number is made from two parts: a secret whose fingerprint is recorded in the contract before the bet, and the hash of the bet's block. After settlement both parts are public, and anyone can recompute the round number themselves.
  • Verifying a round answers one question: was the round number obtained from the secret fixed before the bet. What the game costs, how many SOL tokens are in the vault and which version of the program is running are other questions. Other public data answers them, and below each one comes with a place to look.

What a provably fair round proves

The example is any FAIRDRUM round. The settlement transaction records a RoundRevealed event: the secret's index, the root of the secrets, the secret itself and the hash of the bet's block. Three things follow from this data.

The secret is fixed before your bet

The secrets of all future rounds are created in advance. Their common fingerprint, the root of the tree of secrets, is recorded in the contract before the bets. At settlement the contract itself checks the revealed secret against this fingerprint and accepts no other secret. The verification page repeats the same check in your browser.

The result follows from public numbers

The round number is the SHA-256 of a fixed tag, the secret and the hash of the bet's block. At the moment of the bet that block does not exist yet, so nobody knows the whole number in advance. From the round number the contract derives the bets and the prize table steps. The calculation: from hash to result.

One table for every wallet

The prize tables and the chance of a prize are constants in the contract's code. There are 16 games, each has its own table, and it is the same for all wallets. The contract has no instruction that changes a table.

What you can check at FAIRDRUM in ten minutes

Go through the list and tick off what you have checked yourself. You do not need a wallet for this. The ticks are stored only in your browser.

Checked: 0 of 7

  1. Paste the signature of any settlement transaction. Your browser will check the revealed secret against the root recorded in the contract before the bet.

    Open verification
  2. Copy the round number from the verification page into the calculation tool and compare the result.

    Open the calculation
  3. Read how the round number becomes the result and where the contract puts each bet.

    Open the rule
  4. The contract counts every round that closed with a bet refund. See how many there have been over all time.

    Open the status
  5. The vault should hold no less than the contract owes to players and the pots. Both numbers are read from the network.

    Open the status
  6. The contract's counters show how much has been bet, how much has been credited to players and how much the administrator has received.

    Open statistics
  7. The program can be upgraded. Its page in a Solana explorer shows every upgrade and its date.

    Open the status

What the scheme proves and where to look for the rest

Provably fair

Answered by other open data

  • No

    The game is profitable for the playerProject's share and return

  • No

    The vault holds enough SOL for payoutsThis is shown by the contract status

  • No

    Every round will be settledAn unfinished round refunds the bet; the refund counter is on the status page

  • No

    The program will stay at the same versionThe program can be upgraded; every upgrade is visible in the explorer

  • No

    An independent party has reviewed the codeThere has been no external audit

One party learns the block value first: the validator that produces the block with the bet, and it can influence that value by choosing what goes into the block. Without the round secret this predicts nothing. An outcome can be known or chosen in advance only by someone who has both, that is, by the holder of the secrets acting together with the producer of that very block. What limits it: block producers follow the network's public schedule, set in proportion to stake and changing every few slots, and the bet lands with whichever validator is scheduled at that moment. The scheme does not exclude such cooperation.

What the game costs. About 7% of every paid bet is the project's share. About another 5% goes into the three jackpots, and the rest into the games' prize bank. Verifying a round confirms the calculation, while the shares are written in the rules themselves and are the same in all games. In detail: project's share, return and expected loss.

What is constant. The prize tables and the bet shares are constants in the contract's code. The contract has no separate instruction that changes them. How the contract has been tested is described on the “Contract” page.

What the player checks with a server seed, VRF, and a secret plus block hash

SchemeWho provides the randomnessWhat is fixed before the betWhat you check yourself
The operator's server seedThe operator and the client seedA hash of the server seed shown to the playerThe server seed matched the hash shown before the bet
VRF, a verifiable random functionAn external provider of random numbersThe provider's public keyThe provider's signature on the number
A secret in advance plus a block hash (FAIRDRUM)A secret created in advance and the hash of a Solana blockA fingerprint of all secrets, recorded in the contractThe secret matches the fingerprint recorded before the bet

Each scheme has its own set of checks. What matters is what exactly you can recompute yourself. More about the third scheme: commit-reveal on Solana.

Questions

Is provably fair enough to trust a game?

Verifying a round answers one question: was the outcome changed after the bet. At FAIRDRUM the contract itself checks the secret against the fingerprint at every settlement, and you can repeat the same check in your browser. The project's share, the state of the vault and program upgrades are shown by other public data: it is gathered in the “Check it yourself” list.

Does provably fair mean there is no house edge?

No. The scheme shows that a round was computed by the rule, and the edge is written in the rule itself. At FAIRDRUM it is the same in all games. On average players get back less than they bet. In detail: project's share and return.

Which is better: provably fair or a random number generator tested by a lab?

They are different kinds of check. A lab tests the generator in advance, and the player relies on its report. Provably fair lets the player recompute every round themselves. FAIRDRUM uses the second method.

Do I need to verify every round?

No. The contract itself checks the secret against the fingerprint at every settlement. Spot checks are for seeing this with your own eyes. It makes sense to verify your first round, a large prize and any round that raised a doubt.

What happens if a round is not settled in time?

The contract refunds the bet in full. The refund goes into the contract's public counter: the all-time number of refunds is shown on the status page.

Can I verify a round without this site?

Yes. The round secret and the hash of the bet's block are published in the settlement transaction, which any Solana explorer shows. How the round number and the result are derived from them is described on the page “From hash to result”.

Read on

18+. On average players get back less than they bet. Play only with SOL tokens you are prepared to lose.