← 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-26T06:04:14.712Z).

86dfc99045ba1e1aa7daf72c01f7c45c8cb83f5bf17bcac0681e10f29d5e808e

2. Reveal (server_seed)

Revealed after draw (2026-05-29T06:05:03.034Z).

dccb98163475e98fa121ecf1f5671d5ea9b46380a1125b9de0c14020550b3a80

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

sourcemempool.spaceheight951,527hash00000000000000000000139fbacac8c072936a2dda9eba848cb8c005fa86f9bdblock time2026-05-29T06:03:20.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 = a471d6e395d8c520ba13d6ed5a2c7802f9e3e64c9ea3398911dac2a515a1003f

Computed index: 0 → winning egg: #1

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "dccb98163475e98fa121ecf1f5671d5ea9b46380a1125b9de0c14020550b3a80";
const hashStr = "86dfc99045ba1e1aa7daf72c01f7c45c8cb83f5bf17bcac0681e10f29d5e808e";
const clientSeed = "182e87821c464303f9ca547fbdc445ede296b56a2b6764c7686189f7ccf0d562";
const lottoId = "7ce6f0d3-4a50-474b-959a-67a625425142";
const sold = 1;
const entropy = "mempool.space:951527:00000000000000000000139fbacac8c072936a2dda9eba848cb8c005fa86f9bd";

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