← 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-07T21:02:07.348Z).

dad44b2a522dcb742258d8a5b14fe9b1ad248fad951889bb3dfa768557c4bbbd

2. Reveal (server_seed)

Revealed after draw (2026-06-07T21:44:56.945Z).

14d58725f240c2051f8d26675fb5ebc4f832a616ecfbed7de769a5e91ba2da23

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1CkByN3...nrLn
2BtBcKh...MieN
39gTKt6...eo4P
453uGL3...D1PN
5DmqkGf...RcmT
6GB9dBY...Zv6r
7AQfv6b...Vkrd
8DibQpE...ZAfn
9GDjQdc...t22E
10DDJUL2...Zihm
11382pDt...NnjZ
12DdvxtW...WQMQ
13BvmsNt...qyZy
14HHc8dY...oUnb
154YricD...7T2i🎉
169jvQwC...vwCv
176srkXb...czQ1

4. Derived client_seed

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

a9a85829cf9c0dfee6dbaa39281dc919652cc163e71718afd87bbbafbcf67382

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

sourcemempool.spaceheight952,768hash0000000000000000000148204991cf554ebe2ef39df5b06a53328986d45b8d6dblock time2026-06-07T21:34:07.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 = 508193f6219a4a345dfbc55ed40679bf2c7f5a1e6c98dd17817edb05e08e316a

Computed index: 14 → winning egg: #15

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "14d58725f240c2051f8d26675fb5ebc4f832a616ecfbed7de769a5e91ba2da23";
const hashStr = "dad44b2a522dcb742258d8a5b14fe9b1ad248fad951889bb3dfa768557c4bbbd";
const clientSeed = "a9a85829cf9c0dfee6dbaa39281dc919652cc163e71718afd87bbbafbcf67382";
const lottoId = "8bbd7c4c-19a3-4f9b-ab54-18c54622c983";
const sold = 17;
const entropy = "mempool.space:952768:0000000000000000000148204991cf554ebe2ef39df5b06a53328986d45b8d6d";

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