Crate grovedb_merk
source ·Expand description
High-performance Merkle key/value store
Re-exports
pub use ed;
pub use error::Error;
pub use proofs::query::execute_proof;
pub use proofs::query::verify_query;
pub use tree::BatchEntry;
pub use tree::Link;
pub use tree::MerkBatch;
pub use tree::Op;
pub use tree::PanicSource;
pub use tree::HASH_BLOCK_SIZE;
pub use tree::HASH_BLOCK_SIZE_U32;
pub use tree::HASH_LENGTH;
pub use tree::HASH_LENGTH_U32;
pub use tree::HASH_LENGTH_U32_X2;
pub use tree::CryptoHash;
pub use tree::TreeFeatureType;
Modules
- Errors Errors
- Estimated costs Estimated costs for Merk
- Provides a container type that allows temporarily taking ownership of a value. Owner
- Algorithms for generating and verifying Merkle proofs. Merk proofs
- Various helpers useful for tests or benchmarks. Test utils
- The core tree data structure. Merk trees
Structs
- A
ChunkProducer
allows the creation of chunk proofs, used for trustlessly replicating entire Merk trees. Chunks can be generated on the fly in a random order, or iterated in order for slightly better performance. - KVIterator allows you to lazily iterate over each kv pair of a subtree
- A handle to a Merkle key/value store backed by RocksDB.
- Merk options
- Proof construction result
- Proof without encoding result
- A
Restorer
handles decoding, verifying, and storing chunk proofs to replicate an entire Merk tree. It expects the chunks to be processed in order, retrying the last chunk if verification fails. - Visualizeable Merk
Enums
- Merk types
Constants
- Root key key
Type Definitions
- A bool type
- Root hash key and sum