How Verylot digits are made — and how to check them yourself
Every 10 seconds Verylot produces one digit from 0 to 9. Each digit comes from two independent sources, and neither source can choose or predict it alone. Every digit can be recomputed by anyone, from public data, without trusting Verylot.
The two ingredients
1. Verylot's seeds — locked in advance
For every UTC day Verylot creates a chain of 8,640 secret values called seeds (one per 10-second slot). The chain is built backwards by hashing:
s[8640] = 32 random bytes (secret)
s[k-1] = SHA-256("verylot/chain/v1" ‖ s[k])
s[0] = the day's commitment
The last value, s[0], is the commitment. Verylot publishes it days before the day starts (currently 7 days ahead). Because SHA-256 cannot be reversed, publishing s[0] reveals nothing about the seeds — but it locks all of them: from that moment Verylot can no longer change a single seed of that day without everyone noticing.
Each digit reveals its own seed. Anyone can hash that seed forward and check that it lands exactly on the published commitment.
2. drand — public randomness nobody can predict
drand is a public randomness service run by the League of Entropy, a group of independent organisations including Cloudflare, Protocol Labs, EPFL and others. Verylot uses its quicknet network, which publishes a new random value every 3 seconds.
Each drand value is a threshold BLS signature produced jointly by many independent servers. No single member can predict or bias it, and anyone can verify it against drand's public key. Verylot does not run drand and cannot influence it.
How one digit is made
Time is split into 10-second slots: slot = unix_seconds / 10. For each slot:
- Seed — take the slot's seed from the day's chain (slot
iof the day usess[i+1]). - drand round — take the first drand round published at or after the slot's start. The round is fixed by a formula, so nobody can pick a convenient one:
round = ceil((slot_time − 1692803367) / 3) + 1 - Mix — compute
HMAC-SHA256(key = seed, message = "verylot/digit/v1" ‖ slot ‖ counter ‖ drand_randomness).slotis an 8-byte big-endian integer andcountera 4-byte one, starting at 0. - Digit — read the 32 bytes of the result in order and take the first byte
bsmaller than 250. The digit isb mod 10.
Why 250? It is the largest multiple of 10 that fits in a byte. Bytes 250–255 are skipped, so each digit 0–9 has exactly 10% probability. (If all 32 bytes were 250 or more — a chance of about 1 in 10⁵² — the counter becomes 1 and the HMAC is recomputed.)
The digit appears 1–3 seconds after the slot starts, as soon as the drand round is published.
Why nobody can cheat
| Who | Why they can't control a digit |
|---|---|
| Verylot | Seeds are locked by the commitment days in advance. Choosing seeds can't help either, because the drand value they will be mixed with doesn't exist yet. |
| drand | drand never sees Verylot's seeds. And a single drand member can't control drand's output. |
| A Verylot employee | Knowing future seeds is useless without the future drand value, which nobody knows until it is published. |
| A site running a draw | Draws must be registered at least 60 seconds before they start (checked on the database's clock), and the registration time is stored. |
| "The server was down, that digit doesn't count" | Impossible. Every slot's digit is mathematically fixed by its seed and its drand round. An outage can only delay publication; it can never change or skip a digit. |
Draws
A draw on a site is simply a window over the public stream: N digits starting at a time T. For example, "6 digits at 12:00:00 UTC" means the digits of 12:00:00, 12:00:10 … 12:00:50.
- A draw must be registered at least 60 seconds before T.
- A draw can be changed only until its lock time (at the latest 60 seconds before T) and cancelled only before T.
- The same start time and digit count give the same result for everyone — that is what makes every draw publicly checkable.
How to register a draw in the panel, step by step: member guide.
Check it yourself
On this website
Search for any time, then press Verify. Your browser — not our server — does all four checks for every digit:
- the day's commitment was published before the slot,
- the revealed seed hashes forward to that commitment,
- the drand value, fetched directly from drand's servers, has a valid BLS signature,
- the digit recomputed from the seed and drand's value matches.
You can also download the proof as a JSON file.
Without trusting this website
Where the proof data comes from:
- The proof file you can download from the Verify window: seeds, drand values and the day commitments
- For members, with signed requests:
/v1/stream/proofand/v1/commitments(API) - Day commitments, published days ahead: Commitments
- drand round values, straight from drand:
https://api.drand.sh/52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971/public/<round>
The whole digit calculation fits in a few lines of Python (standard library only):
import hashlib, hmac
def seed_reaches_commitment(seed_hex, slot, commitment_hex):
x = bytes.fromhex(seed_hex)
for _ in range(slot % 8640 + 1):
x = hashlib.sha256(b"verylot/chain/v1" + x).digest()
return x.hex() == commitment_hex
def drand_round(slot):
return -(-(slot * 10 - 1692803367) // 3) + 1
def digit(seed_hex, slot, drand_randomness_hex):
seed, randomness = bytes.fromhex(seed_hex), bytes.fromhex(drand_randomness_hex)
counter = 0
while True:
msg = b"verylot/digit/v1" + slot.to_bytes(8, "big") + counter.to_bytes(4, "big") + randomness
for b in hmac.new(seed, msg, hashlib.sha256).digest():
if b < 250:
return b % 10
counter += 1
To check drand's BLS signature as well, use drand's official client (drand-client) or Verylot's open verifier, which does all four checks from the command line:
verylot-verify --file verylot-proof.json
Protocol reference (v1)
| Item | Value |
|---|---|
| Slot | unix_seconds / 10, UTC; 8,640 slots per UTC day |
| Seed chain | s[k-1] = SHA-256("verylot/chain/v1" ‖ s[k]); slot i of the day uses s[i+1] |
| Commitment | s[0], published before the day starts |
| drand network | quicknet, chain hash 52db9ba70e0cc0f6eaf7803dd07447a1f5477735fd3f661792ba94600c84e971 |
| drand round | first round at or after the slot time: ceil((t − 1692803367) / 3) + 1 |
| Digit | first byte b < 250 of HMAC-SHA256(seed, "verylot/digit/v1" ‖ slot:int64 ‖ counter:uint32 ‖ randomness) → b mod 10 |
Known limitations
- Commitment timing. The time a commitment was published comes from Verylot's own records.
- drand availability. If drand stops for a while, digits are published late — but they don't change. There is deliberately no fallback source, because a fallback would open a door to manipulation.
Further reading
- Verylot protocol: specification, test vectors, verifier and a self-hosted reference generator (open source, Apache-2.0)
- drand — what it is and who runs it
- quicknet announcement and how to use drand
- quicknet chain information (public key, period, genesis)
- League of Entropy
- HMAC — RFC 2104 · SHA-256 — FIPS 180-4 · Hashing to elliptic curves (BLS) — RFC 9380