Function alloy_signer::utils::raw_public_key_to_address
source · pub fn raw_public_key_to_address(pubkey: &[u8]) -> Address
Expand description
Convert a raw, uncompressed public key to its corresponding Ethereum address.
§Warning
This method does not verify that the public key is valid. It is the caller’s responsibility to pass a valid public key. Passing an invalid public key will produce an unspendable output.
§Panics
This function panics if the input is not exactly 64 bytes.