[−][src]Type Definition ethers_core::types::Address
type Address = H160;
Trait Implementations
impl<'_> From<&'_ PrivateKey> for Address
[src]
fn from(src: &PrivateKey) -> Address
[src]
impl<'_> From<&'_ PublicKey> for Address
[src]
Gets the address of a public key.
The public address is defined as the low 20 bytes of the keccak hash of
the public key. Note that the public key returned from the secp256k1
crate is 65 bytes long, that is because it is prefixed by 0x04
to
indicate an uncompressed public key; this first byte is ignored when
computing the hash.