Logo Moneypot
Bet #63611539
General
User madao
App Bit-Exo
Kind Custom
Coin ETH
Wager 8.00 ethbits
Placed
Profits
User Profit -8.00 ethbits
Investor Profit 7.9799999995 ethbits
App Profit 0.0200000005 ethbits
MoneyPot Profit 0.0000000000 ethbits
House Edge 1.00%
Total Expected Value -8.00000018 ethbits
Provably Fair
Client Seed 936624994
Server Secret 5f3782adb4f583372583e05615b7a55f44bc496d35b8f15758c72a0e7256321a
Server Salt dc5d2d381f540721692eefa87fa8f6048ea4a029fe377dd608ea79fcfbdde1de
Server Hash 8a657131f8a6cc49debdaa2017e6643e2543a8b3dc55adf94cdb6c4ddceb81fd
Raw Outcome 2809019569
Method SHA-256
Payouts
From To Value Probability Expected Value
0 2576980377 13.20 ethbits 60.0000% 7.92000000
2576980378 4294967295 0.00 ethbits 40.0000% 0.00000000
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);