secp256k1PubKeyToAddress static method

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

Implementation

static List<int> secp256k1PubKeyToAddress(List<int> pubkeyBytes) {
  final pubkey = AddrKeyValidator.validateAndGetSecp256k1Key(pubkeyBytes);
  return QuickCrypto.hash160(pubkey.compressed);
}