An implementation of a namespaced merkle tree in Rust.
This code has not been audited, and may contain critical vulnerabilities. Do not attempt to use in production.
-
Compute merkle root
-
Create index-based range proofs
-
Verify index-based range proofs
-
Create namespace range proofs
-
Verify namespace range proofs
-
Narrow namespace range proofs: supply part of the range to generate a proof for the remaining sub-range
Benchmarks use Criterion and cover tree construction, namespace proof generation, and proof verification/narrowing:
cargo bench # run everything
cargo bench -- nmt/verify # run benchmarks matching a filter
cargo bench --bench go_parity # counterparts of the celestiaorg/nmt Go benchmarksLicensed under the Apache License, Version 2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this repository by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.