← 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-07T16:53:03.897Z).

0c6bd3d0b6782e61c08599589d69addc27f6d0e2e6580d6324d5ea94e3c8b9f8

2. Reveal (server_seed)

Revealed after draw (2026-06-14T16:53:29.726Z).

a041bba0ea3dea942550b267ae3b89fab4da9c8e053f30ded1fbfff5d992560e

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1BGDKeT...iukC
13BGDKeT...iukC
15BGDKeT...iukC🎉

4. Derived client_seed

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

9ebba39b6fce4f7c66ccbbe915002bed49b2c90b724a07602f804ad70980f410

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

sourcemempool.spaceheight953,658hash0000000000000000000038c24a63c8072270fa260902a4944fbc44d83aafef98block time2026-06-14T16:47:18.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 (3).

hmac = 2813e0b4500781f7c6ceee270ed99f56e1cbd5e376ae3090693957820ea66ac0

Computed index: 2 → winning egg: #15

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "a041bba0ea3dea942550b267ae3b89fab4da9c8e053f30ded1fbfff5d992560e";
const hashStr = "0c6bd3d0b6782e61c08599589d69addc27f6d0e2e6580d6324d5ea94e3c8b9f8";
const clientSeed = "9ebba39b6fce4f7c66ccbbe915002bed49b2c90b724a07602f804ad70980f410";
const lottoId = "58ae2fb1-af34-4970-84f5-92f0aafb2774";
const sold = 3;
const entropy = "mempool.space:953658:0000000000000000000038c24a63c8072270fa260902a4944fbc44d83aafef98";

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