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
| Module | Description |
|---|---|
error | Unified error::MerkleError enum |
traits | traits::HashFunction, traits::MerkleTree, traits::ProofVerifier, traits::Serializable |
types | types::LeafIndex, types::NodeIndex, types::MerkleProof, types::TreeMetadata, etc. |
§Quick start
ⓘ
use merkle_core::prelude::*;
// Any type implementing HashFunction can drive a tree:
// use merkle_hash::Sha256;
// let mut tree = BinaryMerkleTree::<Sha256>::new();