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 lotto went live (2026-04-16T01:24:56.868Z).
a3080429eab16b021672c674bb66c8ece6aa0b87220f02216414fc5771f87def2. Reveal (server_seed)
Revealed after draw (2026-04-16T01:27:19.423Z).
6533b83f16a9bece0241a17dcd1a16bddcf0c22b12d8b7d382ecc92d8386d08bHash check: ✓ sha256(server_seed) === published hash
3. Client seed inputs (all sold tickets)
| # | Wallet | Winner? |
|---|---|---|
| 1 | did:pr...1fei | 🎉 |
| 2 | did:pr...1fei | |
| 3 | did:pr...1fei | |
| 4 | did:pr...1fei | |
| 5 | did:pr...1fei | |
| 6 | did:pr...1fei | |
| 7 | did:pr...1fei | |
| 8 | did:pr...1fei | |
| 9 | did:pr...1fei | |
| 10 | did:pr...1fei |
4. Derived client_seed
client_seed = sha256(sorted by entry_number, joined as "N:wallet" with '|')
d42f066526a5fbd0e754b689f6b14cf29dc110f77566926eeacc0a5925a2031a5. 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-04-16T01:24:56.868Z). Any Bitcoin block mined after the commit works — we take the tip at draw time.
0000000000000000000016ab45008e966214875895ac8d3dd8b0e11014edbe75block time2026-04-16T01:17:10.000ZCross-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 (10).
hmac = 8a8f789aada7263e4dcbb64ca19f2b457ae7eb5a690b30c655601dcf67c72b33Computed index: 0 → winning entry: #1
7. Independent verification
Show JS snippet (paste into DevTools)
const seed = "6533b83f16a9bece0241a17dcd1a16bddcf0c22b12d8b7d382ecc92d8386d08b";
const hashStr = "a3080429eab16b021672c674bb66c8ece6aa0b87220f02216414fc5771f87def";
const clientSeed = "d42f066526a5fbd0e754b689f6b14cf29dc110f77566926eeacc0a5925a2031a";
const lottoId = "365c23e0-9b42-454a-afa3-6a5ba78734ec";
const sold = 10;
const entropy = "mempool.space:945255:0000000000000000000016ab45008e966214875895ac8d3dd8b0e11014edbe75";
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();