ethAddress function
Implementation
String ethAddress(PublicKey pubkey) {
final pk = pubkey as ECPublicKey;
sha3digest.reset();
final pub_bytes = pk.Q!.getEncoded(false);
final address_bytes = sha3digest.process(pub_bytes);
final hex_string = HEX.encode(address_bytes);
return '0x${hex_string.substring(24)}';
}