← 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-07T21:21:29.474Z).

1a17d776bf25b3aaf293c4eeefc72ecb31587c21c65e68b90f9a74536a02cb54

2. Reveal (server_seed)

Revealed after draw (2026-06-08T21:22:29.723Z).

75ce7acf0a05850e40c2b8690d2afb02d93c9ee36e1a4a2f65b3dbb4c62fac2d

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
2DPPztU...EFN3
3APDi8Y...HwP5🎉
49hj7jn...p66e
5FjMzSi...uFhE
6BGDKeT...iukC
7DibQpE...ZAfn
8JjFTBZ...v9mL
9ANEaLB...ShaD
10HbcXnn...bwWV
11DrUKju...cZKt
12CRx5eC...4YSs
13AZj7Qz...wK4S
14i3A7TA...TRxr
15HaLgyS...MkHA
16834NhE...E9qz
17jY9fhY...Qqfr
18EeYGZ1...rMPf

4. Derived client_seed

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

4b59390a220900fa844a289d5437bf9fae7325618a126997e6fc8e633a2cf340

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

sourcemempool.spaceheight952,896hash00000000000000000000f1a60eaa316dcea6667378e0f16e853990baa871beb0block time2026-06-08T20:57:35.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 (17).

hmac = 57b6cef082abde595428cd9e8fa4a76f9c9f82c2e87a090ffafe948b229ba89e

Computed index: 1 → winning egg: #3

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "75ce7acf0a05850e40c2b8690d2afb02d93c9ee36e1a4a2f65b3dbb4c62fac2d";
const hashStr = "1a17d776bf25b3aaf293c4eeefc72ecb31587c21c65e68b90f9a74536a02cb54";
const clientSeed = "4b59390a220900fa844a289d5437bf9fae7325618a126997e6fc8e633a2cf340";
const lottoId = "a183c3d3-7a8d-4eaa-8e73-54d95c8ca586";
const sold = 17;
const entropy = "mempool.space:952896:00000000000000000000f1a60eaa316dcea6667378e0f16e853990baa871beb0";

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