1 // This file is Copyright its original authors, visible in version control
2 // history and in the source files from which this was generated.
4 // This file is licensed under the license available in the LICENSE or LICENSE.md
5 // file in the root of this repository or, if no such file exists, the same
6 // license as that which applies to the original source files from which this
7 // source was automatically generated.
9 //! Implementations of various parts of the Lightning protocol are in this module.
11 use alloc::str::FromStr;
12 use alloc::string::String;
13 use core::ffi::c_void;
14 use core::convert::Infallible;
15 use bitcoin::hashes::Hash;
16 use crate::c_types::*;
17 #[cfg(feature="no-std")]
18 use alloc::{vec::Vec, boxed::Box};
20 pub mod onion_payment;
21 pub mod channelmanager;
23 pub mod inbound_payment;
30 pub mod outbound_payment;
32 mod peer_channel_encryptor {
34 use alloc::str::FromStr;
35 use alloc::string::String;
36 use core::ffi::c_void;
37 use core::convert::Infallible;
38 use bitcoin::hashes::Hash;
39 use crate::c_types::*;
40 #[cfg(feature="no-std")]
41 use alloc::{vec::Vec, boxed::Box};
46 use alloc::str::FromStr;
47 use alloc::string::String;
48 use core::ffi::c_void;
49 use core::convert::Infallible;
50 use bitcoin::hashes::Hash;
51 use crate::c_types::*;
52 #[cfg(feature="no-std")]
53 use alloc::{vec::Vec, boxed::Box};
57 use alloc::str::FromStr;
58 use alloc::string::String;
59 use core::ffi::c_void;
60 use core::convert::Infallible;
61 use bitcoin::hashes::Hash;
62 use crate::c_types::*;
63 #[cfg(feature="no-std")]
64 use alloc::{vec::Vec, boxed::Box};
70 use alloc::str::FromStr;
71 use alloc::string::String;
72 use core::ffi::c_void;
73 use core::convert::Infallible;
74 use bitcoin::hashes::Hash;
75 use crate::c_types::*;
76 #[cfg(feature="no-std")]
77 use alloc::{vec::Vec, boxed::Box};
82 use alloc::str::FromStr;
83 use alloc::string::String;
84 use core::ffi::c_void;
85 use core::convert::Infallible;
86 use bitcoin::hashes::Hash;
87 use crate::c_types::*;
88 #[cfg(feature="no-std")]
89 use alloc::{vec::Vec, boxed::Box};