← 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-06-15T06:43:03.728Z).

339ed9ba1cd58b63a6d3c940d66b161702613ba8f7955771c099ed6ce826e177

2. Reveal (server_seed)

Revealed after draw (2026-06-29T06:42:28.767Z).

6eafebd9ae5277857bf62070c25ef7dbf5015b3be480c4ded37aaf9df0f995a9

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
7Es5494...p7bs🎉

4. Derived client_seed

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

0ea6ba8fcf8a2ce2e47e31615060395965452c6550ff289b43499df317b835d5

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

sourcemempool.spaceheight955,896hash000000000000000000000ce9b4f243a3239a5a1020434fe9fc803878a3e12aaablock time2026-06-29T06:35:41.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 = bcc2903446667494dee1866f29d9569fab523bce576936b4526da896b02af18f

Computed index: 0 → winning egg: #7

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "6eafebd9ae5277857bf62070c25ef7dbf5015b3be480c4ded37aaf9df0f995a9";
const hashStr = "339ed9ba1cd58b63a6d3c940d66b161702613ba8f7955771c099ed6ce826e177";
const clientSeed = "0ea6ba8fcf8a2ce2e47e31615060395965452c6550ff289b43499df317b835d5";
const lottoId = "87efed69-c2fd-40cc-b54a-512bd3fd4052";
const sold = 1;
const entropy = "mempool.space:955896:000000000000000000000ce9b4f243a3239a5a1020434fe9fc803878a3e12aaa";

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