This crate provides a Digest type for representing Ethereum 32-byte digests.
Just add a dependency to your Cargo.toml:
toml
[dependencies]
ethdigest = "*"
For complete documentation checkout docs.rs.
This crate provides a few features for fine-grained control of what gets included with the crate.
I want
#[no_std]!
toml
[dependencies]
ethaddr = { version = "*", default-features = false }
I want runtime Keccak-256 hashing utilities!
toml
[dependencies]
ethaddr = { version = "*", features = ["keccak"] }
I want a macro for compile-time
Digestliterals and compilt-time Keccak-256 hash computation, as well asserdesupport!
toml
[dependencies]
ethaddr = { version = "*", features = ["macros", "serde"] }