]> git.bitcoin.ninja Git - rust-lightning/commit
Add anti-probing penalty to `ProbabilisticScorer`
authorElias Rohrer <ero@tnull.de>
Fri, 24 Jun 2022 16:33:15 +0000 (18:33 +0200)
committerElias Rohrer <ero@tnull.de>
Sat, 25 Jun 2022 18:06:04 +0000 (20:06 +0200)
commit800ccec0ed1e925a6918efacb966d7a91d484308
treeeb0efa1bfb3f80ea1de1b411a7ae026644a9d64b
parent79e2af949700281b7333f202a7292e3bf81dc674
Add anti-probing penalty to `ProbabilisticScorer`

Currently, channel balances may be rather easily discovered through
probing. This however poses a privacy risk, since the analysis of
balance changes over adjacent channels could in the worst case empower an adversary to
mount an end-to-end deanonymization attack, i.e., track who payed whom.

The penalty added here is applied so we prefer nodes with a smaller `htlc_maximum_msat`, which makes
balance discovery attacks harder to execute. As this improves privacy network-wide, we
treat such nodes preferentially and hence create an incentive to restrict
`htlc_maximum_msat`.
lightning/src/routing/gossip.rs
lightning/src/routing/scoring.rs