← 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-22T05:42:32.698Z).

0f4188927267dd26b5b70cfab7fa7bc4573d5923d6437abf78ae91a5275934cb

2. Reveal (server_seed)

Revealed after draw (2026-05-23T05:42:36.890Z).

ae18718e35aae6f19dfff5bd3de23085957dbeb433407cc705b9e663a77cc2c3

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC
2BGDKeT...iukC
4BGDKeT...iukC
6BGDKeT...iukC
153tf26E...YGoi
30BGDKeT...iukC
323tf26E...YGoi🎉
523tf26E...YGoi
83BGDKeT...iukC
91BGDKeT...iukC

4. Derived client_seed

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

b430761f7cc6ac82ea06c9e97b93ce5ffbc908486ea432351283ef71ba0023c5

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-22T05:42:32.698Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight950,626hash00000000000000000000304564f5e9709a0df3ef611bc65d48745efba7c17a3ablock time2026-05-23T05:26:11.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 = d67a8315721603c2c7bc8da1cce52df48ac44c04485c63b03959879bcd73fa45

Computed index: 6 → winning egg: #32

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "ae18718e35aae6f19dfff5bd3de23085957dbeb433407cc705b9e663a77cc2c3";
const hashStr = "0f4188927267dd26b5b70cfab7fa7bc4573d5923d6437abf78ae91a5275934cb";
const clientSeed = "b430761f7cc6ac82ea06c9e97b93ce5ffbc908486ea432351283ef71ba0023c5";
const lottoId = "159951a9-a6e5-4e53-868e-584c89cd7c87";
const sold = 10;
const entropy = "mempool.space:950626:00000000000000000000304564f5e9709a0df3ef611bc65d48745efba7c17a3a";

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