3 releases
new 0.1.1 | Oct 28, 2024 |
---|---|
0.1.0 | Oct 17, 2024 |
0.1.0-rc | Aug 29, 2024 |
#800 in Magic Beans
157 downloads per month
39KB
405 lines
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
~55KB