pubKeyToArg method

Uint8List pubKeyToArg(
  1. Uint8List publicKey
)

Implementation

Uint8List pubKeyToArg(Uint8List publicKey) {
  final hash = Blake2b.getBlake2bHash(publicKey,
      personalization: ckb.CKB_HASH_PERSONALIZATION);
  return hash.sublist(0, 20);
}