-
Notifications
You must be signed in to change notification settings - Fork 0
Verifying Your Spins
nrockmanx edited this page Jul 6, 2026
·
1 revision
You can verify any spin in three ways. All of them run the same math the server used โ nothing is trusted, everything is recomputed.
From the Lucky Spin page (๐งพ Spin history & verify), each spin shows:
- Server Seed Hash (commitment) โ shown before the spin
- Client Seed โ yours
- Nonce โ the spin number
- Server Seed โ appears only after you press Rotate (which reveals it)
To fully reproduce the segment, you also need the weights (segment odds). These are published in
weights.maczo.json and are
embedded automatically in the site's Verify โ links.
On maczo.co open Lucky Spin โ Spin history & verify, press Rotate seed to reveal the server seed, then click Verify โ next to any spin. It opens https://verify.maczo.co/ with everything filled in and computes instantly.
- Open https://verify.maczo.co/ (or
index.htmlfrom the repo โ works fully offline). - Paste Server Seed, Commitment, Client Seed, Nonce, and the weights JSON.
- Press Verify spin. You'll see:
- โ
/โ whether
SHA-256(serverSeed)matches the commitment - the reproduced segment index and prize
- โ
/โ whether
git clone https://github.com/maczo-co/lucky-spin
cd lucky-spin
# verify one spin
node verify.js \
--commit <serverSeedHash> \
--server <revealed serverSeed> \
--client <your clientSeed> \
--nonce <n> \
--weights @weights.maczo.json
# confirm the code matches the spec with bundled known-answer vectors
node verify.js --selftest- Commitment match โ the server committed to this exact seed before you played; it could not have been chosen after seeing your bet or client seed.
- Reproduced segment โ the published result is exactly what the algorithm produces from the seeds and weights โ not a number the operator picked.
If either check fails, the result was tampered with. (It won't โ that's the point.)