← 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:05:14.322Z).

e27cbd9ca71e0c792be117184d5ce380a4848972e433401452e27b67634c7c5c

2. Reveal (server_seed)

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

6116d45223a7090043dd604fc0e9d24839b22182c7d5c87f4d6728f42e458505

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
16Q9hTP...kQdr
2AH2r7C...fVjX
395Nkm2...c1We
453uGL3...D1PN
53spQYr...5sEd
6HaLgyS...MkHA
7BYqn3m...WNE3
8HVYDhp...AcxQ
94grFny...9iQp
10834NhE...E9qz
11HzQ5Qe...emy3
12ANEaLB...ShaD
13DtEWQg...w94V
14HbLDcL...QSMn
15Cphozy...Csjg
16A6oofj...RwUR
174D6cj8...Mzhb🎉
189HCwu7...Heay
19382pDt...NnjZ
207pTBey...uaCW
21u1J3KU...uKTr
22H3HZ2h...ZdLe
23EeYGZ1...rMPf
24BvmsNt...qyZy
25DDJUL2...Zihm

4. Derived client_seed

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

19a373763e3fafd9c57753575040a24f78832b9d6988ba5ebc83717e6e08382b

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:05:14.322Z). 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 (25).

hmac = 96b599538f969dfe0d39af5311a34c391ab00c8f123c21958398c7fb87d6d352

Computed index: 16 → winning egg: #17

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "6116d45223a7090043dd604fc0e9d24839b22182c7d5c87f4d6728f42e458505";
const hashStr = "e27cbd9ca71e0c792be117184d5ce380a4848972e433401452e27b67634c7c5c";
const clientSeed = "19a373763e3fafd9c57753575040a24f78832b9d6988ba5ebc83717e6e08382b";
const lottoId = "773ce0d4-b892-421a-817d-db783ce5844e";
const sold = 25;
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();