← 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-09T06:00:16.672Z).

c459552cf34ad9f9c5ebf473b301b87dc6b69e00749f089adbde04dfa9d98bf0

2. Reveal (server_seed)

Revealed after draw (2026-05-10T06:00:43.579Z).

e66c8b418af51ee44c1550c3a767f2a7c6aa8d0d6b67f1e3c7a9eb77e9333df9

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC
2BGDKeT...iukC🎉
3BGDKeT...iukC

4. Derived client_seed

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

8288fc96a6b1da7316bad0afdb4fca55daa163aa4a868a6d302e34b194768b49

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

sourcemempool.spaceheight948,729hash0000000000000000000007e27a48862c2ca8e23a322bd6cd91032b6cd8368fd4block time2026-05-10T06:00:30.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 (3).

hmac = 372b8d388d08c172eb1f8bc5d9d0b2a834220d298007d0a210d0cba1d1d3091f

Computed index: 1 → winning egg: #2

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "e66c8b418af51ee44c1550c3a767f2a7c6aa8d0d6b67f1e3c7a9eb77e9333df9";
const hashStr = "c459552cf34ad9f9c5ebf473b301b87dc6b69e00749f089adbde04dfa9d98bf0";
const clientSeed = "8288fc96a6b1da7316bad0afdb4fca55daa163aa4a868a6d302e34b194768b49";
const lottoId = "d2617e17-6b4e-4891-9cf1-8035ed350f43";
const sold = 3;
const entropy = "mempool.space:948729:0000000000000000000007e27a48862c2ca8e23a322bd6cd91032b6cd8368fd4";

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