Batch-sign local HTLC txn with a well-doc'd API, returning sigs
[rust-lightning] / lightning / src / util / mod.rs
1 //! Some utility modules live here. See individual sub-modules for more info.
2
3 #[macro_use]
4 pub(crate) mod fuzz_wrappers;
5
6 pub mod events;
7 pub mod errors;
8 pub mod ser;
9
10 pub(crate) mod byte_utils;
11 pub(crate) mod chacha20;
12 #[cfg(not(feature = "fuzztarget"))]
13 pub(crate) mod poly1305;
14 pub(crate) mod chacha20poly1305rfc;
15 pub(crate) mod transaction_utils;
16
17 #[macro_use]
18 pub(crate) mod ser_macros;
19 #[macro_use]
20 pub(crate) mod macro_logger;
21
22 // These have to come after macro_logger to build
23 pub mod logger;
24 pub mod config;
25
26 #[cfg(test)]
27 pub(crate) mod test_utils;
28
29 /// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
30 /// machine errors and used in fuzz targets and tests.
31 #[cfg(any(test, feature = "fuzztarget"))]
32 pub mod enforcing_trait_impls;