publicKeyToHash static method

List<int> publicKeyToHash(
  1. List<int> pubKeyBytes
)

Convert a public key byte list to a hash byte list.

pubKeyBytes: The public key byte list.

Returns a hash byte list.

Implementation

static List<int> publicKeyToHash(List<int> pubKeyBytes) {
  final pubKeyObj = AddrKeyValidator.validateAndGetEd25519Key(pubKeyBytes);
  return QuickCrypto.blake2b224Hash(pubKeyObj.compressed.sublist(1));
}