reth_primitives_traits::crypto::secp256k1

Function public_key_to_address

Source
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.