Verifiable draw: how does it work?
An online draw usually asks you to trust the organiser: nothing proves they did not redraw until they got the winner they wanted. Pikoola’s verifiable draw removes that doubt with a “commit, then reveal” scheme.
The three steps
- Commit. The list and settings are locked. Pikoola picks a future round of drand, the public randomness beacon run by the League of Entropy (independent organisations including universities and Cloudflare). The commitment link contains the list, the settings and that round number.
- Publish. The organiser posts the link before the round time: in chat, on socials, under the video… Their timestamped public post proves the list was locked before the draw.
- Reveal. When drand publishes that round’s random number, the result can be computed. Nobody could know that number in advance, not the organiser, not Pikoola.
Verify a draw
Just open the commitment link: your browser fetches the public number from drand, checks it and redoes the whole computation. If the result shown matches the one announced, the draw checks out.
Also check two things: that the link was posted before the round time shown on the page, and that the list shown matches the real entrants.
The computation in detail
- Fingerprint:
SHA-256of the JSON{tool, items, itemsB, k}. - Seed:
SHA-256("pikoola-v1|" + fingerprint + "|" + round + "|" + drand randomness). - Random stream: blocks
SHA-256(seed ‖ 32-bit counter), read as 32-bit integers. - Draw: Fisher–Yates shuffle with rejection of biased values, same as a normal draw.
The code is deliberately simple so it can be read and reproduced.
What it is not
- It is not a legally certified draw. High-stakes contests may legally require one.
- drand’s cryptographic signature is not verified in the browser: we check that the public number matches its signature, and it can be compared with any drand relay.
- Without posting the link beforehand, an organiser could create several commitments and show only one. That is why posting before the draw is essential.