← 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-19T00:46:36.158Z).

46b6cc75f43143a3d7f33a54cd1b73ca7ac6fe59c6e4c6315917291756b6ef2a

2. Reveal (server_seed)

Revealed after draw (2026-06-18T00:47:28.591Z).

04a783a13458a5e1af91bd4939f3039b3f1a3eec4aad1a3498dd3e2fe80ce6f8

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
198wwHt...VBYQ
5FN9VdP...Leju
24BGDKeT...iukC
25CtxQYC...tMte
29BGDKeT...iukC
443tf26E...YGoi🎉
5098wwHt...VBYQ

4. Derived client_seed

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

1f992e5f17181faebaff59b7c244d5d50f7635a879b9ee628a4eb0f732f53781

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-19T00:46:36.158Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight954,161hash00000000000000000000622b07e8b5cab2017b1f76426cf98cba41696e45b1a5block time2026-06-18T00:40: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 (7).

hmac = a67b10014e54bef826b31ca2e3f05cbae1ac7b6aa20dd1ff5776a76779974c55

Computed index: 5 → winning egg: #44

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "04a783a13458a5e1af91bd4939f3039b3f1a3eec4aad1a3498dd3e2fe80ce6f8";
const hashStr = "46b6cc75f43143a3d7f33a54cd1b73ca7ac6fe59c6e4c6315917291756b6ef2a";
const clientSeed = "1f992e5f17181faebaff59b7c244d5d50f7635a879b9ee628a4eb0f732f53781";
const lottoId = "2adbcc85-e63f-4af4-9607-13efc99ed103";
const sold = 7;
const entropy = "mempool.space:954161:00000000000000000000622b07e8b5cab2017b1f76426cf98cba41696e45b1a5";

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