signWithIntent method
Implementation
SignatureWithBytes signWithIntent(Uint8List bytes, IntentScope intent) {
final intentMessage = messageWithIntent(intent, bytes);
final digest = blake2b(intentMessage);
final signature = toSerializedSignature(
getKeyScheme(),
sign(digest),
getPublicKey()
);
return SignatureWithBytes(
signature,
base64Encode(bytes)
);
}