← 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-07T17:45:17.707Z).

169d590ba46dc1b19748070508e65524a0d9fcb37f387b78c19a45a6cf9b34f7

2. Reveal (server_seed)

Revealed after draw (2026-06-07T18:58:14.733Z).

080e9c8d953d8e2bcacd376e43b6689f2f03d3006047c52f4ca5bbdc86bf5012

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1nRjJ6h...Ln6s
233RcNv...mNKB
3EeYGZ1...rMPf
4i3A7TA...TRxr
5DrUKju...cZKt
6Ffa7wQ...5p3G
7AJrFv5...wZAc
8Hrtv5Q...1iHP
9B1Essa...sMC1
10HaLgyS...MkHA
119hg9p8...Fi91🎉
12F4JqCb...fNhK

4. Derived client_seed

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

f9bf58365f7f3d658d2318d01f89f4d9f083ab508c195b6c4f97ad8b457d73bf

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-07T17:45:17.707Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight952,751hash00000000000000000000e7e516f4265b0d2842d3f3f4aa07c5d7d058fe98ecdablock time2026-06-07T18:53:14.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 (12).

hmac = 95b8475112e745aac44803fa54114a04223530df48479dd0fc890271dc76387e

Computed index: 10 → winning egg: #11

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "080e9c8d953d8e2bcacd376e43b6689f2f03d3006047c52f4ca5bbdc86bf5012";
const hashStr = "169d590ba46dc1b19748070508e65524a0d9fcb37f387b78c19a45a6cf9b34f7";
const clientSeed = "f9bf58365f7f3d658d2318d01f89f4d9f083ab508c195b6c4f97ad8b457d73bf";
const lottoId = "feb8c169-5329-4993-8608-e71413833d89";
const sold = 12;
const entropy = "mempool.space:952751:00000000000000000000e7e516f4265b0d2842d3f3f4aa07c5d7d058fe98ecda";

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