Verify the draw
Everything you need to recompute the winners yourself. The server seed is fixed before the round, the ticket list before the block, and nobody at TMI controls the block.
No round has been published yet.
How to check it
- The SHA-256 of the server seed equals the seed hash published at the start.
- The SHA-256 of the ticket ID list as JSON equals the ticket list hash.
- The block hash belongs to the target block height (check it on mempool.space).
- The script returns the drawn ticket for every nonce. A skipped draw is followed by the next nonce.
Check script (Node.js)
Save it as verify.mjs and run:
node verify.mjs <serverSeed> <blockHash> <N> <nonces>
import { createHash, createHmac } from "node:crypto";
const [seed, blockHash, n, nonces = "10"] = process.argv.slice(2);
console.log("serverSeedHash", createHash("sha256").update(seed).digest("hex"));
for (let nonce = 1; nonce <= Number(nonces); nonce++) {
const h = createHmac("sha256", seed).update(blockHash + ":" + nonce).digest("hex");
console.log("nonce", nonce, "ticket", Number(BigInt("0x" + h) % BigInt(n)) + 1);
}