Switch Sha256 to using bitcoin_hashes and our own HKDF
[rust-lightning] / src / util / mod.rs
index 008a9e1d7e1e0649b4fe07d92f1f2e142751adcc..78886f11e673f2f5c4c73900109f172411fa33ec 100644 (file)
@@ -1,14 +1,26 @@
+//! Some utility modules live here. See individual sub-modules for more info.
+
 pub mod events;
+pub mod errors;
+pub mod ser;
 
 pub(crate) mod byte_utils;
 pub(crate) mod chacha20poly1305rfc;
 pub(crate) mod internal_traits;
 pub(crate) mod rng;
-pub(crate) mod sha2;
 pub(crate) mod transaction_utils;
 
+#[macro_use]
+pub(crate) mod ser_macros;
+#[macro_use]
+pub(crate) mod macro_logger;
+
+// These have to come after macro_logger to build
+pub mod logger;
+pub mod config;
+
 #[cfg(feature = "fuzztarget")]
-pub use self::rng::reset_rng_state;
+pub use self::rng::{reset_rng_state, fill_bytes};
 
 #[cfg(test)]
 pub(crate) mod test_utils;