Skip to main content

Crate merkle_core

Crate merkle_core 

Source
Expand description

§merkle-core

Shared traits, types, and error handling for the MerkleForge workspace.

This crate is the foundation that every other crate in the workspace depends on. It contains no concrete tree logic — that lives in merkle-variants. Keeping the core abstract allows merkle-bench and future crates to import only this lightweight foundation.

§Contents

§Quick start

use merkle_core::prelude::*;

// Any type implementing HashFunction can drive a tree:
// use merkle_hash::Sha256;
// let mut tree = BinaryMerkleTree::<Sha256>::new();

Modules§

error
merkle-core :: error
prelude
Re-exports of the most commonly used items.
traits
All core traits for the MerkleForge workspace.
types
Common types used across all tree variants.