NOTICE: Flashcoin is now live on MoneyPot for wallet and gaming.
Logo Moneypot
Bet #28246430
User 795fe3
App Bit-Exo
Kind Custom
Wager 2,000,000.00 garlicbits
User Profit 2,000,000.00 garlicbits
Investor Profit -2,011,998.8122955000 garlicbits
App Profit 7,999.2081969976 garlicbits
MoneyPot Profit 3,999.6040984988 garlicbits
House Edge 1.00%
Total Expected Value -1,999,802.04924940 garlicbits
Provably Fair
Client Seed 1980582829
Server Secret 50c2a05cf141a4dde0f5af6d6a3dd1c692edc45dcf43c1ea06bae9e58876e525
Server Salt 4de326daff3c9b16ffeb02fd46cb220d1a205a64b7e9ac0e6399536f377fc687
Server Hash 2c1f56ccfbb5a1ccbc5dc67c917f68a4c34fa924f6fc1ebce9dc0f05703a1ead
Raw Outcome 3052479747
Method SHA-256
From To Value Probability Expected Value
2168956358 4294967295 4,000,000.00 garlicbits 49.5000% 1,980,001.97950751
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.

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

Javascript (cryptocoinjs / sha256)

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