ethSecp256k1PubKeyToAddress static method

List<int> ethSecp256k1PubKeyToAddress(
  1. List<int> pubkeyBytes
)

Implementation

static List<int> ethSecp256k1PubKeyToAddress(List<int> pubkeyBytes) {
  final pubkey = AddrKeyValidator.validateAndGetSecp256k1Key(pubkeyBytes);
  return QuickCrypto.keccack256Hash(pubkey.uncompressed.sublist(1))
      .sublist(12);
}