← 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 lotto went live (2026-04-15T04:23:02.640Z).
d95b17f1833302d4eca9e0415757f2a7f99de64a722dce50fb5836f971da63a42. Reveal (server_seed)
Revealed after draw (2026-04-16T00:43:28.791Z).
254279f7f6df205f33e670056fbbed52e9a6ea3219731379411bb3d05e2ebc6fHash 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 | |
| 11 | did:pr...1fei | |
| 12 | did:pr...1fei | |
| 13 | did:pr...1fei | |
| 14 | did:pr...1fei | |
| 15 | did:pr...1fei | |
| 16 | did:pr...1fei | |
| 17 | did:pr...1fei | |
| 18 | did:pr...1fei | |
| 19 | did:pr...1fei | |
| 20 | did:pr...1fei | |
| 21 | did:pr...1fei | |
| 22 | did:pr...1fei | |
| 23 | did:pr...1fei | |
| 24 | did:pr...1fei | |
| 25 | did:pr...1fei | |
| 26 | did:pr...1fei | |
| 27 | did:pr...1fei | |
| 28 | did:pr...1fei | |
| 29 | did:pr...1fei | |
| 30 | did:pr...1fei | |
| 31 | did:pr...1fei | |
| 32 | did:pr...1fei | |
| 33 | did:pr...1fei | |
| 34 | did:pr...1fei | |
| 35 | did:pr...1fei | |
| 36 | did:pr...1fei | |
| 37 | did:pr...1fei | |
| 38 | did:pr...1fei | |
| 39 | did:pr...1fei | 🎉 |
| 40 | did:pr...1fei | |
| 41 | did:pr...1fei | |
| 42 | did:pr...1fei | |
| 43 | did:pr...1fei | |
| 44 | did:pr...1fei | |
| 45 | did:pr...1fei | |
| 46 | did:pr...1fei | |
| 47 | did:pr...1fei | |
| 48 | did:pr...1fei | |
| 49 | did:pr...1fei | |
| 50 | did:pr...1fei |
4. Derived client_seed
client_seed = sha256(sorted by entry_number, joined as "N:wallet" with '|')
9e808f419deebc7b13e6e0047c7e39708094cd18b13c50599c4b799abba9ce725. Winner computation
HMAC-SHA256(server_seed, "client_seed:lotto_id"), first 16 hex chars, mod sold_count (50).
hmac = 836a84f0f6f4451e35f5deb5114b67832e2f7e0acf2ef611da8b7ff8313e9ae9Computed index: 38 → winning entry: #39
6. Independent verification
Show JS snippet (paste into DevTools)
const seed = "254279f7f6df205f33e670056fbbed52e9a6ea3219731379411bb3d05e2ebc6f";
const hashStr = "d95b17f1833302d4eca9e0415757f2a7f99de64a722dce50fb5836f971da63a4";
const clientSeed = "9e808f419deebc7b13e6e0047c7e39708094cd18b13c50599c4b799abba9ce72";
const lottoId = "76024d01-b272-4ec9-a84f-ab3252955765";
const sold = 50;
const entropy = null;
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();