Add `send_probe` and introduce probing cookies
authorElias Rohrer <ero@tnull.de>
Fri, 24 Jun 2022 10:00:20 +0000 (12:00 +0200)
committerElias Rohrer <ero@tnull.de>
Thu, 7 Jul 2022 07:02:29 +0000 (09:02 +0200)
commiteb8bce0d161d5d6c135be5fd8c7ebe2699857ae0
treee0d1297e5360b640cbf5b8d3b0f13fb64c0d26e2
parent790abc540d46053cacc03893e92ad57454900e94
Add `send_probe` and introduce probing cookies

When we send payment probes, we generate the [`PaymentHash`] based on a
probing cookie secret and a random [`PaymentId`]. This allows us to
discern probes from real payments, without keeping additional state.
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
lightning-invoice/src/payment.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/mod.rs
lightning/src/ln/payment_tests.rs
lightning/src/routing/router.rs
lightning/src/routing/scoring.rs
lightning/src/util/events.rs