← 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-07T19:03:38.595Z).

112995645c6ad06b9d6ac4a6df8e332b7619ace97f6f7ca87a728ebc16bec002

2. Reveal (server_seed)

Revealed after draw (2026-06-07T19:58:00.099Z).

3325e12a2eff1eda48864a40d8d82647e17bda0f983346e88c6efeccfaaf3268

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
16Q9hTP...kQdr
2H3HZ2h...ZdLe
395Nkm2...c1We
453uGL3...D1PN
5A6oofj...RwUR
6HbLDcL...QSMn
7BYqn3m...WNE3
8HVYDhp...AcxQ
93spQYr...5sEd
10HzQ5Qe...emy3
114D6cj8...Mzhb
12Ffa7wQ...5p3G
13DtEWQg...w94V
14834NhE...E9qz
15EeYGZ1...rMPf🎉
164grFny...9iQp
179HCwu7...Heay
187pTBey...uaCW
19Cphozy...Csjg

4. Derived client_seed

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

b1ae1f39789fc5098fc8dfef47eaf87be12c682a7e352c4785cb1587aae3e8e3

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

sourcemempool.spaceheight952,759hash000000000000000000004b2b49f5ad1dda03c57485373d662b7116e5cd5c44e7block time2026-06-07T19:54:25.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 (19).

hmac = a66429b34475abd1555246021f07fd8cfb5fc9138f117722d980aaf5ea0253d3

Computed index: 14 → winning egg: #15

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "3325e12a2eff1eda48864a40d8d82647e17bda0f983346e88c6efeccfaaf3268";
const hashStr = "112995645c6ad06b9d6ac4a6df8e332b7619ace97f6f7ca87a728ebc16bec002";
const clientSeed = "b1ae1f39789fc5098fc8dfef47eaf87be12c682a7e352c4785cb1587aae3e8e3";
const lottoId = "3cacd914-b5d3-43cb-ba8b-4e3b06a92245";
const sold = 19;
const entropy = "mempool.space:952759:000000000000000000004b2b49f5ad1dda03c57485373d662b7116e5cd5c44e7";

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