verity_ic::crypto::ethereum

Function get_address_from_public_key

source
pub fn get_address_from_public_key(
    public_key: Vec<u8>,
) -> Result<String, String>
Expand description

Convert a compressed SEC1 public key (33 bytes) to an Ethereum address (20 bytes)