]> git.bitcoin.ninja Git - rust-lightning/commit
Implement receiving and forwarding onion messages
authorValentine Wallace <vwallace@protonmail.com>
Sat, 28 May 2022 01:39:56 +0000 (18:39 -0700)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 2 Aug 2022 23:19:37 +0000 (19:19 -0400)
commitbf007ea7632b7b95c280440bc50713e55784e315
treee9799a331d9372d5888afd02a6b61b1140c5ec8e
parent9051c38ebe42e171fd0fcfa22d2b9ff6a1607b3b
Implement receiving and forwarding onion messages

This required adapting `onion_utils::decode_next_hop` to work for both payments
and onion messages.

Currently we just print out the path_id of any onion messages we receive. In
the future, these received onion messages will be redirected to their
respective handlers: i.e. an invoice_request will go to an InvoiceHandler,
custom onion messages will go to a custom handler, etc.
lightning/src/ln/channelmanager.rs
lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/packet.rs