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 //! Some utility modules live here. See individual sub-modules for more info.
11 use alloc::str::FromStr;
12 use core::ffi::c_void;
13 use core::convert::Infallible;
14 use bitcoin::hashes::Hash;
15 use crate::c_types::*;
16 #[cfg(feature="no-std")]
17 use alloc::{vec::Vec, boxed::Box};
22 pub mod message_signing;
28 use alloc::str::FromStr;
29 use core::ffi::c_void;
30 use core::convert::Infallible;
31 use bitcoin::hashes::Hash;
32 use crate::c_types::*;
33 #[cfg(feature="no-std")]
34 use alloc::{vec::Vec, boxed::Box};
39 use alloc::str::FromStr;
40 use core::ffi::c_void;
41 use core::convert::Infallible;
42 use bitcoin::hashes::Hash;
43 use crate::c_types::*;
44 #[cfg(feature="no-std")]
45 use alloc::{vec::Vec, boxed::Box};
50 use alloc::str::FromStr;
51 use core::ffi::c_void;
52 use core::convert::Infallible;
53 use bitcoin::hashes::Hash;
54 use crate::c_types::*;
55 #[cfg(feature="no-std")]
56 use alloc::{vec::Vec, boxed::Box};
61 use alloc::str::FromStr;
62 use core::ffi::c_void;
63 use core::convert::Infallible;
64 use bitcoin::hashes::Hash;
65 use crate::c_types::*;
66 #[cfg(feature="no-std")]
67 use alloc::{vec::Vec, boxed::Box};
72 use alloc::str::FromStr;
73 use core::ffi::c_void;
74 use core::convert::Infallible;
75 use bitcoin::hashes::Hash;
76 use crate::c_types::*;
77 #[cfg(feature="no-std")]
78 use alloc::{vec::Vec, boxed::Box};
82 use alloc::str::FromStr;
83 use core::ffi::c_void;
84 use core::convert::Infallible;
85 use bitcoin::hashes::Hash;
86 use crate::c_types::*;
87 #[cfg(feature="no-std")]
88 use alloc::{vec::Vec, boxed::Box};
94 use alloc::str::FromStr;
95 use core::ffi::c_void;
96 use core::convert::Infallible;
97 use bitcoin::hashes::Hash;
98 use crate::c_types::*;
99 #[cfg(feature="no-std")]
100 use alloc::{vec::Vec, boxed::Box};
105 use alloc::str::FromStr;
106 use core::ffi::c_void;
107 use core::convert::Infallible;
108 use bitcoin::hashes::Hash;
109 use crate::c_types::*;
110 #[cfg(feature="no-std")]
111 use alloc::{vec::Vec, boxed::Box};
114 mod chacha20poly1305rfc {
116 use alloc::str::FromStr;
117 use core::ffi::c_void;
118 use core::convert::Infallible;
119 use bitcoin::hashes::Hash;
120 use crate::c_types::*;
121 #[cfg(feature="no-std")]
122 use alloc::{vec::Vec, boxed::Box};
124 mod real_chachapoly {
126 use alloc::str::FromStr;
127 use core::ffi::c_void;
128 use core::convert::Infallible;
129 use bitcoin::hashes::Hash;
130 use crate::c_types::*;
131 #[cfg(feature="no-std")]
132 use alloc::{vec::Vec, boxed::Box};
136 mod transaction_utils {
138 use alloc::str::FromStr;
139 use core::ffi::c_void;
140 use core::convert::Infallible;
141 use bitcoin::hashes::Hash;
142 use crate::c_types::*;
143 #[cfg(feature="no-std")]
144 use alloc::{vec::Vec, boxed::Box};
149 use alloc::str::FromStr;
150 use core::ffi::c_void;
151 use core::convert::Infallible;
152 use bitcoin::hashes::Hash;
153 use crate::c_types::*;
154 #[cfg(feature="no-std")]
155 use alloc::{vec::Vec, boxed::Box};
159 use alloc::str::FromStr;
160 use core::ffi::c_void;
161 use core::convert::Infallible;
162 use bitcoin::hashes::Hash;
163 use crate::c_types::*;
164 #[cfg(feature="no-std")]
165 use alloc::{vec::Vec, boxed::Box};
171 use alloc::str::FromStr;
172 use core::ffi::c_void;
173 use core::convert::Infallible;
174 use bitcoin::hashes::Hash;
175 use crate::c_types::*;
176 #[cfg(feature="no-std")]
177 use alloc::{vec::Vec, boxed::Box};
182 use alloc::str::FromStr;
183 use core::ffi::c_void;
184 use core::convert::Infallible;
185 use bitcoin::hashes::Hash;
186 use crate::c_types::*;
187 #[cfg(feature="no-std")]
188 use alloc::{vec::Vec, boxed::Box};