Welcome to Coinarium's Provable Fairness Verification page. We believe in transparency and fairness in our gaming processes. Here's how you can independently verify the fairness of our games using a unique verification code.
Our provably fair system combines a server seed (known to us) and a client seed (provided by you) to produce the game's result. You can input your own client seed to ensure a random outcome. The hash of the concatenated seeds is displayed before the game, and the server seed is revealed after the game, ensuring that the outcome is unpredictable.
$round
is the lobby round played.
$public_seed_server
is the seed which is public for each lobby.
$public_seed_player
is the seed from the player. The one you can update.
$private_seed
is the seed from the opponent who joins the lobby.
<?php
$private_seed = "7kmh16kdZ7of7G35BdTs5tq7KI6zLuG0";
$public_seed_server = "a1589578f020e487Fc5704bc1795efa5095b7925597617f100159e305d3941ca";
$public_seed_player = "taOYudu73x5kAsHsWllHxxzaZ7aTno9n";
$round = '1';
if (hash('sha256', $private_seed) != $public_seed_server) {
echo "WARNING: Private seed hash does not match private seed!\n";
}
$hash = hash('sha256', "$private_seed-$public_seed_player-$round");
$flip = (hexdec(substr($hash, 0, 8)) % 2) + 1;
echo "Result: " . ($flip == 1 ? 'heads' : 'tails');
$seed
the new generated seed.
$nonce
generated nonce each round.
$secretHash
the hashed seed.
$minColors
minimum of all colors (rolls).
$maxColors
maximum of all colors (rolls).
<?php
$seed = 'e3YYE1ZsJCUDtAs60kKoMeF50Nzt4W8W3e4XPK5SrDUkcQvU9qcJjTjLG92VHxNs';
$nonce = 'St5GHugL';
$secretHash = '7e158618f2cece36192a57ee53a940b109b9312972af7f71803d6c271946281b';
$minColors = 0;
$maxColors = 15;
$output1 = hash_hmac('sha256', "{$seed}-{$nonce}", $secretHash);
$output2 = hexdec($output1) / (16 ** strlen($output1));
$result = $minColors + $output2 * ($maxColors - $minColors);
$roll = (int)$result;
echo $result;
// 5.5668608960271
echo $roll;
// 5
$seed
the server hidden seed. Only visible if the player generates a new one.
$nonce
generated nonce each round.
$clientSeed
the players client seed.
$seedHash
the hashed server seed.
<?php
$seed = 'WShHwTHp6lJmyiOcUsPNCbq9S6slMjSwyCpQlEcQs6MRxwAM191JXGw06I3eVkQ8';
$nonce = 'XDdVxZmS';
$clientSeed = 'J7f09RCtQTZ1TkA5UXvsZu3vUDnItUjQ';
$seedHash = 'b72ee4be64804f358bd2042ebf1f81604fd085fc879d67010ad67722e2edbdf536587702c7e92c947223cb9c49d0184e367dceee8bf0352f2e91d220359274d9';
$output1 = hash_hmac('sha256', "{$seed}-{$nonce}-{$clientSeed}", $seedHash);
$output2 = hexdec($output1) / (16 ** strlen($output1));
$result = $output2 * (100);
$roll = (double)$result;
echo $roll;
// 45.762403054249