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 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};
23 pub mod message_signing;
33 use alloc::str::FromStr;
34 use alloc::string::String;
35 use core::ffi::c_void;
36 use core::convert::Infallible;
37 use bitcoin::hashes::Hash;
38 use crate::c_types::*;
39 #[cfg(feature="no-std")]
40 use alloc::{vec::Vec, boxed::Box};
45 use alloc::str::FromStr;
46 use alloc::string::String;
47 use core::ffi::c_void;
48 use core::convert::Infallible;
49 use bitcoin::hashes::Hash;
50 use crate::c_types::*;
51 #[cfg(feature="no-std")]
52 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};
69 use alloc::str::FromStr;
70 use alloc::string::String;
71 use core::ffi::c_void;
72 use core::convert::Infallible;
73 use bitcoin::hashes::Hash;
74 use crate::c_types::*;
75 #[cfg(feature="no-std")]
76 use alloc::{vec::Vec, boxed::Box};
81 use alloc::str::FromStr;
82 use alloc::string::String;
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};
92 use alloc::str::FromStr;
93 use alloc::string::String;
94 use core::ffi::c_void;
95 use core::convert::Infallible;
96 use bitcoin::hashes::Hash;
97 use crate::c_types::*;
98 #[cfg(feature="no-std")]
99 use alloc::{vec::Vec, boxed::Box};
105 use alloc::str::FromStr;
106 use alloc::string::String;
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};
115 mod chacha20poly1305rfc {
117 use alloc::str::FromStr;
118 use alloc::string::String;
119 use core::ffi::c_void;
120 use core::convert::Infallible;
121 use bitcoin::hashes::Hash;
122 use crate::c_types::*;
123 #[cfg(feature="no-std")]
124 use alloc::{vec::Vec, boxed::Box};
126 mod real_chachapoly {
128 use alloc::str::FromStr;
129 use alloc::string::String;
130 use core::ffi::c_void;
131 use core::convert::Infallible;
132 use bitcoin::hashes::Hash;
133 use crate::c_types::*;
134 #[cfg(feature="no-std")]
135 use alloc::{vec::Vec, boxed::Box};
139 mod transaction_utils {
141 use alloc::str::FromStr;
142 use alloc::string::String;
143 use core::ffi::c_void;
144 use core::convert::Infallible;
145 use bitcoin::hashes::Hash;
146 use crate::c_types::*;
147 #[cfg(feature="no-std")]
148 use alloc::{vec::Vec, boxed::Box};
153 use alloc::str::FromStr;
154 use alloc::string::String;
155 use core::ffi::c_void;
156 use core::convert::Infallible;
157 use bitcoin::hashes::Hash;
158 use crate::c_types::*;
159 #[cfg(feature="no-std")]
160 use alloc::{vec::Vec, boxed::Box};
164 use alloc::str::FromStr;
165 use alloc::string::String;
166 use core::ffi::c_void;
167 use core::convert::Infallible;
168 use bitcoin::hashes::Hash;
169 use crate::c_types::*;
170 #[cfg(feature="no-std")]
171 use alloc::{vec::Vec, boxed::Box};
177 use alloc::str::FromStr;
178 use alloc::string::String;
179 use core::ffi::c_void;
180 use core::convert::Infallible;
181 use bitcoin::hashes::Hash;
182 use crate::c_types::*;
183 #[cfg(feature="no-std")]
184 use alloc::{vec::Vec, boxed::Box};
189 use alloc::str::FromStr;
190 use alloc::string::String;
191 use core::ffi::c_void;
192 use core::convert::Infallible;
193 use bitcoin::hashes::Hash;
194 use crate::c_types::*;
195 #[cfg(feature="no-std")]
196 use alloc::{vec::Vec, boxed::Box};
201 use alloc::str::FromStr;
202 use alloc::string::String;
203 use core::ffi::c_void;
204 use core::convert::Infallible;
205 use bitcoin::hashes::Hash;
206 use crate::c_types::*;
207 #[cfg(feature="no-std")]
208 use alloc::{vec::Vec, boxed::Box};