Loading...

BTC Games 4U use Moneypot as coin wallet and betting engine provider.

Moneypot uses a simple provably fair scheme, designed to be as easily machine-auditable as possible. It is our hope that all Moneypot games automatically and instantly verify the games on your behalf however it's important that you can, and do verify games yourself.

Before you place a bet, we prove that we have committed to an outcome between `0`

and
`2`

(inclusive). We do this by sending you the ^{32}-1`sha256`

bet hash of the outcome. This has a very important property, if we changed the outcome the
bet hash would be different, and you could know the results were tampered.

`bet_hash = sha256(server_seed + salt)`

The `salt`

makes it infeasible for an attacker to brute force all `2`

possible outcomes,
but is otherwise useless data. We do not yet reveal the ^{32}`outcome`

or `salt`

**Wager**: How much you are paying to make the bet.**Bet Hash**: Which hash you are betting against (from the first section).-
**Client seed**: A number between`0`

and`2`

which you can use to influence the^{32}-1**final outcome**. -
**Payouts**: A list of**ranges**and**payouts**which if the**final outcome**lands on, will result in the given payout.

A bet must be well-formed, meaning it must be +EV and within the kelly criterion for the house. If the bet can not be accepted (for example it is trying to win too much) the hash remains valid, and it should be reused.

Once given the bet, we calculate the final outcome:

Javascript (cryptocoinjs / sha256)

`output = Number.parseInt(sha256(serverSeed + clientSeed).slice(0, 8), 16);`

and find **all** payout ranges that *contain* the final outcome are
summed, and paid. The net profit of a bet is the sum of all containing payout ranges, subtract the original wager.
To allow complete verification of the fairness, we reveal the original `server_seed`

and `salt`

which when
hashed together would result in the original given hash.