Logo Moneypot
Bet #1246640344
General
User vuiltje
App Bit-Exo
Kind Custom
Coin BTC
Wager 24.21 bits
Placed
Profits
User Profit 24.69 bits
Investor Profit -24.7876539771 bits
App Profit 0.0976539771 bits
MoneyPot Profit 0.0488269886 bits
House Edge 1.01%
Total Expected Value -24.41349428 bits
Provably Fair
Client Seed 117764947
Server Secret 5d54f9df7f1bdeb4d37e6768820352d8b52ce2fbe90befaf21748c1d17544f09
Server Salt 555415c9a6c2d0a4d2dff073b6851435c2ca30ea60cc7b75ba592ccac5bff352
Server Hash a9591375527c3c11893cec80f042b26aacc6197dd8d7a5ab3c93c1b8e55e3926
Raw Outcome 3333096892
Method SHA-256
Payouts
From To Value Probability Expected Value
2190006014 4294967295 48.90 bits 49.0099% 23.96792348
Provably Fair Outcome

MoneyPot uses a Provably Fair algorithm that calculates raw outcomes from generated SHA-256 hashes. The Bet Hash is generated from the resulting hash of two unique hashes, the Server Seed and the Server Salt. The Server Seed and the Server Salt are both unique 64 character strings.

The Raw Outcome is based on a combination of the Server Seed and the Client Seed. After both are hashed together with SHA-256, we trim the resulting hash of the two to the first eight characters and then converted to an integer using Base16.

PHP 7
$outcome = intval(substr(hash('sha256', $serverSeed . $clientSeed), 0, 8), 16);

Javascript (cryptocoinjs / sha256)

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