← 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-22T05:59:00.912Z).

ba287d8155580fcb177c29205554e397be5446128ed90d6355a4dff30d0d59fb

2. Reveal (server_seed)

Revealed after draw (2026-06-05T05:59:29.502Z).

a04a6002eca59b0a21851dfcdaf0f9bbdc0bfa817dbdcc6bfbfe1690a1fd4762

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC
10BGDKeT...iukC🎉
14BGDKeT...iukC
15BGDKeT...iukC
21BGDKeT...iukC

4. Derived client_seed

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

5ce3ef1feba8ceaeac69d9034700ccbee07c96c6e670a5acd6c60113738c63e6

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

sourcemempool.spaceheight952,440hash00000000000000000001585e2798a8aaf0f858c67b1ef07bebc96fdfb10d7430block time2026-06-05T06:02:18.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 (5).

hmac = f38c7b4e983a3374bf7cda80158e0153d319dd9b8d33e46c8609e086079823d5

Computed index: 1 → winning egg: #10

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "a04a6002eca59b0a21851dfcdaf0f9bbdc0bfa817dbdcc6bfbfe1690a1fd4762";
const hashStr = "ba287d8155580fcb177c29205554e397be5446128ed90d6355a4dff30d0d59fb";
const clientSeed = "5ce3ef1feba8ceaeac69d9034700ccbee07c96c6e670a5acd6c60113738c63e6";
const lottoId = "dbf2cc3f-3090-4c52-9c9d-3ff08a737361";
const sold = 5;
const entropy = "mempool.space:952440:00000000000000000001585e2798a8aaf0f858c67b1ef07bebc96fdfb10d7430";

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