Provably Fair
Every result on PokyDrop is set before you play, and you can check it yourself. No need to take our word for it: the calculation is public and anyone can redo it.
The idea in 30 seconds
- 1We seal the result
Before you play, we draw a random secret seed and show you its fingerprint. Think of a sealed envelope: you can't read what's inside, but we can no longer change it.
- 2You add your part
Your own seed and a game counter are mixed with ours. The result also depends on something we don't control.
- 3You check
Once the secret seed is revealed, you recompute your results. If they match, and the seed matches the fingerprint shown at the start, nothing was rigged.
Why it holds: a fingerprint (SHA-256) only works one way. You can't recover the seed from it, and you can't find another seed with the same fingerprint. Once the fingerprint is shown, the seed is locked.
What goes into a draw
- Server seed
- Our secret seed, drawn at random. It stays hidden until it is revealed.64 hexadecimal characters from 32 random bytes (cryptographic generator). One seed per account for packs and the upgrader, one per game for battles.
- Fingerprint
- The sealed version of the server seed, shown before you play.SHA-256 of the server seed, computed on its 64-character hex string, not on the raw bytes.
- Client seed
- The part that doesn't come from us. For packs and the upgrader it's your seed: change it whenever you like.Randomly generated on your first game (32 characters), editable up to 64 characters in the Provably Fair panel. In battles it comes from the EOS blockchain.
- Nonce
- A counter that moves up by one on every draw, so the same seeds never give the same result twice.Integer added to the HMAC message. Packs and the upgrader share your account's counter, which starts again at 1 with each new server seed. In battles it is the round number.
- Ticket
- The number that gets drawn. It decides the result.HMAC-SHA256 keyed with the server seed over "client seed-nonce", mapped to an integer from 1 to 10,000,000 (1 to 10,000 for the upgrader).
Game by game
The ticket is computed the same way everywhere. What changes from one game to another is where the client seed comes from, what the nonce is, and how the ticket becomes a result.
Each opening draws a ticket between 1 and 10,000,000. Each card in the pack owns a range of tickets proportional to its chance: a 1% card covers 100,000 tickets. The card whose range holds your ticket is yours.
Step by step
- 1
Your account has an active server seed. You can see its fingerprint, your client seed and your nonce in the Provably Fair panel before you even open.
- 2
Each opening raises the nonce by 1. The ticket is computed from your client seed, that nonce and the server seed.
- 3
The ticket picks the card. The result is set before the animation: the reel only shows it.
- 4
When you click "Reveal and reroll", your server seed is revealed and a new one takes its place, with the nonce back at zero. You can then check every opening made with the old seed.
From ticket to card
The chances of a pack's cards always add up to 100%. Cards are taken in pack order and each one gets, right after the previous one, as many tickets as its chance allows: a 0.01% chance is worth 1,000 tickets. Example with a three-card pack:
| Card | Chance | Tickets |
|---|---|---|
| Rare card | 0.50 % | 1 to 50,000 |
| Uncommon card | 4.50 % | 50,001 to 500,000 |
| Common card | 95.00 % | 500,001 to 10,000,000 |
Pack order is the order of its odds table: the sort order set for the pack, then value from highest to lowest, then chance from lowest to highest. It doesn't change unless the pack does.
Opening several packs at once
A multi-opening (up to 4 packs) is a series of single openings: each pack takes the next nonce. If your nonce is at 10, your four packs use 11, 12, 13 and 14.
Borrowing and the free pack
Borrowing part of the stake changes what you pay and what you receive, never the draw: same odds table, same seeds, same nonce. The daily free pack uses exactly the same draw as a paid opening.
Where to find your data
Open the Provably Fair panel with the shield on a pack page. It shows your active server seed's fingerprint, your client seed (which you can edit), your current nonce, your last 20 openings with each one's client seed and nonce, and your revealed seeds.
Check it yourself
Once your server seed is revealed, redo the calculation here in your browser, or with the reference script. Both follow the tab chosen above.
The exact formula
hash = HMAC_SHA256(key = server_seed, message = client_seed + "-" + nonce) n = int(hash, 16) / 16^64 ticket = round((0.00001 + n * (100 - 0.00001)) * 100000) // 1..10 000 000
The result is rounded to the nearest integer, then kept between 1 and the maximum ticket. The client seed and the nonce are joined by a hyphen, with no space.
Calculator
Paste the revealed server seed, the client seed and the nonce of the draw you want to check. Everything runs in your browser, nothing is sent.
Reference script
The same calculation in PHP. Fill in the three variables at the top, then run it on any online PHP runner: it prints the seed's fingerprint and the ticket.
<?php
/* ------------------ */
$server_seed = '';
$client_seed = '';
$nonce = 1;
/* ------------------ */
define('MIN_RESULT', 0.00001);
define('MAX_RESULT', 100);
define('CONVERT_RATE', 100000);
define('HASH_TYPE', 'sha256');
function getProvablyFairResult(string $client_seed, string $server_seed, int $nonce)
{
$hash = hash_hmac(HASH_TYPE, "{$client_seed}-{$nonce}", $server_seed);
$normalized = hexdec($hash) / (16 ** strlen($hash));
$roll = MIN_RESULT + $normalized * (MAX_RESULT - MIN_RESULT);
return round($roll * CONVERT_RATE);
}
echo "Server seed hash: " . hash('sha256', $server_seed) . "\n";
echo "Ticket: " . getProvablyFairResult($client_seed, $server_seed, $nonce) . "\n";