publicKeyToAddress static method

Uint8List publicKeyToAddress(
  1. Uint8List publicKey
)

Implementation

static Uint8List publicKeyToAddress(Uint8List publicKey) {
  assert(publicKey.length == 64);
  final hashed = keccak256(publicKey);
  assert(hashed.length == 32);
  return hashed.sublist(12, 32);
}