Skip to content

What we protect, and how you can check.

Two things matter for a ticket: that the allocation was fair, and that the thing in your phone is hard to fake. Here is how each works, and where it stops.

The draw

When a ballot round opens we generate a random seed and publish its SHA-256 hash. The seed stays secret until the draw. Each entry (a person, or a whole group) is scored with an HMAC-SHA256 of the seed and the entry id. Sorting by score gives the order, and tickets are allocated down that list while they fit.

After the draw we reveal the seed on the public report. Anyone can hash the seed and compare it to the hash from the start, then recompute the order. If we had picked the seed after seeing the entries, the hash would not match. The report is readable without a key at /api/v1/ballots/{id}/report.

Ticket codes

A ticket's code is a signature: an HMAC of the ticket id, its version and the current 30-second slot, made with a secret held on the server. The door check accepts the current slot and one either side, to allow for clock drift. A screenshot is useless within about a minute.

The code appears a few hours before doors, set per event, so a ticket cannot be shown off weeks early or sold as a picture.

Transfers and returns

Transferring a ticket raises its version number, and the version is part of what the code signs. So the previous holder's code fails the door check the moment the transfer goes through. A returned ticket goes to the next person on the waiting list at face value, with a fresh version.

Not selling twice

When tickets are issued, the product row is locked in the database and stock is decremented in the same transaction, so two people cannot take the last ticket. Room capacity is different: it is enforced at the door by scans, because people come and go during the night.

Accounts and payments

Entering a ballot or buying needs an account with a confirmed email. Paid tickets go through Stripe, so card numbers never reach our servers. The API is rate limited per key and per address, and errors come back as structured JSON with a code.

Hosting and database are on Helm7, email through ThreadCamp, and errors are recorded with Sentry with personal details removed.

What we do not do

  • We do not check government ID. An optional tier for the highest-risk nights is planned. Today a night can use named tickets checked at the door.
  • We do not scan offline yet. Door staff need a connection.
  • We do not stop someone selling a login. We make it a hassle with no margin, and we cannot make it impossible.
  • Live room counts come from scans. They are not a substitute for your licence conditions or fire procedures.

Reporting a problem

Found something? Email hello@gatelark.com with what you saw and how to reproduce it. We read every report and will tell you what we changed.