← 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:55:51.557Z).

2cc60bb3b4362999559b25b11e5606abab96ef5ba4504bdf0c9524d13d15e527

2. Reveal (server_seed)

Revealed after draw (2026-06-07T19:24:43.298Z).

b6adab8b3764131119dd1a9b15858644dd2058fedd4b0b82288e9fd085e68972

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
19HCwu7...Heay🎉
24grFny...9iQp
3H3eCfk...LHNj
4G55a2m...M8Sx
59JzTvY...3afA
652jHmJ...ktZ3
7Cy8ZeN...cWks
8HVYDhp...AcxQ
991JaeS...TupZ
1053uGL3...D1PN

4. Derived client_seed

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

dd6bd853000383914b2b4a799a0f382a960fc4d96887d016e5ad29565cf233b1

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

sourcemempool.spaceheight952,752hash00000000000000000000fb44ef17f38009ea790c95d7295e2a4a7eb1da19088eblock time2026-06-07T19:12:03.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 = 9a9a28605a36c8480fd3b6f2bee334b0342f6828db290c81c96eb9b8f08a66f1

Computed index: 0 → winning egg: #1

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "b6adab8b3764131119dd1a9b15858644dd2058fedd4b0b82288e9fd085e68972";
const hashStr = "2cc60bb3b4362999559b25b11e5606abab96ef5ba4504bdf0c9524d13d15e527";
const clientSeed = "dd6bd853000383914b2b4a799a0f382a960fc4d96887d016e5ad29565cf233b1";
const lottoId = "11c4ac54-e6b9-486c-b4c4-215df1627449";
const sold = 10;
const entropy = "mempool.space:952752:00000000000000000000fb44ef17f38009ea790c95d7295e2a4a7eb1da19088e";

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