← 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-26T04:00:51.804Z).

8ffe9e017f7bad682ae32f82668430b76233ad307e0baa7d64f998233cee6760

2. Reveal (server_seed)

Revealed after draw (2026-06-09T04:01:29.744Z).

d91b46cf22b49f0b67ba7ad92ff76afe496f60b0ffdeec73caf592fe47e1cce2

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
15Eh5paK...jcm6🎉
29Eh5paK...jcm6

4. Derived client_seed

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

cbb454a9b6fd9fe8e58debbeaf2135e26b763f86e1efc78fda40b789800f7ef1

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-26T04:00:51.804Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.

sourcemempool.spaceheight952,926hash000000000000000000004b3f4ec8326734f6ed204ba4f0eb856807ca4174306cblock time2026-06-09T03:48:37.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 (2).

hmac = e035bfbe9d244e749a194f7ec81c3b9d91a6f5824485287395acbf9ecb557c41

Computed index: 0 → winning egg: #15

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "d91b46cf22b49f0b67ba7ad92ff76afe496f60b0ffdeec73caf592fe47e1cce2";
const hashStr = "8ffe9e017f7bad682ae32f82668430b76233ad307e0baa7d64f998233cee6760";
const clientSeed = "cbb454a9b6fd9fe8e58debbeaf2135e26b763f86e1efc78fda40b789800f7ef1";
const lottoId = "bbfa1be5-7a08-4066-99b5-c0582b090b0b";
const sold = 2;
const entropy = "mempool.space:952926:000000000000000000004b3f4ec8326734f6ed204ba4f0eb856807ca4174306c";

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