toSuiBytes method
Returns the bytes representation of the public key prefixed with the signature scheme flag
Implementation
Uint8List toSuiBytes() {
final bytes = toRawBytes();
final suiPublicKey = Uint8List(bytes.length + 1);
suiPublicKey.setAll(0, [flag()]);
suiPublicKey.setAll(1, bytes);
return suiPublicKey;
}