← 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-05-31T20:35:07.090Z).

1d92105d1547b7ea731aca10443b4ada72b588659337424c0367faeb3bf25510

2. Reveal (server_seed)

Revealed after draw (2026-05-31T21:46:49.004Z).

492f27eafcf79bdc944160149d0563fe41e1bd581656f990a21d2a908d0c6304

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
16rgm97...jVTD
2GLZh4h...Vamj
3FbDEGb...BY5V
4GNCYQN...uvhg
5Ano4Dm...chSw
6FDA2E7...FPbJ🎉
75CKeAq...mwcm
8EzfMVi...2QC6
94vdwQd...KDfW
10CoVhCT...D6Cn

4. Derived client_seed

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

38a15eba11ebfaebf7716d888bc14e94700316fd9a45cb24ebb0535ec7508c76

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-05-31T20:35:07.090Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight951,897hash000000000000000000017d654b96f3b458e993873cfcde43f0f8d151a74fe009block time2026-05-31T21:40:11.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 = d2b17a9bfd951d55939d64b749d6e8969eb73c9c52a240279db025d5c6daa8c0

Computed index: 5 → winning egg: #6

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "492f27eafcf79bdc944160149d0563fe41e1bd581656f990a21d2a908d0c6304";
const hashStr = "1d92105d1547b7ea731aca10443b4ada72b588659337424c0367faeb3bf25510";
const clientSeed = "38a15eba11ebfaebf7716d888bc14e94700316fd9a45cb24ebb0535ec7508c76";
const lottoId = "74132e0e-042a-43a1-bde9-79c911d6ca12";
const sold = 10;
const entropy = "mempool.space:951897:000000000000000000017d654b96f3b458e993873cfcde43f0f8d151a74fe009";

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();