TollGate

prototype / discussion draft

Trusted without being identified

Proving membership in a trusted set without revealing which member, with ring signatures on Nostr keys.

A counterparty often needs to know that you belong to a trusted set, not who you are. The usual answers are a signature, which names you, or a list, which needs an authority. A ring signature does something narrower and more useful: it proves that one key in this set signed the message, without saying which one.

The problem

BitBlik pairs a maker — the person withdrawing cash at an ATM — with a taker, the person supplying the BLIK code. The maker’s risk is that the code was funded by a stolen card; then the person standing at the ATM is the one associated with the fraud. The maker wants assurance that the taker is someone trusted. The taker does not want to reveal which trusted person they are.

A normal signature answers “who” and exposes the taker. A NIP-05 handle or a coordinator-issued token answers “trusted” but puts a server or a coordinator in the middle. The useful question is narrower: is this counterparty in the set I already trust? Nothing more.

Ring signatures in one page

A ring is a set of public keys. The signer knows one private key in the ring and no one else’s. The signature is a closed loop: a challenge is computed for each member, and only the signer can close the loop because only the signer knows one private key. The verifier checks the closure against the message.

There is no setup ceremony, no issuance and no coordinator call. The prover needs their own key and the public list; the verifier needs the list and the message. That is the whole protocol surface.

The implementation here uses LSAG — Linkable Spontaneous Anonymous Group signatures — on secp256k1. That matters because Nostr keys are already secp256k1 points; there is no key conversion and no second curve. The demo uses @noble/curves and @noble/hashes and is a few hundred lines, not a new cryptographic stack.

The key image

LSAG also produces a key image, derived deterministically from the signer’s key:

I = x · H(P)

The same key on two different messages produces the same image. The verifier can reject a second proof from the same key, which is the replay protection. In this design the image is scoped per maker, so the same taker can prove to two different makers without being linked across them. That is a trade-off: a global image would catch more replay and link more.

The soundness trap

The signer chooses the ring. That is the part that is easy to get wrong.

If the verifier only checks “one key in this ring signed”, an attacker can put their own key plus one scraped member key into a ring, sign validly, and pass. The ring is not evidence of trust by itself.

The verifier must:

  1. pin the list — author signature, event id and content hash;
  2. require the ring to be the pinned set, or a subset of it;
  3. bind the proof to the trade details;
  4. check the key image is fresh.

“A trusted key is somewhere in the ring” is not enough. The ring must be drawn from the verifier’s own trusted set. That is the one soundness requirement, and it is also what limits the anonymity set.

Anonymity, stated honestly

The anonymity set is the size of the verifier’s trusted set. A maker who trusts ten providers gives the prover a 1-of-10 proof. That is the real guarantee; it is not padded to look larger.

The design rejects decoy padding. Padding with keys the verifier does not accept breaks soundness; padding with keys it does accept is just the trusted set. A 1:1 relationship is a legitimate mode, but it must be labelled as such: it is a plain signature with zero anonymity, not an anonymous proof that happens to have one member. The draft sets a floor of four for anonymous mode and a floor of one for the declared 1:1 mode.

What is not solved

Status

Prototype / discussion draft. The demo runs end to end: LSAG proof, key image, real relay transport, and proof-gated trade ordering, with 86 tests green. The design is readable and the failure modes are written down. It is not a shipped feature, and it is not upstream.

Get involved

Issues and questions: open one in the repo, or message the TollGate team on Nostr (npub1zzt0d0s2f4lsanpd7nkjep5r79p7ljq7aw37eek64hf0ef6v0mxqgwljrv, also in the index).


← Back to Thoughts · Next: What we still don’t know →