Address.fromPublicKey constructor

Address.fromPublicKey(
  1. Uint8List publicKey
)

Implementation

factory Address.fromPublicKey(Uint8List publicKey) {
  assert(publicKey.lengthInBytes == kPublicKeyLength);

  final coreBytes = utils.digest(
    data: publicKey,
    digestSize: kAddressCoreSize,
  );
  return Address.user(coreBytes);
}