Batch-sign local HTLC txn with a well-doc'd API, returning sigs
[rust-lightning] / lightning / src / util / mod.rs
index aab77035d387d452d469067329e6db9ad77a69e2..42c59b4536bbf9164f088e88257a702969e8270c 100644 (file)
@@ -1,5 +1,8 @@
 //! Some utility modules live here. See individual sub-modules for more info.
 
+#[macro_use]
+pub(crate) mod fuzz_wrappers;
+
 pub mod events;
 pub mod errors;
 pub mod ser;
@@ -23,5 +26,7 @@ pub mod config;
 #[cfg(test)]
 pub(crate) mod test_utils;
 
-#[macro_use]
-pub(crate) mod fuzz_wrappers;
+/// impls of traits that add exra enforcement on the way they're called. Useful for detecting state
+/// machine errors and used in fuzz targets and tests.
+#[cfg(any(test, feature = "fuzztarget"))]
+pub mod enforcing_trait_impls;