← 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-07T17:46:50.363Z).

ea1db67ed304ff89275c37b7ced9173dacffc5b8083db76f2b222cad280d0163

2. Reveal (server_seed)

Revealed after draw (2026-06-07T19:00:37.878Z).

801de89f54b5c179a874ce73bab72e8004036d4d66df9ad368d00ada15b3b31f

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
19JzTvY...3afA
2HGtKCP...XcEg
3EeYGZ1...rMPf
4i3A7TA...TRxr
591JaeS...TupZ
6B1Essa...sMC1
7AJrFv5...wZAc
833RcNv...mNKB
9Hrtv5Q...1iHP
10DrUKju...cZKt
119hg9p8...Fi91
12Cy8ZeN...cWks
13nRjJ6h...Ln6s
14F4JqCb...fNhK
15HaLgyS...MkHA🎉

4. Derived client_seed

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

0e02cf592edf9b06d5d63c66d6504bed4b22bfe3b1a985b6b664f56c4e6e33e7

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

sourcemempool.spaceheight952,751hash00000000000000000000e7e516f4265b0d2842d3f3f4aa07c5d7d058fe98ecdablock time2026-06-07T18:53:14.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 (15).

hmac = 7f9c4d9971b8845c92fc9385e730c005edbce6546f44436d4f2263f8ff0c5f6e

Computed index: 14 → winning egg: #15

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "801de89f54b5c179a874ce73bab72e8004036d4d66df9ad368d00ada15b3b31f";
const hashStr = "ea1db67ed304ff89275c37b7ced9173dacffc5b8083db76f2b222cad280d0163";
const clientSeed = "0e02cf592edf9b06d5d63c66d6504bed4b22bfe3b1a985b6b664f56c4e6e33e7";
const lottoId = "0b81ebbc-ad6a-4652-9766-0851ffeb6e45";
const sold = 15;
const entropy = "mempool.space:952751:00000000000000000000e7e516f4265b0d2842d3f3f4aa07c5d7d058fe98ecda";

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