← 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:23:11.713Z).

5a762ed3bdbb335e28966a3896cbbec3c2c4492254b00bfa1910a6d526166122

2. Reveal (server_seed)

Revealed after draw (2026-05-31T18:50:42.402Z).

a35a6b8f22d128d0856b88cec847901d80450bc815199346ce594a7806e84410

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
12jcazK...iEey
2BQGUce...D2oH
3ApeP8q...euwV
47Y8vNk...Ddyt
53TDBsG...ovyE
6GbmNiL...xp1Y🎉
7Bao3UY...qPvx
8BEAq6S...fLtK
95X1HmH...Zh1e
10B5ywNJ...iHwX

4. Derived client_seed

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

1ee6e44fae6fb43024b8e9f99fe8618ad5b799f1d40d42ced255ee3e52615a52

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:23:11.713Z). 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 = 62e88508a28628e9adc14e17d6f00efe93edb4d629aabf1e7ffe050c69a2f5e3

Computed index: 5 → winning egg: #6

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "a35a6b8f22d128d0856b88cec847901d80450bc815199346ce594a7806e84410";
const hashStr = "5a762ed3bdbb335e28966a3896cbbec3c2c4492254b00bfa1910a6d526166122";
const clientSeed = "1ee6e44fae6fb43024b8e9f99fe8618ad5b799f1d40d42ced255ee3e52615a52";
const lottoId = "397d7712-2d95-4e5f-9d35-433019fb6a8d";
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();