toSuiAddress method
Return the Sui address associated with this Secp256 public key flag SIGNATURE_SCHEME_TO_FLAG
Implementation
@override
String toSuiAddress() {
final tmp = Uint8List(SECP256_PUBLIC_KEY_SIZE + 1);
tmp[0] = _flag;
tmp.setAll(1, toRawBytes());
final publicKey = Hex.encode(blake2b(tmp));
return normalizeSuiAddress(publicKey.substring(0, SUI_ADDRESS_LENGTH * 2));
}