← 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-09T03:54:03.367Z).

693b62bd8f7409cbb12d19a1e79c37367f7f821d9b3d11418bbdb93fd27295db

2. Reveal (server_seed)

Revealed after draw (2026-05-16T03:54:48.695Z).

e5c711a2c19d83ba4024d0f20105980719ebf36f7c4ca12e5ffddbd8d2d02b15

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
3BGDKeT...iukC🎉
8BGDKeT...iukC
19BGDKeT...iukC

4. Derived client_seed

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

d37bba50f2a16705f216a2b4255f227f73b9b989f9021c08545d52fc6797138f

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-09T03:54:03.367Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight949,598hash000000000000000000006eb8ae42a156b6474a37afa1a729e8c69dcce34723c4block time2026-05-16T03:51:41.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 = 96765b551c79b98fb2e61d6e783855786458c98d211f4cade74730c4bbad80aa

Computed index: 0 → winning egg: #3

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "e5c711a2c19d83ba4024d0f20105980719ebf36f7c4ca12e5ffddbd8d2d02b15";
const hashStr = "693b62bd8f7409cbb12d19a1e79c37367f7f821d9b3d11418bbdb93fd27295db";
const clientSeed = "d37bba50f2a16705f216a2b4255f227f73b9b989f9021c08545d52fc6797138f";
const lottoId = "017fdd7d-2666-48f0-b52d-c47bef013369";
const sold = 3;
const entropy = "mempool.space:949598:000000000000000000006eb8ae42a156b6474a37afa1a729e8c69dcce34723c4";

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