← 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-21T05:55:53.916Z).

9ed246a7b1aba76bbcd850b45165a80107d3220b4005bf9b0229c640d5cd9c74

2. Reveal (server_seed)

Revealed after draw (2026-05-21T05:57:07.345Z).

a2f0dfb2736f3f3666e22e55e39b28b720581bda6512453313beda9093eb7532

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC🎉

4. Derived client_seed

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

182e87821c464303f9ca547fbdc445ede296b56a2b6764c7686189f7ccf0d562

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

sourcemempool.spaceheight950,339hash00000000000000000000521cdb9011320776b782bb6e2f58d0697cf4b87e0bcbblock time2026-05-21T05:47:29.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 (1).

hmac = 722bb40ba88c2f07e9f4b09ca9a30ad192ba744b668433ea378451ccbbced923

Computed index: 0 → winning egg: #1

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "a2f0dfb2736f3f3666e22e55e39b28b720581bda6512453313beda9093eb7532";
const hashStr = "9ed246a7b1aba76bbcd850b45165a80107d3220b4005bf9b0229c640d5cd9c74";
const clientSeed = "182e87821c464303f9ca547fbdc445ede296b56a2b6764c7686189f7ccf0d562";
const lottoId = "44d54e14-806d-4bfa-bd15-4575f32bb9ff";
const sold = 1;
const entropy = "mempool.space:950339:00000000000000000000521cdb9011320776b782bb6e2f58d0697cf4b87e0bcb";

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