All writing

Privacy & protocols / 5 min read

The Hard Part of a Decoy Is Looking Ordinary

Building dummy hops for Lightning taught me how size, fees, and forwarding behavior can make a decoy stand out.

By June 2025, I had a problem with the dummy hops I was working on: the authentication data that helped make them safe also made them harder to disguise.

I was contributing to blinded paths in the Lightning Development Kit. A blinded path lets a recipient provide routing instructions without exposing the identities of all the nodes along the hidden part of the route. Dummy hops extend the apparent path with extra layers processed by the recipient. They give an observer more possible explanations for where the real route ends.

That is the idea. Making those extra layers resemble ordinary forwarding layers became a much longer piece of work.

The questions kept changing. Could the payload size give a dummy away? Could its fees? What would a sender learn from a path whose extra hops seemed to cost nothing?

Following those questions taught me to look at privacy features from the outside: what evidence does the observer actually receive?

The bytes we added for safety

One early design authenticated dummy-hop data in a way that added space to the payload. That created a practical difficulty. The dummy needed to fit alongside ordinary forwarding instructions without advertising its own special role through its size.

Padding was part of the answer, but the authentication overhead made the job harder. In my June notes, I recorded the uncomfortable position we had reached: the design was an improvement, yet an authenticated dummy could still stand out.

A teammate had proposed an approach that retained authentication without carrying the same per-hop authentication data. I spent a day studying that work and the cryptography behind it before carrying the implementation forward.

That day matters to how I remember the project. Progress involved understanding someone else’s idea well enough to build on it responsibly. The implementation crossed module boundaries, but the harder boundary for me was between recognizing that an approach looked promising and understanding why its guarantees held.

Compact authentication gave us more room to make the payloads resemble one another. It also made the next question easier to see.

What does a dummy hop cost?

In January 2026, a review pushed me to look more closely at payment relay values.

A forwarding hop can impose fees and a timelock delta: the extra time required between the incoming and outgoing payment conditions. A dummy with zeroed relay parameters is convenient to construct. But a sender sees information about the total cost and constraints of a blinded path. Those values can provide clues about what is inside it.

That made realistic behavior part of the privacy work. Payment dummy hops needed meaningful relay parameters, correct fee accounting, and consistent enforcement of the constraints advertised for the path.

The accounting had to remain understandable to the recipient too. As the work developed, I added ways for tests to check the dummy-hop fees surfaced in payment events. Privacy did not remove the need to explain where the money went.

There was a useful tension here. We wanted the sender to learn less about hidden structure, while giving the implementation and its users enough information to verify correct payment handling.

Plausible defaults take work

By June, I was working on how relay parameters were selected. Zeroes could look synthetic, but replacing them with arbitrary precise values was not automatically better.

An unusual exact fee can also be a distinguishing feature.

The approach used coarser fee buckets and, where available, nearby low-fee profiles to give dummy parameters a more plausible shape. A later review tightened those buckets. Too many narrow cases preserved precisely the unusual values the scheme was meant to obscure.

This was a small change in code and a useful correction in reasoning. A table called a collection of common fees still has to serve that purpose. Its name does not establish that the values blend in.

The same scrutiny applied to fallback behavior. Defaults are observable decisions once they enter a protocol. They deserve the same attention as the normal path.

Padded can still mean different sizes

A later issue, reported by Project Loupe, returned to payload lengths.

Rounding each forwarding payload independently to a multiple of thirty bytes sounds like a reasonable padding policy. But consider the boundary: twenty-four bytes rounds to thirty, while thirty-one rounds to sixty. Both payloads have been padded, and their lengths still differ. Encryption does not make that difference disappear.

The proposed correction measured the intermediate payloads first, then used a shared padded size across the real intermediate and dummy hops. Final-hop padding kept its separate treatment.

The scope of the claim mattered. Different lengths could provide clues about forwarding policies or hop roles. Establishing the identity of a hidden node would require more information. The issue justified closing a particular length leak; it did not justify a sweeping claim about deanonymization.

At the point recorded in my October entry, the change and regression test had been written, but a passing rerun was still outstanding. That entry captures the investigation and proposed correction, rather than a completed validation result.

Looking from the other end

These were separate stages of a long project. Authentication overhead, fee profiles, relay constraints, and padding each brought a different piece of the observer’s view into focus.

I found it useful to ask a concrete question after each change: if I were trying to distinguish this dummy from a real forwarding hop, what would I compare?

That question sent me back to details I could easily have treated as finished. A sensible authentication mechanism affected size. A convenient default affected apparent cost. A padding rule left boundaries visible.

Building the decoy meant continuing to examine those interactions. The most valuable improvements often came from a reviewer or collaborator noticing an ordinary-looking choice and asking what it revealed.


Source notes: this article draws on Code Chronicle entries 172, 183, 304, 405, 425, and 480. Implementation references include message dummy hops, payment dummy hops, relay constraints and fee handling, and the later padding proposal.

Another thread to follow

What Twenty Millisatoshis Taught Me About Tests

Questions or a different perspective? Write to me.