← 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:04:16.883Z).

e899df8338bba3a0de200bd07633f2fa08388bfe074c40ebdbed4e658f6bc3f6

2. Reveal (server_seed)

Revealed after draw (2026-06-02T04:04:29.955Z).

b69d8add5645cd88d1499e2422c13495066dfa8a6410fab31e0b52bcecf23c00

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
7Eh5paK...jcm6
12Eh5paK...jcm6🎉
19Eh5paK...jcm6
22Eh5paK...jcm6
27Eh5paK...jcm6
30Eh5paK...jcm6

4. Derived client_seed

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

e6015c2afc24ab8368df98f0fa8572003b7df05048671e280f3404048eb3dbe4

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

sourcemempool.spaceheight952,068hash0000000000000000000037346c350a4a09a099efae5e886bf56282036ff423c8block time2026-06-02T04:00:13.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 (6).

hmac = 22195d6bdc1a618fa014ffbc6038add01fac788adce32404f05d1fab89c2fe57

Computed index: 1 → winning egg: #12

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "b69d8add5645cd88d1499e2422c13495066dfa8a6410fab31e0b52bcecf23c00";
const hashStr = "e899df8338bba3a0de200bd07633f2fa08388bfe074c40ebdbed4e658f6bc3f6";
const clientSeed = "e6015c2afc24ab8368df98f0fa8572003b7df05048671e280f3404048eb3dbe4";
const lottoId = "c700df43-18fa-462a-9a92-5ffd38aef0ea";
const sold = 6;
const entropy = "mempool.space:952068:0000000000000000000037346c350a4a09a099efae5e886bf56282036ff423c8";

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