Repository navigation
Description
proposed BIP 77 edits for the poll-timing change, implemented in #1658, part of #440, #1586
authors: @DanGould @nothingmuch
Client/Directory interactions
current:
GET requests on an empty mailbox should block until a message is posted or a timeout occurs. The timeout should be 30 seconds because that will not exceed the default timeout for most HTTP clients.
proposed:
A directory should respond to v2 poll GET requests immediately rather than blocking. The 30-second blocking timeout still applies to the synchronous BIP 78 fallback. Clients should poll on a Poisson schedule with a uniform 5-second mean gap, scheduling each poll independently of when the previous response arrives, so the directory cannot infer a client's relay round-trip latency from poll timing (see Request timing). A client that polls without its own schedule against a non-blocking directory will poll excessively until updated, bounded by the directory's denial-of-service protections.
Attack vectors- add a new entry afterNetwork privacy
Request timing
A fixed poll cadence makes the directory-observed interval approximately the cadence plus the client's round-trip latency to its relay, which can distinguish sender from receiver and correlate a session's requests. Clients poll on an independent Poisson schedule decoupled from responses, so the observed process reveals only the rate. The rate must be uniform across clients, since a per-client rate is itself a fingerprint. A single directory is not a mix network, so this is partial: directory-side delay and cover traffic are future work.
- Rationale - add a new entry after
HTTP
Poll Interval
The 5-second mean balances latency against directory load: a payjoin completes in roughly two poll gaps, while a shorter interval would multiply requests and bandwidth, a concern for mobile clients. The directory learns the rate, so uniformity matters.
- follow-up timing mitigations (POST re-clock, directory mixing delay, cover traffic) will be proposed as separate edits.
does this wording work? open to alternatives on the unconditional non-blocking and the 5s default.
Activity
DanGould commentedon Oct 16, 2026
I've thought about this a lot today in response to SatoshiPortal/bullbitcoin-mobile/pull/2977. Ultimately revealing RTT latency is a privacy leak, but I don't think adding Poisson latency to remove it is the right trade off. A directory can already distinguish sender from receiver through the order of requests on each mailbox.
The more significant timing leak is between an interrupted GET on a mailbox and transactions appearing in mempool.
As your issue says, "A single directory is not a mix network," and poisson schedule really pays off with directory delay and cover traffic which might be something that fits multiparty use, even on the same servers.
The cost of Poisson latency is responsiveness in apps. People notice the latency and they're already trying to speed it up in bullbitcoin-mobile at the issue cited above. We can leave the latency at 0 across the board with a SHOULD suggestion in the BIP and get rid of that fingerprint and the latency.
I'm leaving this open because the spec still needs to say a word on this for completeness.