1 // This file is Copyright its original authors, visible in version control
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
10 //! Implementations of various parts of the Lightning protocol are in this module.
12 #[cfg(any(test, feature = "_test_utils"))]
14 pub mod functional_test_utils;
16 pub mod onion_payment;
17 pub mod channelmanager;
19 pub mod inbound_payment;
27 pub use types::{ChannelId, PaymentHash, PaymentPreimage, PaymentSecret};
30 pub mod peer_channel_encryptor;
32 pub(crate) mod peer_channel_encryptor;
37 pub(crate) mod channel;
39 pub(crate) mod onion_utils;
43 pub use onion_utils::create_payment_onion;
44 // Older rustc (which we support) refuses to let us call the get_payment_preimage_hash!() macro
45 // without the node parameter being mut. This is incorrect, and thus newer rustcs will complain
46 // about an unnecessary mut. Thus, we silence the unused_mut warning in two test modules below.
50 mod blinded_payment_tests;
59 mod priv_short_conf_tests;
62 mod chanmon_update_fail_tests;
71 mod onion_route_tests;
78 #[cfg(all(test, async_signing))]
80 mod async_signer_tests;
84 #[allow(dead_code)] // TODO(dual_funding): Exchange for dual_funding cfg
85 pub(crate) mod interactivetxs;
87 pub use self::peer_channel_encryptor::LN_MAX_MSG_LEN;