← Back to lotto

Provably-fair proof

This page reproduces the winner computation from public inputs. You can recompute every step in your browser's DevTools — don't trust our math, verify it.

1. Pre-commit (server_seed_hash)

Published when the draw went live (2026-06-07T18:59:17.500Z).

e97ed22aacbbbf038c85a884caa0c87e1cc681010227238fbc5ac7fd41ded353

2. Reveal (server_seed)

Revealed after draw (2026-06-07T19:45:03.281Z).

00c615c3c74b84e5eb2495f270e06c4a89ad87f625040ee8efaef5e22eebf460

Hash check: ✓ sha256(server_seed) === published hash

3. Client seed inputs (all sold eggs)

#WalletWinner?
16Q9hTP...kQdr
2H3HZ2h...ZdLe
395Nkm2...c1We
4DtEWQg...w94V
5EeYGZ1...rMPf
64D6cj8...Mzhb
7BYqn3m...WNE3
8HzQ5Qe...emy3
9834NhE...E9qz
104grFny...9iQp🎉

4. Derived client_seed

client_seed = sha256(sorted by entry_number, joined as "N:wallet" with '|')

c341ff47df4b624685c0c1a19ef172b6ce2cc8e3b5343eb4c5656bde48f6179f

5. External entropy (Bitcoin block)

Mixed into the HMAC input so the draw depends on a value the operator could not have known when the server seed was committed ( 2026-06-07T18:59:17.500Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight952,756hash00000000000000000001932be84974da5565e2095913d729fef5e3883bce18f9block time2026-06-07T19:43:59.000Z

Cross-check on mempool.space or blockstream.info.

6. Winner computation

HMAC-SHA256(server_seed, "client_seed:lotto_id:source:height:hash"), first 16 hex chars, mod sold_count (10).

hmac = eaeb9e6c35e1bd25006163c701393034b5451eb67b3004c00c96cb9ef1b431a8

Computed index: 9 → winning egg: #10

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "00c615c3c74b84e5eb2495f270e06c4a89ad87f625040ee8efaef5e22eebf460";
const hashStr = "e97ed22aacbbbf038c85a884caa0c87e1cc681010227238fbc5ac7fd41ded353";
const clientSeed = "c341ff47df4b624685c0c1a19ef172b6ce2cc8e3b5343eb4c5656bde48f6179f";
const lottoId = "29fffad6-97d2-4754-bb70-597e51fc7432";
const sold = 10;
const entropy = "mempool.space:952756:00000000000000000001932be84974da5565e2095913d729fef5e3883bce18f9";

async function run() {
  const enc = new TextEncoder();
  const seedBytes = enc.encode(seed);
  const hashed = await crypto.subtle.digest("SHA-256", seedBytes);
  const recomputed = [...new Uint8Array(hashed)]
    .map((b) => b.toString(16).padStart(2, "0")).join("");
  console.log("hashOk:", recomputed === hashStr);

  const key = await crypto.subtle.importKey(
    "raw", seedBytes, { name: "HMAC", hash: "SHA-256" }, false, ["sign"]
  );
  const message = entropy
    ? clientSeed + ":" + lottoId + ":" + entropy
    : clientSeed + ":" + lottoId;
  const sig = await crypto.subtle.sign("HMAC", key, enc.encode(message));
  const hex = [...new Uint8Array(sig)]
    .map((b) => b.toString(16).padStart(2, "0")).join("");
  const idx = Number(BigInt("0x" + hex.slice(0, 16)) % BigInt(sold));
  console.log("hmac:", hex);
  console.log("winnerIndex:", idx);
}
run();