291030f4e26c5ce7b9eccee6e33760debab430fe
[rust-lightning] / lightning / src / onion_message / mod.rs
1 // This file is Copyright its original authors, visible in version control
2 // history.
3 //
4 // This file is licensed under the Apache License, Version 2.0 <LICENSE-APACHE
5 // or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
7 // You may not use this file except in accordance with one or both of these
8 // licenses.
9
10 //! Onion Messages: sending, receiving, forwarding, and ancillary utilities live here
11
12 mod blinded_route;
13 mod messenger;
14 mod packet;
15 mod utils;
16
17 // Re-export structs so they can be imported with just the `onion_message::` module prefix.
18 pub use self::blinded_route::{BlindedRoute, BlindedHop};
19 pub use self::messenger::{OnionMessenger, SimpleArcOnionMessenger, SimpleRefOnionMessenger};
20 pub(crate) use self::packet::Packet;