moonproof_utils/lib.rs
1//! Shared helpers used across moonproof crates.
2//!
3//! Mirror of `midnight-js/packages/utils` — narrow surface focused
4//! on the bits actually duplicated across crates today (hex parsing
5//! / validation). Anything more domain-specific belongs in the
6//! consuming crate, not here.
7
8pub mod events;
9pub mod hash;
10pub mod hex;
11pub mod rt;
12pub mod state;
13
14pub use events::{EventBus, DEFAULT_CAPACITY};
15pub use hash::{sha256, sha256_dir, sha256_file, sha256_file_hex, sha256_hex, Sha256Builder};
16pub use hex::{is_hex, parse_hex, parse_hex_n, to_hex, to_hex_prefixed, HexError};
17pub use state::StateCell;