4 releases

new 0.2.0-alpha.1 Nov 15, 2024
0.1.1 Oct 28, 2024
0.1.0 Oct 17, 2024
0.1.0-rc Aug 29, 2024

#46 in #merkle

Download history 94/week @ 2024-08-24 19/week @ 2024-08-31 18/week @ 2024-09-14 8/week @ 2024-09-21 7/week @ 2024-09-28 128/week @ 2024-10-12 21/week @ 2024-10-19 129/week @ 2024-10-26 14/week @ 2024-11-02

292 downloads per month

MIT license

84KB
1.5K SLoC

Cryptographic Utilities

Common cryptographic procedures for a blockchain environment.

[!WARNING] Note that crypto is still 0.*.*, so breaking changes may occur at any time. If you must depend on crypto, we recommend pinning to a specific version, i.e., =0.y.z.

Verifying Merkle Proofs

merkle.rs provides:

  • A verify function which can prove that some value is part of a Merkle tree.
  • A verify_multi_proof function which can prove multiple values are part of a Merkle tree.

Feature Flags

This crate exposes its modules behind feature gates to ensure the bare minimum is included in consumer codebases. You can check the current feature flags in the Cargo.toml file.

Security

Refer to our Security Policy for more details.


lib.rs:

Common cryptographic procedures for a blockchain environment.

Note that crypto is still 0.*.*, so breaking changes may occur at any time. If you must depend on crypto, we recommend pinning to a specific version, i.e., =0.y.z.

Verifying Merkle Proofs

merkle.rs provides:

  • A verify function which can prove that some value is part of a Merkle tree.
  • A verify_multi_proof function which can prove multiple values are part of a Merkle tree.

Dependencies

~1.2–1.7MB
~38K SLoC