← 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-07T20:41:16.089Z).

13f399ca8614debbd9062d5c150d400cade722e184ada13968ea77ea01546c46

2. Reveal (server_seed)

Revealed after draw (2026-06-07T21:18:05.529Z).

99b4c0a73678b5f634f2cc21c3142ef2d05632c87ce077b2b8ac54bfad9a36b9

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1EeYGZ1...rMPf🎉
2DDJUL2...Zihm
37KPEfU...BgYz
4DEi9xf...ABUM
5HbLDcL...QSMn
63uCL31...xFwG
7CjXeU7...n9zr
8FUxpAy...QjgY
9382pDt...NnjZ
10EHA6Ph...9uDN
11HLwNjE...faVL
12AZj7Qz...wK4S
13C8SZFq...xYHU
146CpoQg...2eFE
15CpoFe5...aXMH
168awAQY...Yj5A
176srkXb...czQ1

4. Derived client_seed

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

53ab2a05e9a6c00a633404ad62b2759614162282e310d0b89e17a6d6083019c5

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

sourcemempool.spaceheight952,766hash000000000000000000010f63b67fba6fec3b26de2a30882af6f7083144ed29c3block time2026-06-07T21:09:51.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 (17).

hmac = 2102dd81f17a53aceacde70ea7e536e8ce34722e760362abfa502ae1d3645688

Computed index: 0 → winning egg: #1

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "99b4c0a73678b5f634f2cc21c3142ef2d05632c87ce077b2b8ac54bfad9a36b9";
const hashStr = "13f399ca8614debbd9062d5c150d400cade722e184ada13968ea77ea01546c46";
const clientSeed = "53ab2a05e9a6c00a633404ad62b2759614162282e310d0b89e17a6d6083019c5";
const lottoId = "27b988d4-96e9-4e4d-84ef-95cf783a1cb7";
const sold = 17;
const entropy = "mempool.space:952766:000000000000000000010f63b67fba6fec3b26de2a30882af6f7083144ed29c3";

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