1 //! High level lightning structs and impls live here.
2 //! You probably want to create a channelmanager::ChannelManager, and a router::Router first.
3 //! Then, you probably want to pass them both on to a peer_handler::PeerManager and use that to
4 //! create/manage connections and call get_and_clear_pending_events after each action, handling
5 //! them appropriately.
6 //! When you want to open/close a channel or send a payment, call into your ChannelManager and when
7 //! you want to learn things about the network topology (eg get a route for sending a payment),
8 //! call into your Router.
10 pub mod channelmanager;
11 pub mod channelmonitor;
16 #[cfg(feature = "fuzztarget")]
17 pub mod peer_channel_encryptor;
18 #[cfg(not(feature = "fuzztarget"))]
19 pub(crate) mod peer_channel_encryptor;