Skip to content

How verification works

Every ABCAllocation drawing is set up so that no one can choose the winners, and so that anyone can check afterward that no one did. This page explains how, first in plain terms and then in detail for anyone who wants to audit it.

The short version

Three things make a drawing trustworthy. The list of entries is locked before the drawing, so it cannot be changed afterward. The random number that sets the order comes from a public source that neither your board nor ABCAllocation controls. And a second, independent program repeats the drawing and must reach exactly the same result before anything is released.

The evidence for each of these is published with every drawing.

The six steps

Entries are locked.

When registration closes and your staff finish their review, the list of eligible entries and the bottles in the release are frozen into a single record. The system takes a digital fingerprint of that record. If even one character of it changed later, the fingerprint would no longer match.

In technical terms: the locked snapshot lists inventory and eligible entries in a fixed order. Its fingerprint is a SHA-256 hash.

The drawing is committed before any randomness exists.

Before the drawing runs, the system publishes a commitment. It names the locked entry record, and it names the exact future moment whose public random number will be used. It also seals a secret number of its own. From this point the drawing cannot be re-run with different inputs, because the inputs are already on record. Only one commitment can exist for a drawing, and it cannot be replaced.

In technical terms: the commitment is a SHA-256 hash of the drawing’s id and a 32-byte secret. It is published with the snapshot fingerprint and a drand round number at least 60 seconds in the future.

A public random number arrives.

The random number comes from drand, a public service run jointly by the League of Entropy, a group of universities and companies around the world. It produces a new number every few seconds, and each one is digitally signed. Nobody can predict a number before it is produced, and no single member can choose it. The system checks the signature before using the number.

In technical terms: the drand quicknet beacon, verified against its published public key (BLS signature).

The order is drawn.

The public random number is combined with the sealed secret and the fingerprint of the entry record to produce one starting value. That value drives a standard shuffle, which puts every eligible entry in a random order. Every entry has the same chance of landing in any position.

In technical terms: the seed is derived with HKDF-SHA256. The order comes from a Fisher–Yates shuffle using unbiased random integers (rejection sampling).

Bottles are offered in that order.

Starting with the first entry in the order, each entrant is offered the highest-ranked bottle on their list that is still available. If none of the bottles they ranked are left, they are offered one of the remaining bottles, chosen at random. Each entrant receives at most one offer. When the bottles run out, the remaining entrants wait in order as alternates.

In technical terms: the allocation is fully determined by the order, the rankings and the inventory in the locked snapshot.

A second program checks everything.

A separate verifier, written independently and in a different programming language, repeats the whole drawing from the published inputs. Offers are released only if its result matches the first result exactly. If there is any difference, nothing is published and the drawing stops for investigation. No one can approve their way past a mismatch.

In technical terms: the verifier recomputes the snapshot fingerprint, the commitment, the beacon signature, the seed, the order and the allocation, and compares the result byte for byte. It signs a statement of what it verified (Ed25519).

When a winner does not buy

If an offer is declined, expires or is disqualified, that bottle is released and offered to the next waiting entrant in the original order. A purchased bottle is never taken back, and an entrant whose offer was released is not offered another. These later offers are recorded and checked by the verifier in the same way as the first ones.

What is published for every drawing

Each drawing has its own public page. It shows the following, so anyone can confirm the drawing ran as committed.

Published itemWhat it lets you check

Entry record fingerprint

That the list of entries used in the drawing is the one that was locked.

Commitment

That the drawing’s inputs were fixed before the random number existed.

Public random number

Which drand round was used, so it can be looked up and checked independently.

Revealed secret

That the sealed secret matches the commitment made beforehand.

Result fingerprint

That the published result is the one the verifier confirmed.

Winning confirmation numbers

Who received an offer, without showing anyone’s name.

Why the drawing cannot be steered

What someone might tryWhy it does not work

Board staff adding, removing or changing entries after the drawing

The entry record is fingerprinted and named in the commitment. Any change produces a different fingerprint.

Running the drawing several times and keeping a preferred result

Only one commitment can exist per drawing, and it fixes both the entries and the random number to be used.

ABCAllocation choosing a favorable random number

The number comes from drand and is fixed before it exists. ABCAllocation cannot predict or choose it.

Someone who can watch drand trying to work out the result early

The sealed secret is also part of the calculation, and it is not revealed until the drawing runs.

A fault or tampering in the drawing software

The independent verifier would reach a different result, and nothing would be published.

Current limits

Two things are worth stating plainly.

Checking your own entry. An individual entrant cannot yet confirm for themselves that their entry was included in the locked record. Authorized auditors can export the full drawing evidence and replay it independently.

If the public random number is unavailable. The drawing waits. It does not switch to another source, because the source was fixed in the commitment.

Technical reference

For auditors and technical reviewers.

Protocolabcallocation.drawing.v1
Hash functionSHA-256 throughout.
CommitmentSHA-256("abcallocation.commit.v1" || 0x00 || lottery id || R), where R is a 32-byte secret from a cryptographically secure generator.
Public randomnessdrand quicknet (League of Entropy), 3-second period. Chain hash 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971. The committed round is the first at least 60 seconds after the commitment.
Beacon checkBLS signature on the round number, verified against the pinned chain public key. Randomness is the SHA-256 of the signature.
SeedHKDF-SHA256 (RFC 5869) over the secret and the beacon randomness, salted with the snapshot hash.
Random streamsHMAC-SHA256 in counter mode, with separate streams for the priority order, fallback choices and alternates.
ShuffleFisher–Yates, using unbiased integers by rejection sampling.
ImplementationsTwo separate implementations that must produce byte-identical results: the drawing engine (TypeScript) and the independent verifier (Python).
AttestationThe verifier signs a statement of each successful verification with Ed25519 (RFC 8032).

Start with a practice drawing.

Request a walkthrough

Tell us about your board and we’ll reach out within one business day. Before your first live release, your staff can run a full practice drawing with fictional entrants.