]> git.bitcoin.ninja Git - rust-lightning/commitdiff
export create_onion_message and peel_onion_message from ln::onion_message
authorEvan Feenstra <evanfeenstra@gmail.com>
Mon, 6 Nov 2023 18:42:50 +0000 (10:42 -0800)
committerEvan Feenstra <evanfeenstra@gmail.com>
Mon, 6 Nov 2023 18:42:50 +0000 (10:42 -0800)
lightning/src/onion_message/mod.rs

index ff6e0cd8e5d59a44324838a9156bce79ae0ea45e..d106a542fd368156f0a4f7959c37919d8e1821ec 100644 (file)
@@ -28,6 +28,7 @@ mod functional_tests;
 
 // Re-export structs so they can be imported with just the `onion_message::` module prefix.
 pub use self::messenger::{CustomOnionMessageHandler, DefaultMessageRouter, Destination, MessageRouter, OnionMessageContents, OnionMessagePath, OnionMessenger, PeeledOnion, PendingOnionMessage, SendError};
+pub use self::messenger::{create_onion_message, peel_onion_message};
 #[cfg(not(c_bindings))]
 pub use self::messenger::{SimpleArcOnionMessenger, SimpleRefOnionMessenger};
 pub use self::offers::{OffersMessage, OffersMessageHandler};