Skip to content

Commit cb8b7b1

Browse files
committed
f Give more detailed guidance on how to build aggregate delay
1 parent 02756e4 commit cb8b7b1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

02-peer-protocol.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,12 +2442,18 @@ Nodes inside a blinded route must use `invalid_onion_blinding` to avoid
24422442
leaking information to senders trying to probe the blinded route.
24432443

24442444
Receiving nodes should wait for a random amount of time before responding to
2445-
incoming HTLC with `update_fulfill_htlc` / `update_fail_malformed_htlc` /
2445+
incoming HTLCs with `update_fulfill_htlc` / `update_fail_malformed_htlc` /
24462446
`update_fail_htlc` to impair the capabilities of a potential adversary trying
2447-
to deanonymize them based on message timing analysis. The delay distribution and
2448-
parameters should be be chosen so that the response messages could have
2449-
plausibly originated from a node downstream in 1-2 hops distance from the
2450-
receiving node.
2447+
to deanonymize them based on message timing analysis. The delay distribution
2448+
and parameters should be chosen so that they disallow an adversary to be
2449+
certain about the origin of any response messages while keeping efficiency in
2450+
mind, i.e., the chosen approach should aim to maximize the adversarial
2451+
uncertainty gained per millisecond added delay. In practice this could mean to
2452+
start a limited random walk on the graph and for each traversed hop add a
2453+
plausible per-hop delay sampled from a suitable random latency distribution
2454+
(e.g., log-normal). In aggregate, this would create a plausible extended path
2455+
similar to the 'shadow route extension' as discussed in [BOLT
2456+
#7](07-routing-gossip.md#recommendations-for-routing).
24512457

24522458
### Committing Updates So Far: `commitment_signed`
24532459

0 commit comments

Comments
 (0)