]> git.bitcoin.ninja Git - rust-lightning/commit
OffersMessageHandler trait for OnionMessenger
authorJeffrey Czyz <jkczyz@gmail.com>
Wed, 15 Feb 2023 22:10:59 +0000 (16:10 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 13 Jun 2023 18:07:47 +0000 (13:07 -0500)
commitf521e4cceb022768a459285e7ab3922f0f59f9d5
treebdfb470a026559000cc9cea8cdd2ad8244f7fb69
parentcff88aa5097ca09cfbd869eea9b24f61e6977b2f
OffersMessageHandler trait for OnionMessenger

Add a trait for handling BOLT 12 Offers messages to OnionMessenger and a
skeleton implementation of it for ChannelManager. This allows users to
either provide their own custom handling Offers messages or rely on a
version provided by LDK using stateless verification.
fuzz/src/onion_message.rs
lightning/src/ln/peer_handler.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/onion_message/mod.rs
lightning/src/onion_message/offers.rs
lightning/src/onion_message/packet.rs