#ethereum #stylus #arbitrum

no-std openzeppelin-crypto

Cryptography Utilities

2 releases

new 0.1.0 Oct 17, 2024
0.1.0-rc Aug 29, 2024

#10 in #arbitrum

33 downloads per month

MIT license

39KB
405 lines

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

~250KB