publicKeyToAddress method

  1. @override
String publicKeyToAddress(
  1. Uint8List publicKey
)
override

Implementation

@override
String publicKeyToAddress(Uint8List publicKey) {
  final hash = publicKeyToBlack2bHash(publicKey);
  final slicedHash = hash.substring(0, SUI_ADDRESS_LENGTH * 2);
  return '0x${slicedHash.toLowerCase().padLeft(SUI_ADDRESS_LENGTH * 2, '0')}';
}