]> git.bitcoin.ninja Git - rust-lightning/commit
Add an `inbound_payment_id_secret` to `ChannelManager`
authorMatt Corallo <git@bluematt.me>
Sun, 8 Sep 2024 16:38:22 +0000 (16:38 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 23 Sep 2024 01:24:28 +0000 (01:24 +0000)
commitaa09c33a1719944769ba98624bfe18ea33083f44
tree8e7821391dcdb86a28ea49d8e673a6394699b9f7
parent803366a41a8808a1221ec687cb8f56145537b4fe
Add an `inbound_payment_id_secret` to `ChannelManager`

In the next commit we'll start generating `PaymentId`s for inbound
payments randomly by HMAC'ing the HTLC set of the payment. Here we
start by defining the HMAC secret for these HMACs.

This requires one small test adaptation and a full_stack_target
fuzz change because it changes the RNG consumption.
fuzz/src/full_stack.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_tests.rs