sign method
Sign message with signature and return SignedMessage. signature receives from KeyStore.sign where data is UnsignedMessage.hash
Implementation
Future<SignedMessage> sign({required String signature}) async {
final encoded = await message.sign(signature: signature);
final decoded = jsonDecode(encoded) as Map<String, dynamic>;
return SignedMessage.fromJson(decoded);
}