moonproof-utils 0.2.2

Shared helpers (hex parsing, validation) used across moonproof crates. Mirror of midnight-js/packages/utils.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shared helpers used across moonproof crates.
//!
//! Mirror of `midnight-js/packages/utils` — narrow surface focused
//! on the bits actually duplicated across crates today (hex parsing
//! / validation). Anything more domain-specific belongs in the
//! consuming crate, not here.

pub mod events;
pub mod hash;
pub mod hex;
pub mod rt;
pub mod state;

pub use events::{EventBus, DEFAULT_CAPACITY};
pub use hash::{sha256, sha256_dir, sha256_file, sha256_file_hex, sha256_hex, Sha256Builder};
pub use hex::{is_hex, parse_hex, parse_hex_n, to_hex, to_hex_prefixed, HexError};
pub use state::StateCell;