← 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:46:42.291Z).

314adcd1e951481481a71e366cfc4a03d62b5630434503d10a1de6cf84e7679d

2. Reveal (server_seed)

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

c5a2295f2e7032182b1aaf681f6a8eb3b27f5a3de52ca8820bf17b037bd6e4af

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1GD7pMC...m6WV
2Cphozy...Csjg
3AH2r7C...fVjX
4u1J3KU...uKTr
5DDJUL2...Zihm
65if4DQ...o8Py
77pTBey...uaCW
86srkXb...czQ1🎉
94FjsrP...saDa
10HaLgyS...MkHA

4. Derived client_seed

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

3798f95b3e3589cf5ddcd6c0ddb0d2c914f901dfe6f74da9edd825f52ddab7a8

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:46:42.291Z). 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 = 095cbeb3c6083b2f440ef58727df4ba22fc0b68a87fecca6e75b68a138e32bef

Computed index: 7 → winning egg: #8

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "c5a2295f2e7032182b1aaf681f6a8eb3b27f5a3de52ca8820bf17b037bd6e4af";
const hashStr = "314adcd1e951481481a71e366cfc4a03d62b5630434503d10a1de6cf84e7679d";
const clientSeed = "3798f95b3e3589cf5ddcd6c0ddb0d2c914f901dfe6f74da9edd825f52ddab7a8";
const lottoId = "06ae0fc3-c993-4cdd-89f1-5ce8dbb8987e";
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();