← 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-31T19:44:57.728Z).

b1ebc5a04d774a6440160c02e4611ec126ae96c35208c148c2a682b594031660

2. Reveal (server_seed)

Revealed after draw (2026-05-31T20:03:25.889Z).

4336d9b4af9a863f0f077a92fb94397562d6a58f160fdd0bc8bed2152a3fec22

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
14vdwQd...KDfW
2D2mrbs...2VPQ🎉
343y2Hn...8yuJ
4GLZh4h...Vamj
54CSfrx...w9TX
698nEKr...vxCb
7AQmp7N...Eatz
8HqEtjN...yheB
9HpwH4R...51xh
103YBqQc...qsXu

4. Derived client_seed

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

677d7c31fcdead08f5343c5a556ebbec605c3fbfdf8a40db6530259561177fed

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

sourcemempool.spaceheight951,889hash000000000000000000016663a7a5a439202caefc6a49510ab07374100f9c3c7bblock time2026-05-31T19: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 = fcb15181207ec1b5119eef48f4a5322286b461425cf20ead08650eda140568f8

Computed index: 1 → winning egg: #2

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "4336d9b4af9a863f0f077a92fb94397562d6a58f160fdd0bc8bed2152a3fec22";
const hashStr = "b1ebc5a04d774a6440160c02e4611ec126ae96c35208c148c2a682b594031660";
const clientSeed = "677d7c31fcdead08f5343c5a556ebbec605c3fbfdf8a40db6530259561177fed";
const lottoId = "e72cb0a1-4da3-4d3f-8077-6f2fdfdd43c6";
const sold = 10;
const entropy = "mempool.space:951889:000000000000000000016663a7a5a439202caefc6a49510ab07374100f9c3c7b";

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