Fairness

Why the outcome cannot be rigged and the design decisions behind it

The round number at FAIRDRUM is put together from two halves, and before the bet nobody knows both together. After the bet, the program on the Solana network accepts no other number. Each decision behind this is given with what was considered, what was chosen, why, and how to check it yourself.

A round on one line

  1. Before the betFingerprint recordedThe fingerprint of all the secrets is recorded in the contract.
  2. Your transactionBetThe secret number and the fingerprint are written into the bet.
  3. Solana networkBlock hash appearsThe block with the bet gets its hash. It did not exist before the bet.
  4. Settlement transactionSecret checkThe program checks the secret against the fingerprint and computes the result.
  5. The same transactionPrize creditedThe prize arrives on the game balance.

The fingerprint is a single hash that fixes the secrets of all future rounds. A secret cannot be recovered from the fingerprint, but any secret can be checked against it.

The decisions in one table

DecisionWhat it givesWhere to look
A round number made of two halvesBefore the bet, nobody knows it in fullCommit-reveal on Solana
The program checks the secretThe number cannot be replaced after the betRound verification
No oracle and no off-chain signersAnyone can recompute the number, with no third-party signatureFrom hash to result
The program computes the resultThe site only displays the resultThe calculation rule
The prize tables are constantsThe same odds for every walletTables of all games
One draw for all gamesOne return in all games and one checkProject's share and return
An unsettled round refunds the betThe bet is refunded in full; the case is visible in the counterContract status
The data of every round is publishedA round is verified without contacting the projectHow to verify a round

The decisions about SOL tokens, the prize bank, the jackpots and withdrawal are covered separately: vault, bank and jackpots.

Two halves of the round number and one check

Where does the round number come from?

What was considered
The number can be issued by the site's server. It can be sent by a third-party service. Or it can be put together from two halves that nobody knows together before the bet.
What was chosen
The third option. The first half is the round secret: its fingerprint is recorded in the contract before the bet. The second half is the hash of the Solana block the bet landed in: it appears after the bet.
Why
Before the bet, nobody knows both halves together. So the result cannot be computed in advance.
What it costs
The bet and the settlement go in different blocks. The result arrives in a separate transaction, usually within a few seconds. Until the round is closed by settlement or by a refund, a new bet from the same player is not accepted.
How to check
The page “Commit-reveal on Solana” builds a practice round by the same rules as the contract.

Can the number be chosen or replaced after the bet?

What was considered
The revealed secret can be checked by the site, by the player, or by a program on the network.
What was chosen
The program checks it. At the moment of the bet it writes the secret number and the current fingerprint into the bet. At settlement it accepts only the secret that matches this fingerprint under this number. The program takes the block hash from the Solana network's system list.
Why
The program rejects any other secret, and the block hash is created by the Solana network. The check runs in every round, not on a sample.
How to check
The page “Verify a round” repeats the same check in your browser for any round.

Why no oracle and no off-chain signers

Why is there no oracle, VRF service or off-chain signers?

What was considered
Ready-made random number services exist. In one design the numbers come from a third-party service together with its signature. In another the numbers are signed by a group of off-chain keys.
What was chosen
To use neither. This is a deliberate decision: the round number comes from a secret fixed before the bet and a block hash, joined by the SHA-256 function. There are no external services in a round.
Why
A third-party service or a group of signers is one more party. Every round would depend on its honesty, its keys and its availability. A player cannot derive such a service's number on their own: they can only check the signature under it. In the chosen scheme anyone can recompute the round number, in their own browser.
What it costs
The secret is revealed by the settlement transaction. If settlement does not arrive in time, the bet is refunded in full.
How to check
The table below compares three designs. The calculation: from hash to result.
QuestionA number from the site's serverA third-party service or off-chain signersA secret set before the bet and a block hash (FAIRDRUM)
Who creates the numberThe site's serverA third-party service or a group of off-chain keysA secret fixed before the bet and a Solana block hash
Can anyone recompute the numberOnly from data the site itself has shownNo: the signature under the number is what gets checkedYes: it is SHA-256 of a fixed tag and two published values
What a round depends on, besides the networkOn the site's serverOn the service's honesty, keys and availabilityNo external services. Settlement must arrive in time; otherwise the bet is refunded
Where the check runsOn the site's sideIn the program or at the service: a signature is checkedIn the program at every settlement, and once more in anyone's browser

The table describes three types of design, not particular sites or services. Each column shows what the player checks personally and what has to be taken on trust.

Who computes the result, and from which tables

Who computes the result?

What was considered
The result can be computed by the site's server, which then writes the final amount to the network. Or it is computed by a program on the network.
What was chosen
The program computes it: in the settlement transaction, from the tables in its own code. The prize is credited to the game balance by the same transaction. The site only displays the result.
Why
There is no step at which a finished result arrives from outside and is merely signed. The program receives the round secret and computes everything else itself.
What it costs
The whole round is settled in one transaction. There is one bet size: 0.01 SOL. A round on the site is 10 to 100 bets, and up to 1,000 on the wheel.
How to check
The calculation rule: how the round number becomes a result. The payout is recorded in the settlement transaction, and any Solana explorer shows it.

Can the odds differ between players or change during a round?

What was considered
Odds can be kept in settings that the team changes. Or they can be written into the program's code.
What was chosen
The prize tables and the prize chance are constants of the program, the same for every wallet. The contract has no command that changes them. What relates to a single bet is recorded at the moment of the bet: the game, the round size, the fingerprint of the secrets, the jackpot start amounts and the prize cap.
Why
The calculation has no step that depends on the wallet address. New jackpot start amounts take effect with a delay: 24 hours after the command. Bets already placed are settled at the previous value.
How to check
The tables of all 16 games are gathered on the page “Odds in all games”.

Why do all games share one draw and one return?

What was considered
Each game could have its own way of getting numbers and its own house edge. Or all games could use a single draw.
What was chosen
One draw for all 16 games. The round number is expanded into values for each bet, and the game's table turns them into a prize. Each game has its own table, but the expected payout under the tables is the same for all games to within fractions of a percent. This condition is checked when the program is built.
Why
No single game has a hidden edge. There is one scheme to check, not 16 different ones.
What it costs
The choice of game does not change the average return. Cards, mines or the rocket are ways of showing a payout that has already been computed, and your taps in the game do not change it.
How to check
The parts of a bet and the return: project's share and return. Why taps change nothing: the outcome is fixed before you click.

If a round is not settled

What happens if a round is not settled?

What was considered
An unsettled round can be left waiting with no deadline. It can be counted as lost. Or the bet can be refunded.
What was chosen
Refund the bet. If settlement does not arrive in time, the bet is returned to the game balance in full, by the contract's rule. Any participant of the network can close such a round.
Why
An unsettled round pays nothing to anyone: not to the prize bank, not to the jackpots, not to the project. Every refund increases the contract's public counter.
How to check
The number of refunds over all time is shown on the status page. The deadlines are listed on the “Contract” page.

Check it yourself in a few minutes

What exactly does verifying a round confirm?

What was considered
One can publish a report on a test of the generator and ask people to trust the report. Or one can publish the data of every round so that anyone can repeat the calculation.
What was chosen
The second option. The settlement transaction publishes the secret number, the fingerprint of the secrets, the secret itself and the hash of the bet's block.
Why
Verification confirms that the round number was obtained by the rule and was not swapped after the bet. The round's prize can be checked against the game's table. Verification does not promise a win. The project's share, the state of the vault and program upgrades are shown by other public data.
How to check
What verification covers and what it does not: what provably fair proves.

You do not need a wallet to check. Any round will do, your own or someone else's: all transactions are public.

  1. Verify a round: paste the signature of the settlement transaction, and your browser will check the secret against the fingerprint.
  2. From hash to result: paste a round number and follow each step of the calculation.
  3. Commit-reveal on Solana: build a practice tree of secrets and try to swap a secret.
  4. Contract: the program's address, the list of its commands and the calculation rules.
  5. Contract status and statistics: the vault, the refund counter, turnover and payouts from network data.
  6. Round verification on GitHub

What you should know

  • There is no licence.
  • There has been no external audit. Whether the program's source code has been published, and where, is stated in this place when the page is opened with scripts enabled.
  • While the beta lasts the program can be upgraded; the project plans to make it unchangeable when the beta ends. Every upgrade is visible in the explorer; the status page shows the present state.
  • About 7% of bets goes to the project.

Questions

Can FAIRDRUM rig the outcome of a round?

The round number cannot be replaced after the bet: the program accepts only the secret that matches the fingerprint recorded in the contract before the bet. Nor can the number be computed before the bet: its second half is a block hash that does not yet exist at the moment of the bet. The prize tables are constants of the program, the same for every wallet. If a round is not settled, the bet is refunded in full.

Does FAIRDRUM use a VRF or an oracle?

No. A round has no external oracle, no VRF service and no off-chain signers, and this is a deliberate decision. The round number is SHA-256 of a fixed tag, a secret fixed before the bet and the hash of the bet's block. This way a round does not depend on a third party, and anyone can recompute the number.

Is the random number generated off-chain?

The round number is computed by the program on the network, in the settlement transaction. One half of it is a secret: it is created in advance, and its fingerprint is recorded in the contract before the bet. The other half is a Solana block hash. The program does not accept a finished number from outside: it receives the secret and checks it against the fingerprint itself.

Who holds the players' SOL?

The program's vault. The program computes and executes balances and payouts, and a withdrawal is one signature from your wallet. The program's list of commands has none that transfers the prize bank or players' balances to the administrator. In detail: vault, bank and jackpots.

What happens if a round is not settled?

The bet is returned to the game balance in full, by the contract's rule. Such cases are counted by the contract's public counter: it is shown on the status page. An unsettled round pays nothing to anyone.

How is this different from a casino that only accepts cryptocurrency?

Here a program on the network, not the site's server, accepts the bet, computes the result and keeps the balance. Every bet and every settlement is a public transaction. A site that only accepts cryptocurrency uses the network for top-ups and withdrawals and computes the result itself. Six checks for any site: what is an on-chain casino.

Can a round be verified without trusting the site?

Yes. The round secret and the hash of the bet's block are published in the settlement transaction, and any Solana explorer shows it. The round number is SHA-256 of a fixed tag and these two values, and the secret is checked against the fingerprint recorded before the bet. The “Verify a round” page does the same calculation in your browser.

Read on

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