This crate provides a Digest
type for representing Ethereum 32-byte digests.
Additionally it includes macros for digest constants, both from hexidecimal
strings, but also by compile-time Keccak-256 hashing inputs. Under the hood,
they are implemented with const fn
and do not use procedural macros.
Just add a dependency to your Cargo.toml
:
[dependencies]
ethdigest = "*"
For complete documentation checkout docs.rs
.