ethAddress static method
return a ETH Address
Implementation
static String ethAddress(ECPublicKey pubkey) {
assert(pubkey.Q != null);
sha3digest.reset();
final pubBytes = pubkey.Q!.getEncoded(false);
final addressBytes = sha3digest.process(pubBytes);
final hexString = HEX.encode(addressBytes);
return '0x${hexString.substring(24)}';
}