Provably fair

How it works

Every card you pull is decided by maths you can re-run yourself. Neither we nor you can steer the result, and once a seed pair is retired you can prove it.

  1. We commit first. The server generates a secret server seed and shows you its SHA-256 hash (the commitment) before you open anything with it. The hash locks us in: we cannot swap the seed later without the hash changing.
  2. You add your own randomness. Your client seed is generated in your browser, never by the server, and you can replace it with anything you like below. Because we commit before we know it, we cannot pick a server seed that favours us.
  3. Each opening gets a nonce. The nonce counts the packs opened with the current seed pair, so every opening produces fresh numbers from the same seeds.
  4. Each card slot gets its own draw. For slot 0, 1, 2… of the pack we compute HMAC-SHA256(key = serverSeed, message = "pf1:clientSeed:nonce:tableHash:slot:block"), with block starting at 0.
  5. The bytes become a ticket, without bias. The 32-byte result is read as eight big-endian 32-bit numbers. The first one below floor(2^32 / total) × total is used: ticket = (value mod total) + 1, a number from 1 to the pack’s total tickets. Values above that limit are skipped (rejection sampling) so no ticket is even slightly more likely than another; in the practically impossible case that all eight are skipped, block is increased and a new HMAC is taken.
  6. The ticket picks the card. Each pack has a ticket table that gives every card a range of tickets (more tickets = more likely). Whichever card’s range contains your ticket is the card you pull.
  7. The odds are locked too. The table is immutable and content-addressed: its hash is the SHA-256 of v1|total|cardId:from-to,…. That hash is published before you buy, your browser sends the hash it saw with every open request (the server refuses a mismatch), and the hash is part of the HMAC message, so the odds cannot be changed after the fact.
  8. Reveal and verify. When you rotate your seed pair, the old server seed is revealed. You can then check that it hashes to the commitment you were shown and recompute every ticket drawn with it. The verifier on this page does exactly that, entirely in your browser.

Manual verifier

Recompute any opening from its raw inputs. Only the public ticket table is fetched; the seeds never leave your browser. No account needed.

Shown in a pack's details and on each opening.