← 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-31T18:42:48.321Z).

b9090fabc5c2beffe4f0f3242a19f099debce75a4e5e199463897b64cbddcd0b

2. Reveal (server_seed)

Revealed after draw (2026-05-31T19:15:17.328Z).

0f905aa46bf5edd95e59570beac9a6fb5ea9ddebbd95a9b643757b9db4443c79

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
1AQmp7N...Eatz
2kUS5Sy...dovw
3BgecHp...Pk6P
4BeXDWz...ww2V
52ird6n...86mv
698nEKr...vxCb
7BYqn3m...WNE3🎉
8GLZh4h...Vamj
94ZbXXe...uNHz
109UU1p3...teVt

4. Derived client_seed

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

e63171f7f3f136d6447e39b581a23a293e3daaaa147129cccf1243a62c21fc15

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-31T18:42:48.321Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight951,883hash00000000000000000000a9d181fe40ad7ff8044c9dbfe1380c2b9899a2d7d890block time2026-05-31T18:35:10.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 (10).

hmac = bb263ebf4047963a578f72f000e656c853a8e439f67c39910a36a06366121a3b

Computed index: 6 → winning egg: #7

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "0f905aa46bf5edd95e59570beac9a6fb5ea9ddebbd95a9b643757b9db4443c79";
const hashStr = "b9090fabc5c2beffe4f0f3242a19f099debce75a4e5e199463897b64cbddcd0b";
const clientSeed = "e63171f7f3f136d6447e39b581a23a293e3daaaa147129cccf1243a62c21fc15";
const lottoId = "e9810200-2c4a-4ac8-8120-06e405d6f7e6";
const sold = 10;
const entropy = "mempool.space:951883:00000000000000000000a9d181fe40ad7ff8044c9dbfe1380c2b9899a2d7d890";

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