ethAddressFromPublicKey function

String ethAddressFromPublicKey(
  1. Uint8List publicKey
)

Implementation

String ethAddressFromPublicKey(Uint8List publicKey) {
  final publicKeyDecompressed = decompressPublicKey(publicKey);
  return EthereumAddress.fromPublicKey(publicKeyDecompressed!.sublist(1)).hex;
}