← 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:26:11.537Z).

17e609599bad101da6e26bff5765fd19822cea101811124fcca3aa5fe53be197

2. Reveal (server_seed)

Revealed after draw (2026-06-07T20:07:25.933Z).

e2eb7ca689a15329ce76b5ff592837e7490ef8336d29e645628f0a9630e1b883

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1EeYGZ1...rMPf
2ANEaLB...ShaD
3HbLDcL...QSMn
4u1J3KU...uKTr
57pTBey...uaCW
6HzQ5Qe...emy3
7382pDt...NnjZ
8HtLyB4...GyTA🎉
9A6oofj...RwUR
10Cphozy...Csjg

4. Derived client_seed

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

54f61bdfdc2498e2f539b3ce22ebe8fd32b6a48cfae83250f1e326dd3894cb44

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:26:11.537Z). 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 (10).

hmac = 97c23d26d7b3c7c3af50f05d5556f018075f78db90588f16c2e11e1150fdca49

Computed index: 7 → winning egg: #8

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "e2eb7ca689a15329ce76b5ff592837e7490ef8336d29e645628f0a9630e1b883";
const hashStr = "17e609599bad101da6e26bff5765fd19822cea101811124fcca3aa5fe53be197";
const clientSeed = "54f61bdfdc2498e2f539b3ce22ebe8fd32b6a48cfae83250f1e326dd3894cb44";
const lottoId = "1da6e216-9110-4ddb-956f-413d02de7587";
const sold = 10;
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();