Logo Moneypot
Bet #1246640343
General
User vuiltje
App Bit-Exo
Kind Custom
Coin BTC
Wager 12.10 bits
Placed
Profits
User Profit -12.10 bits
Investor Profit 12.0512126135 bits
App Profit 0.0487873865 bits
MoneyPot Profit 0.0243936933 bits
House Edge 1.01%
Total Expected Value -12.19684663 bits
Provably Fair
Client Seed 4141622308
Server Secret 415c590ba8396c65cfd0fffbee4e5fe66d961199661efa1f064e142576e41eb7
Server Salt 9d9e9282f44b67e16480353f256f2a27cf84ecc1a1305a142b0ba9474f863af9
Server Hash b012750cff043f02679442966fd6c7a3d7c2bd84afcfb5baae59d40d19dcb0e6
Raw Outcome 2347414117
Method SHA-256
Payouts
From To Value Probability Expected Value
0 2104961281 24.44 bits 49.0099% 11.97901173
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);