From 44bec16ab36aede940e58c6fb2a33290ee08a157 Mon Sep 17 00:00:00 2001 From: Evan Feenstra Date: Fri, 3 Nov 2023 10:33:50 -0700 Subject: [PATCH] export create_onion_message and peel_onion_message from ln::onion_message --- lightning/src/ln/msgs.rs | 4 ++-- lightning/src/onion_message/mod.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lightning/src/ln/msgs.rs b/lightning/src/ln/msgs.rs index 9b2b95a42fa..d43ad6d0aeb 100644 --- a/lightning/src/ln/msgs.rs +++ b/lightning/src/ln/msgs.rs @@ -1674,10 +1674,10 @@ pub use self::fuzzy_internal_msgs::*; #[cfg(not(fuzzing))] pub(crate) use self::fuzzy_internal_msgs::*; -/// Bolt 4 onion packet including hop data for the next peer. +/// BOLT 4 onion packet including hop data for the next peer. #[derive(Clone)] pub struct OnionPacket { - /// Bolt 4 version number. + /// BOLT 4 version number. pub version: u8, /// In order to ensure we always return an error on onion decode in compliance with [BOLT /// #4](https://github.com/lightning/bolts/blob/master/04-onion-routing.md), we have to diff --git a/lightning/src/onion_message/mod.rs b/lightning/src/onion_message/mod.rs index ff6e0cd8e5d..d106a542fd3 100644 --- a/lightning/src/onion_message/mod.rs +++ b/lightning/src/onion_message/mod.rs @@ -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};