← 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-10T05:44:45.723Z).

77ab1d5215813388c76b992c797ec3bda899cab06950035d73ef03dbf7765169

2. Reveal (server_seed)

Revealed after draw (2026-05-17T05:45:38.568Z).

02c6cf316188f2cf721943c93d14586e7d4e01387654c5c2d520e5a4aadbe1a2

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
23tf26E...YGoi
133tf26E...YGoi🎉

4. Derived client_seed

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

ad35113b156ea8dbf3a1a7a81d334bbf21906c40109e210885442c5ade117ffb

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

sourcemempool.spaceheight949,762hash00000000000000000000e0b2544535be9bbb2b038116c3ffb9f80d32d0352ffcblock time2026-05-17T05:35:55.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 (2).

hmac = 5b81029c521068afa848288864204694dc3444d0fb6bcf5f71a3d00a7729329c

Computed index: 1 → winning egg: #13

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "02c6cf316188f2cf721943c93d14586e7d4e01387654c5c2d520e5a4aadbe1a2";
const hashStr = "77ab1d5215813388c76b992c797ec3bda899cab06950035d73ef03dbf7765169";
const clientSeed = "ad35113b156ea8dbf3a1a7a81d334bbf21906c40109e210885442c5ade117ffb";
const lottoId = "bfe9057c-20d9-4951-8c60-a943361c64a5";
const sold = 2;
const entropy = "mempool.space:949762:00000000000000000000e0b2544535be9bbb2b038116c3ffb9f80d32d0352ffc";

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