Skip to content
Sovereign-LabsPublic

About

An implementation of a namespaced merkle tree in Rust.

Resources

Stars

33 stars

Watchers

3 watching

Forks

Repository files navigation

codecov

NMT

An implementation of a namespaced merkle tree in Rust.

Warning

This code has not been audited, and may contain critical vulnerabilities. Do not attempt to use in production.

Functionality

  • 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

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 benchmarks

License

Licensed 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.

About

An implementation of a namespaced merkle tree in Rust.

Resources

Stars

33 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages