← 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-19T19:36:55.966Z).

ac1e08a571b7485e437f0e755467043ed768f8a9e982cc2637a85b922c75d53a

2. Reveal (server_seed)

Revealed after draw (2026-06-02T19:37:31.049Z).

21723aaa359c94756355ebbe7035816230b2774e19755411f74cec56b26b841c

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC
2BGDKeT...iukC
3BGDKeT...iukC
4BGDKeT...iukC🎉
9Eh5paK...jcm6
16Eh5paK...jcm6
21Eh5paK...jcm6
35Eh5paK...jcm6
38Eh5paK...jcm6
42Eh5paK...jcm6

4. Derived client_seed

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

b84a9da832b2e8c6cb0e9b3ed860d3a7a254b104122c9868bcf99d4ea4c885ca

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-19T19:36:55.966Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight952,144hash0000000000000000000183d00c89bc78dbf6bd36f5962195c8ae8733397a1b74block time2026-06-02T19:35:14.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 = 07172f70a4104131821a5da6cb2984f1a054e3dafd714a4f80f108bc82e31695

Computed index: 3 → winning egg: #4

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "21723aaa359c94756355ebbe7035816230b2774e19755411f74cec56b26b841c";
const hashStr = "ac1e08a571b7485e437f0e755467043ed768f8a9e982cc2637a85b922c75d53a";
const clientSeed = "b84a9da832b2e8c6cb0e9b3ed860d3a7a254b104122c9868bcf99d4ea4c885ca";
const lottoId = "56339a7f-8458-4d59-9f1c-4e675fa392d9";
const sold = 10;
const entropy = "mempool.space:952144:0000000000000000000183d00c89bc78dbf6bd36f5962195c8ae8733397a1b74";

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