Fair Draw
Draw the winners of a giveaway in a way anyone can check: the list is fixed before the draw, and the chance comes from a public random beacon (drand) nobody can know in advance
Sent to the drand relays of the League of Entropy (api.drand.sh, drand.cloudflare.com): the number of the round drawn, not the list.
Anyone holding the sheet gets the same winners here, or with the method below. The draw is fair if the sheet, its fingerprint at least, was published before : check the date of the post.
The organizer can't choose the result: the chance comes from drand, a random number the League of Entropy (Cloudflare, universities, Protocol Labs…) publishes every 3 seconds, which nobody knows before its time unless a large share of its members agree to cheat. The sheet sets which one is used, by its time, and fixes the list, so everything is decided before anyone can know the result.
The method, to check without this page
- The fingerprint is the SHA-256 of these lines joined by a line feed, in UTF-8:
304 Fair Draw v1,titleand the title,winnersand their number,reservesand theirs,roundand the round, then each entry, trimmed, in Unicode NFC. - The round's randomness is the SHA-256 of its signature, at
https://api.drand.sh/52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971/public/followed by the round. This page checks the signature against quicknet's public key, so the server relaying it can't lie. - The seed is the SHA-256 of the randomness then the fingerprint (64 bytes), and the random stream the SHA-256 of the seed followed by a 4-byte counter (big-endian, from 0), read as 32-bit big-endian numbers.
- For each place i from 0, a number u of the stream below the largest multiple of the entries left (n − i) under 2³², others skipped, picks the entry i + u mod (n − i), swapped with the i-th (Fisher-Yates). The first entries are the winners, then the reserves.