Gift ClubPlay now
    How to Verify a Provably Fair Round

    How to Verify a Provably Fair Round

    Verify a provably fair Telegram game: Gift Club's paid games, boxes and scratch cards use HMAC-SHA256 commit-reveal. Re-run any round in the app or console.

    Gift ClubGift Club team10 min read

    Provably fair means you can check a result after the fact instead of taking our word for it. Gift Club's paid mini-games are built on the standard HMAC-SHA256 commit-reveal scheme, and since October 2026 so are its boxes and scratch cards. Every input you need to re-run a round yourself is exposed through the app. This page shows exactly how to do that — and, just as importantly, names the parts of Gift Club the scheme does not cover.

    1. What "provably fair" actually guarantees

    It guarantees one narrow, valuable thing: the operator committed to the result before you played, and cannot have changed it afterwards.

    The mechanism is a commitment. Before you place a bet, the server generates a secret server seed and publishes its SHA-256 hash. The hash tells you nothing about the seed, but it pins the seed down — once published, the server cannot swap in a different one without the hash failing to match. When the seed is later revealed, you hash it yourself and confirm it is the same seed that was committed to before your bet existed.

    What it does not guarantee is that the game is generous, that the odds are good, or that you will be paid. A game can be perfectly verifiable and still run at a 40% return. Verifiability and RTP are separate questions and you should ask both.

    2. The three inputs

    Every result in a Gift Club paid game, box or scratch card is a pure function of three values (and, for a box or card, of the prize table the round shows you). No hidden fourth input, no server-side clock, no randomness introduced after you commit.

    InputWho controls itDetails
    Server seedUs32 random bytes from a cryptographic RNG. Its SHA-256 hash is shown to you before you play; the seed itself is revealed when you rotate.
    Client seedYou1–64 characters, letters, digits and hyphens. Set it to anything you like. This is what stops us from choosing a server seed that suits us, because we would have to know your seed first.
    NonceAutomaticStarts at 0 and increases by one per bet (one per box or card you open), so no two rounds on the same seed pair can produce the same bytes. Resets when either seed rotates.

    Those three go into an HMAC-SHA256, keyed on the server seed, over the message clientSeed:nonce:round. The round counter starts at 0 and increments for every 32 bytes needed, which is how a game that needs more than 32 bytes — a 25-tile minefield layout, say — keeps drawing from the same commitment.

    Bytes become numbers four at a time, as a base-256 fraction:

    float = b[0]/256 + b[1]/256² + b[2]/256³ + b[3]/256⁴

    That is the same construction Stake documented and that most audited provably-fair implementations use. We did not invent a scheme of our own, on purpose: a novel one would be harder for you to check against anything.

    3. Verifying a round yourself

    There are two ways to do this. The quickest is inside the app itself; the console snippet below is for anyone who would rather not take our word for what our own verifier computes.

    In the app

    Open any paid game, tap the shield beside the title, and expand Verify a round. The revealed seed, your client seed and the nonce are filled in for you, and every field stays editable so you can check any round rather than only the one on screen.

    The check runs in your browser. The SHA-256 and HMAC-SHA256 are computed locally through the Web Crypto API — nothing is sent back to us, so the result does not depend on us being honest at the moment you press the button. If the commitment fails, the verifier refuses to show you a draw at all: a seed that does not match the published hash describes no round worth reading.

    To check a round outside the app, or to see the actual Plinko path, mine positions, Keno draw or card order a seed produces, paste the same values into the provably fair checker.

    A box or a scratch card

    Boxes and cards have one seed pair for all of them, and one nonce per open. The prize is not read from a float. Instead, every product has a prize table: each prize owns a range of whole numbers out of 4,294,967,296, and a prize with a 1% chance owns about 42.9 million of them. The table is the same for every player, and the app shows each prize's chance. Your open reads the first four bytes of the round's HMAC as one whole number, the ticket, and the prize whose range holds it (start included, end excluded) is what you got. Nothing about your earlier opens moves the table.

    Each round keeps the exact table it was drawn on and its SHA-256 hash, which the app shows. That matters because a Big prize hour, a power card's boost or a prize you cannot be paid right now (a sold-out power card, say) change the table for that draw, and the hash proves which one you were given. On a scratch card, the numbers after the ticket only lay out the grid and the NFT art, around a prize that is already decided. To check an open, rotate your seed, then paste the revealed seed, your client seed, the nonce and the round's table into the provably fair checker and choose Box or scratch card. It hashes the seed and the table and shows the ticket and the prize it lands on.

    In a console

    Rotate your seeds first — that reveals the server seed that was active for the rounds you already played. Then take the revealed server seed, your client seed, and the nonce of the round you want to check, and run this in any JavaScript console:

    const crypto = require("crypto");
    
    // From the app: Profile → Provably Fair → Seed history
    const serverSeed = "<revealed server seed, hex>";
    const clientSeed = "<your client seed>";
    const nonce      = 0;      // the round you are checking
    
    // 1. Confirm the seed matches the hash you were shown BEFORE playing.
    const commitment = crypto
      .createHash("sha256")
      .update(Buffer.from(serverSeed, "hex"))
      .digest("hex");
    console.log("commitment:", commitment);   // must equal the published hash
    
    // 2. Regenerate the round's bytes.
    const hmac = crypto
      .createHmac("sha256", Buffer.from(serverSeed, "hex"))
      .update(`${clientSeed}:${nonce}:0`)
      .digest();
    
    // 3. Turn the first four bytes into a float in [0, 1).
    const float =
      hmac[0] / 256 +
      hmac[1] / 65536 +
      hmac[2] / 16777216 +
      hmac[3] / 4294967296;
    console.log("first float:", float);

    For a box or card, read the ticket from the same four bytes as a whole number instead, and hash the round's table text as UTF-8:

    const table = "<the round's table JSON, exactly as shown>";
    
    // The ticket: the first four bytes as a big-endian number, 0 to 4294967295.
    const ticket = hmac.readUInt32BE(0);
    console.log("ticket:", ticket);
    
    // The prize is the row whose "from" <= ticket < "to".
    const row = JSON.parse(table).rows.find((r) => ticket < r.to);
    console.log("prize:", row);
    
    // The table hash must equal the one the app showed for this round.
    console.log("table hash:", crypto.createHash("sha256").update(table).digest("hex"));

    Step 1 is the one that matters. If the commitment you compute does not equal the hash the app showed you before the round, the seed was swapped and nothing else on this page is worth reading. If it matches, the bytes in step 2 are the only bytes that round could have used.

    Your full seed history — every server seed we have retired, its hash, and the nonce range it covered — is available at GET /api/games/{gameType}/seed-history and in the app under Provably Fair.

    4. Rotating your seeds

    Rotation does two things at once: it reveals the server seed you have been playing against, and it commits to a fresh one. The nonce resets to 0.

    • Change your client seed whenever you like. A new client seed changes every subsequent result, and because we published the server seed hash first, we cannot react to your choice.
    • Rotate before you check anything. An active server seed is never revealed — revealing it early would let anyone compute upcoming results, which is the one thing the scheme has to prevent.
    • Rotating does not change your odds. It changes which results you get, not how good they are. Anyone telling you to rotate until you are "due" a win is describing the gambler's fallacy.

    5. What it does not cover

    This is the part most operators leave out, so here it is plainly.

    Spark rounds in the games are not verifiable either. The Spark rounds of the mini-games draw from the server's secure random number generator instead of your seed chain, and the game's page says so. Spark boxes and Spark scratch cards are different: they draw on a ticket table just like the paid ones and can be checked the same way.

    In the mini-games, seeds drive layout, not luck. The seed determines where the mines sit, which way the Plinko ball bounces, which numbers the Keno draw picks — the geometry of the round. That is genuinely the whole game in something like Minefield, where the tile layout is the outcome. It is a narrower guarantee in games where a separate draw picks a payout tier.

    So the accurate sentence is: Gift Club's paid mini-game rounds, box openings and scratch cards are verifiable; its Spark rounds in the games are not. If a competitor claims "provably fair" across an entire gacha app with no such caveat, that claim is either doing less than it sounds or is not true.

    Two further limits worth stating, because they apply to every provably-fair system and not just ours:

    • It does not make the game profitable. A verified round can still be a losing round, and the house edge applies to every wager regardless.
    • It does not guarantee payment. Verification proves the result was not tampered with. It says nothing about whether an operator will honour a withdrawal — a separate question you should judge separately.

    6. FAQ

    Can Gift Club see my client seed before choosing the server seed?

    No, and the ordering is what makes it work. The server seed is generated and its hash published before the round; your client seed is mixed in afterwards. Changing your client seed at any point invalidates any pre-computation.

    Why is the server seed hidden while I'm playing?

    Because knowing it plus your client seed lets anyone compute every upcoming result. Revealing it on rotation is the standard resolution: you get the proof, but only for rounds that are already finished.

    Which games are covered?

    Every paid mini-game in the games hub — if a game takes a Stars or Gram wager, its round is covered — and, since October 2026, every box and scratch card, Spark ones included. Games that only award XP have no wager to verify.

    What if my verification doesn't match?

    Send us the server seed, client seed and nonce. A mismatch is either a bug on our side or a mistake in the snippet's inputs — usually the nonce, which is 0-based, or the server seed being hashed as text rather than as hex bytes.

    Do the odds of a box change with my luck or my last opens?

    No. Since October 2026 a box or scratch card draws on a fixed prize table, the same for every player. There is no first-open guarantee, no cooldown after a big win and no streak protection. A Big prize hour or a power card's boost can change the table for a draw, and the round shows the exact table and its hash.

    Is provably fair the same as a licence or an RNG audit?

    No. Provably fair is self-service verification of individual rounds. An RNG certification from a lab such as iTech Labs or BMM Testlabs is an independent review of the whole system, and a licence is a regulatory permission. They answer different questions, and one is not a substitute for another.

    Check a round for yourself

    Set your own client seed, play, rotate, and re-run the maths. Everything you need is in the app.

    Open Gift Club

    18+

    Related reading

    Sources

    Try it in Telegram

    Open Gift Club, claim your Sparks and play a Spark round before you stake anything.

    Play Gift Club

    18+

    Keep reading