Verifiable draw

A draw anyone can redo.

We do not ask you to take our word for it. Before each draw, we seal a secret number and publish its fingerprint. After the draw, you redo the calculation yourself.

A sealed envelope

When a competition opens, the site picks a very large number at random: the seed. It stays secret until the draw, like a slip of paper placed in an envelope.

At the same moment, we publish its fingerprint: a code calculated from the seed. It is the seal on the envelope.

The fingerprint cannot be used to work out the seed. And if a single digit of the seed changed, the fingerprint would be completely different: once the seal is published, the seed cannot be replaced without it showing.

The seed · secret until the draw

64 characters picked at random, stored encrypted, revealed at the time of the draw.

The fingerprint · published from the opening5d50d5d02f882f89 05a01cfd7dd87ae9 54d72c19248089e4 c37862a4e60cc374Visible to everyone on the results page, before the draw.

From the first ticket to the winner

  1. I

    Opening

    The site picks the seed and stores it encrypted. Its fingerprint is published.

    Secret seedPublic fingerprint
  2. II

    Closing

    The list of tickets issued for a correct answer is frozen, sorted and published, with its own fingerprint.

    Public list
  3. III

    The draw

    The seed is revealed. A calculation set in advance, from the seed and the list, gives the rank of the winning ticket.

    Public seed
  4. IV

    The proof

    Everything stays published. You check that the seed matches the fingerprint, then you redo the calculation.

    Public calculation

Check it yourself

Copy the values of a draw from the results page. The calculation runs in your browser: nothing is sent to Wingold.

The calculation, for those who want to redo it elsewhere
  1. Fingerprint = SHA-256 of the seed (the 64 characters, as they are).
  2. Value = HMAC-SHA256, with the seed as the key and the list fingerprint as the message. For redraw no. 1, the message is followed by ":1".
  3. Rank = value modulo the number of tickets in the draw. Rank 0 is the first ticket of the sorted list.

What this proof shows

  • The seed has not changed

    The seed revealed at the draw is the one sealed at the opening: its fingerprint was already published.

  • The list has not changed

    No ticket was added or removed after closing: the list fingerprint is published before the draw.

  • The calculation is the right one

    The formula is the same for every competition and it is written on this page. You get the same number as we do.

  • A redraw has its own seed

    If a winner is set aside, a new seed is picked after that decision, with a new fingerprint published before the new draw.

This proof does not replace an outside check. Some draws are entrusted to an independent provider, which issues a certificate. The method used is stated on each result.

The other rules

  • A question picked at random

    Each entry receives a question picked from the competition's bank, with the answers in an order of its own.

  • Nobody chooses the winner

    No Wingold screen allows a winner to be picked by hand.

  • Nothing is erased

    A draw that was set aside stays on display, with its reason. Results stay online.

  • The winner is verified

    Age and identity are checked before the prize is handed over.

Questions

Why not publish the seed straight away?

Because with the seed and the list, anyone could work out the winner before closing, and buy tickets or not accordingly. The seed therefore stays sealed until the draw; only its fingerprint is public.

Do I need to know how to code to check?

No. The tool on this page does the calculation for you. Those who prefer their own tools will find the formula just below it.

Where can I find the values of a draw?

On the results page: each verifiable draw shows its commitment (the seed's fingerprint), the revealed seed, the list fingerprint and the number of tickets in the draw.

What happens if the winner is set aside?

Their tickets are removed from the list, the reason is published, and a new draw takes place with a new seed. The first draw stays on display.