reth::primitives::transaction::util::secp256k1

Function public_key_to_address

pub fn public_key_to_address(public: PublicKey) -> Address
Available on crate feature secp256k1 only.
Expand description

Converts a public key into an ethereum address by hashing the encoded public key with keccak256.