1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # mhinprotocol
//!
//! A Rust implementation of the **MY HASH IS NICE (MHIN)** protocol — a system
//! that rewards Bitcoin transactions with aesthetically pleasing transaction IDs
//! (those starting with leading zeros).
//!
//! ## Overview
//!
//! This library provides a database-agnostic and block parser-agnostic
//! implementation of the MHIN protocol. It focuses purely on the protocol logic,
//! allowing you to integrate it with any Bitcoin block source and any storage backend.
//!
//! ## Quick Start
//!
//! ```rust,ignore
//! use mhinprotocol::{MhinProtocol, MhinConfig, MhinStore};
//!
//! let protocol = MhinProtocol::new(MhinConfig::default());
//!
//! // Pre-process blocks (parallelizable)
//! let mhin_block = protocol.pre_process_block(&bitcoin_block);
//!
//! // Process blocks sequentially
//! protocol.process_block(&mhin_block, &mut store);
//! ```
/// Protocol configuration.
/// Core protocol implementation.
/// Storage trait abstraction.
/// Core types used by the protocol.
pub use ;
pub use MhinProtocol;
pub use MhinStore;
pub use ;