Convert a public key into an address using the last 20 bytes of the hash ```rust use utils::crypto::{keypair, public_key_address}; let (private_key, public_key) = keypair(); let address = public_key_address(&public_key); ```
(key: &PublicKey)
| 107 | /// let address = public_key_address(&public_key); |
| 108 | /// ``` |
| 109 | pub fn public_key_address(key: &PublicKey) -> H160 { |
| 110 | to_address(&key.serialize_uncompressed()) |
| 111 | } |
| 112 | |
| 113 | /// Convert a private key into an address using the last 20 bytes of the hash |
| 114 | /// |