← 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-09T04:10:26.013Z).

b39260c43229797880d1230a82c09b25cde0939ea4eae40ec3dc59e8fe6aebb9

2. Reveal (server_seed)

Revealed after draw (2026-05-12T04:11:05.813Z).

8bad29ed739d080a49862ec2675166b563b03d66979b698142b5252e9acd7e17

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

3. Client seed inputs (all sold eggs)

#WalletWinner?
5BGDKeT...iukC
14BGDKeT...iukC
27BGDKeT...iukC
34BGDKeT...iukC
48BGDKeT...iukC
50BGDKeT...iukC
58BGDKeT...iukC
69BGDKeT...iukC
75BGDKeT...iukC
93BGDKeT...iukC
94BGDKeT...iukC🎉
95BGDKeT...iukC
98BGDKeT...iukC
99BGDKeT...iukC
100BGDKeT...iukC

4. Derived client_seed

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

ac05961b73edd5eaa70c92ddecdd96e65352e129907adc5b16e2c67c8586ccab

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

sourcemempool.spaceheight949,027hash00000000000000000002190b48d69caac3604f15f76ea3f74f090189b49c644ablock time2026-05-12T03:55:06.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 (15).

hmac = d46fc4cb55ced478d78ecc9fd1010531b0a07578c0b912e56e6531688d7cd2b3

Computed index: 10 → winning egg: #94

7. Independent verification

Show JS snippet (paste into DevTools)
const seed = "8bad29ed739d080a49862ec2675166b563b03d66979b698142b5252e9acd7e17";
const hashStr = "b39260c43229797880d1230a82c09b25cde0939ea4eae40ec3dc59e8fe6aebb9";
const clientSeed = "ac05961b73edd5eaa70c92ddecdd96e65352e129907adc5b16e2c67c8586ccab";
const lottoId = "27bbbfdd-23ea-4c0c-9fcf-5412cf3cbcad";
const sold = 15;
const entropy = "mempool.space:949027:00000000000000000002190b48d69caac3604f15f76ea3f74f090189b49c644a";

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