Expand description
§zeldhash-protocol
A Rust implementation of the ZELDHASH(ZELD) 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 ZELD protocol. It focuses purely on the protocol logic, allowing you to integrate it with any Bitcoin block source and any storage backend.
§Quick Start
ⓘ
use zeldhash_protocol::{ZeldProtocol, ZeldConfig, ZeldStore};
let protocol = ZeldProtocol::new(ZeldConfig::default());
// Pre-process blocks (parallelizable)
let zeld_block = protocol.pre_process_block(&bitcoin_block);
// Process blocks sequentially
protocol.process_block(&zeld_block, &mut store);Re-exports§
pub use config::ZeldConfig;pub use config::ZeldNetwork;pub use protocol::ZeldProtocol;pub use store::ZeldStore;pub use types::Amount;pub use types::Balance;pub use types::PreProcessedZeldBlock;pub use types::UtxoKey;pub use types::ZeldInput;pub use types::ZeldOutput;pub use types::ZeldTransaction;