← 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:21:20.835Z).

16cdea32c9c05f86b2c3e5de7002313fb425254fb2766857ebd1ef126a9ef0b2

2. Reveal (server_seed)

Revealed after draw (2026-05-31T21:04:07.828Z).

de701627111d8b8021fe3c3ba2adf499f3dfc3f6501551423076fccd5fddc818

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
14vdwQd...KDfW
25DcAQv...r45E
3J17RXt...Wma5
443y2Hn...8yuJ🎉
5CoVhCT...D6Cn
6AMEQq4...cvwL
7FDA2E7...FPbJ
8GLZh4h...Vamj
98nRfsK...BicL
10Ghhwya...UsoP

4. Derived client_seed

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

c37ced53566fd69bc8842f2db66bc917109e048c1f7e673e5a2ebf1c33e7dd7c

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:21:20.835Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight951,891hash00000000000000000000e96402eb24ad826c34579a709ce01cf07109268ae5feblock time2026-05-31T20:58:00.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 = 5971c7396320d0ab722843c5166c116c393e091e4d6dfad9a46ceb3a8263b8f0

Computed index: 3 → winning egg: #4

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "de701627111d8b8021fe3c3ba2adf499f3dfc3f6501551423076fccd5fddc818";
const hashStr = "16cdea32c9c05f86b2c3e5de7002313fb425254fb2766857ebd1ef126a9ef0b2";
const clientSeed = "c37ced53566fd69bc8842f2db66bc917109e048c1f7e673e5a2ebf1c33e7dd7c";
const lottoId = "dca1b543-a2a6-4a1e-873d-b6bbf75cadb2";
const sold = 10;
const entropy = "mempool.space:951891:00000000000000000000e96402eb24ad826c34579a709ce01cf07109268ae5fe";

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