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
292 downloads per month
84KB
1.5K
SLoC
Cryptographic Utilities
Common cryptographic procedures for a blockchain environment.
[!WARNING] Note that
crypto
is still0.*.*
, so breaking changes may occur at any time. If you must depend oncrypto
, 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 still0.*.*
, so breaking changes may occur at any time. If you must depend oncrypto
, 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