toSuiBytes method
Raw public key bytes 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;
}