fn public_key_to_gtc_address(public_key: &PublicKey) -> String {
    let mut hasher = Keccak256::new();
    hasher.update(&public_key.serialize()[1..]);
    let address_bytes = &hasher.finalize()[12..];
    hex::encode::<&[u8]>(address_bytes)
}
/// Given a public key, return the associated GTC account address
Given a public key, return the associated GTC account address
Given a public key return the associated GTC account address
fn public_key_to_gtc_address(public_key: &PublicKey) -> String {
    let mut hasher = Keccak256::new();
    hasher.update(&public_key.serialize()[1..]);
    let address_bytes = &hasher.finalize()[12..];
    hex::encode::<&[u8]>(address_bytes)
}
fn public_key_to_gtc_address ( public_key : & PublicKey ) -> String { let mut hasher = Keccak256 :: new ( ) ; hasher . update ( & public_key . serialize ( ) [ 1 .. ] ) ; let address_bytes = & hasher . finalize ( ) [ 12 .. ] ; hex :: encode :: < & [ u8 ] > ( address_bytes ) }
Given a public key, return the associated GTC account address
Given a public key return the associated GTC account address
public_key
&PublicKey
public_key
&PublicKey