]> git.bitcoin.ninja Git - rust-lightning/commit
Allow create_blinded_paths functions to accept MessageContext as input field
authorshaavan <shaavan.github@gmail.com>
Sat, 15 Jun 2024 13:52:56 +0000 (19:22 +0530)
committershaavan <shaavan.github@gmail.com>
Tue, 9 Jul 2024 11:57:11 +0000 (17:27 +0530)
commit42c096c491bad1659c3cfdc04f87dc396220a131
treeeffa43d0b9402e85821ec695eef494da9455d811
parentfbe9dfa938a3bbbc7ba2a196e7d8972c1085a8b9
Allow create_blinded_paths functions to accept MessageContext as input field

- Enabled `create_blinded_paths` to accept `MessageContext` TLVs as
  an input field.
- `MessageContext` is intended to be sent along with the `reply_path`
   to the counterparty.
- Added `MessageContext` in the `create_blinded_paths` flow, optionally
  appending it within the `reply_path`.
- Updated tests to verify the new feature.
14 files changed:
fuzz/src/chanmon_consistency.rs
fuzz/src/full_stack.rs
fuzz/src/invoice_request_deser.rs
fuzz/src/onion_message.rs
fuzz/src/refund_deser.rs
lightning/src/blinded_path/message.rs
lightning/src/blinded_path/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/max_payment_path_len_tests.rs
lightning/src/ln/offers_tests.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/routing/router.rs
lightning/src/util/test_utils.rs