← 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-31T18:55:49.240Z).

302152294fb4c814b8669781a0941fe8959e96b7b514ce2c90f6c183b1d97481

2. Reveal (server_seed)

Revealed after draw (2026-05-31T19:36:30.144Z).

9e1511443dc064736e20d38e48f093617554d9744c845f9ca7d68466ef9a618c

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
16X4AS1...nQww
2BsCuxX...F9UY
34ZbXXe...uNHz
4Ano4Dm...chSw
59hj7jn...p66e
6D2mrbs...2VPQ
743y2Hn...8yuJ🎉
8CoVhCT...D6Cn
9AQmp7N...Eatz
10GLZh4h...Vamj

4. Derived client_seed

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

9bcc77a9b17e07ec30e95c5610604a43519caf1557614afa051e7ce6cf9dcf31

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

sourcemempool.spaceheight951,885hash0000000000000000000077572d74a95b95aef7d16d1ffb076e37811719726d54block time2026-05-31T19:34:33.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 = 29c727d62ed2782a71c58cd039d76472f17f82be6eb03c19bfab3c95f9d5726b

Computed index: 6 → winning egg: #7

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "9e1511443dc064736e20d38e48f093617554d9744c845f9ca7d68466ef9a618c";
const hashStr = "302152294fb4c814b8669781a0941fe8959e96b7b514ce2c90f6c183b1d97481";
const clientSeed = "9bcc77a9b17e07ec30e95c5610604a43519caf1557614afa051e7ce6cf9dcf31";
const lottoId = "89cf0ecb-c79e-4228-8f8f-436dd3137180";
const sold = 10;
const entropy = "mempool.space:951885:0000000000000000000077572d74a95b95aef7d16d1ffb076e37811719726d54";

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