← 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-05-31T21:09:55.953Z).

cb12aac737efe6002afd153ebd7ba0949e382ceebf3357da20996ba8852a0e72

2. Reveal (server_seed)

Revealed after draw (2026-05-31T22:00:17.486Z).

0a764cf7a3369bbe3bbd850259cb278e0536c626112d1a7e4c7792fe9158defa

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1B5MHQQ...xyP3
25DcAQv...r45E
3Ano4Dm...chSw
4GLZh4h...Vamj
5GNCYQN...uvhg
66rgm97...jVTD
74vdwQd...KDfW
843y2Hn...8yuJ
9EzfMVi...2QC6🎉
10CoVhCT...D6Cn

4. Derived client_seed

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

c41af0c5b39a4c3fba8639266635ee0a537e6fd4e9bd826d3c99070d0aebfcd9

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-05-31T21:09:55.953Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight951,900hash000000000000000000007ccc3515864dbdd916695a2760b74bf9de0272bc81b1block time2026-05-31T21:59:16.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 = 705dd787741ee85a2800e56efdfd3b11808f7f80586a12038f288f8b44e23e1a

Computed index: 8 → winning egg: #9

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "0a764cf7a3369bbe3bbd850259cb278e0536c626112d1a7e4c7792fe9158defa";
const hashStr = "cb12aac737efe6002afd153ebd7ba0949e382ceebf3357da20996ba8852a0e72";
const clientSeed = "c41af0c5b39a4c3fba8639266635ee0a537e6fd4e9bd826d3c99070d0aebfcd9";
const lottoId = "1a30e5d2-a860-485f-a134-975236f23915";
const sold = 10;
const entropy = "mempool.space:951900:000000000000000000007ccc3515864dbdd916695a2760b74bf9de0272bc81b1";

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