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;
29 use alloc::str::FromStr;
30 use core::ffi::c_void;
31 use core::convert::Infallible;
32 use bitcoin::hashes::Hash;
33 use crate::c_types::*;
34 #[cfg(feature="no-std")]
35 use alloc::{vec::Vec, boxed::Box};
40 use alloc::str::FromStr;
41 use core::ffi::c_void;
42 use core::convert::Infallible;
43 use bitcoin::hashes::Hash;
44 use crate::c_types::*;
45 #[cfg(feature="no-std")]
46 use alloc::{vec::Vec, boxed::Box};
51 use alloc::str::FromStr;
52 use core::ffi::c_void;
53 use core::convert::Infallible;
54 use bitcoin::hashes::Hash;
55 use crate::c_types::*;
56 #[cfg(feature="no-std")]
57 use alloc::{vec::Vec, boxed::Box};
62 use alloc::str::FromStr;
63 use core::ffi::c_void;
64 use core::convert::Infallible;
65 use bitcoin::hashes::Hash;
66 use crate::c_types::*;
67 #[cfg(feature="no-std")]
68 use alloc::{vec::Vec, boxed::Box};
73 use alloc::str::FromStr;
74 use core::ffi::c_void;
75 use core::convert::Infallible;
76 use bitcoin::hashes::Hash;
77 use crate::c_types::*;
78 #[cfg(feature="no-std")]
79 use alloc::{vec::Vec, boxed::Box};
83 use alloc::str::FromStr;
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};
95 use alloc::str::FromStr;
96 use core::ffi::c_void;
97 use core::convert::Infallible;
98 use bitcoin::hashes::Hash;
99 use crate::c_types::*;
100 #[cfg(feature="no-std")]
101 use alloc::{vec::Vec, boxed::Box};
106 use alloc::str::FromStr;
107 use core::ffi::c_void;
108 use core::convert::Infallible;
109 use bitcoin::hashes::Hash;
110 use crate::c_types::*;
111 #[cfg(feature="no-std")]
112 use alloc::{vec::Vec, boxed::Box};
117 use alloc::str::FromStr;
118 use core::ffi::c_void;
119 use core::convert::Infallible;
120 use bitcoin::hashes::Hash;
121 use crate::c_types::*;
122 #[cfg(feature="no-std")]
123 use alloc::{vec::Vec, boxed::Box};
126 mod chacha20poly1305rfc {
128 use alloc::str::FromStr;
129 use core::ffi::c_void;
130 use core::convert::Infallible;
131 use bitcoin::hashes::Hash;
132 use crate::c_types::*;
133 #[cfg(feature="no-std")]
134 use alloc::{vec::Vec, boxed::Box};
136 mod real_chachapoly {
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};
148 mod transaction_utils {
150 use alloc::str::FromStr;
151 use core::ffi::c_void;
152 use core::convert::Infallible;
153 use bitcoin::hashes::Hash;
154 use crate::c_types::*;
155 #[cfg(feature="no-std")]
156 use alloc::{vec::Vec, boxed::Box};
161 use alloc::str::FromStr;
162 use core::ffi::c_void;
163 use core::convert::Infallible;
164 use bitcoin::hashes::Hash;
165 use crate::c_types::*;
166 #[cfg(feature="no-std")]
167 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};
183 use alloc::str::FromStr;
184 use core::ffi::c_void;
185 use core::convert::Infallible;
186 use bitcoin::hashes::Hash;
187 use crate::c_types::*;
188 #[cfg(feature="no-std")]
189 use alloc::{vec::Vec, boxed::Box};
194 use alloc::str::FromStr;
195 use core::ffi::c_void;
196 use core::convert::Infallible;
197 use bitcoin::hashes::Hash;
198 use crate::c_types::*;
199 #[cfg(feature="no-std")]
200 use alloc::{vec::Vec, boxed::Box};
205 use alloc::str::FromStr;
206 use core::ffi::c_void;
207 use core::convert::Infallible;
208 use bitcoin::hashes::Hash;
209 use crate::c_types::*;
210 #[cfg(feature="no-std")]
211 use alloc::{vec::Vec, boxed::Box};