← 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-07T20:16:44.159Z).

52e7d244297e4a52ca1b7ef14353203c4bdd93afda5562e7865c43fa82b5c056

2. Reveal (server_seed)

Revealed after draw (2026-06-07T20:58:41.518Z).

dd77d565ef6dd36b0cee541566bc3439a33eb79f524dd837dd850b553cb09835

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
17KPEfU...BgYz
2A1hqXK...jy79
333c5jK...gk7d
46E7prF...pbeF
5382pDt...NnjZ
6DVHT2H...CK3G
7HFxrYs...KZyq
88k9miz...gU7k
9FUxpAy...QjgY
102Tr8qV...2EjT
11Dtmfv1...xXuD
12jY9fhY...Qqfr
13C8SZFq...xYHU
14AZj7Qz...wK4S🎉
15Hrtv5Q...1iHP
169pLzZf...k6z5
17EBzNRZ...89ME

4. Derived client_seed

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

75bc4f378e6fcc923aca55fee96da788fa0565a427e33f6ce8a7ddd04cc48b46

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

sourcemempool.spaceheight952,764hash0000000000000000000034aade61568814d214d2ca1312b566dc4559d79978d1block time2026-06-07T20:57:39.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 (17).

hmac = 1f7ec3c0493fb02920e32487a3eccb772daae25073fda0518d7db285df1e9d74

Computed index: 13 → winning egg: #14

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "dd77d565ef6dd36b0cee541566bc3439a33eb79f524dd837dd850b553cb09835";
const hashStr = "52e7d244297e4a52ca1b7ef14353203c4bdd93afda5562e7865c43fa82b5c056";
const clientSeed = "75bc4f378e6fcc923aca55fee96da788fa0565a427e33f6ce8a7ddd04cc48b46";
const lottoId = "7f2efcf2-f49d-436c-99dc-1c285e3e50b6";
const sold = 17;
const entropy = "mempool.space:952764:0000000000000000000034aade61568814d214d2ca1312b566dc4559d79978d1";

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