getCurrentPubKey method
Returns currently used public key for RSA signer.
Implementation
Future<String> getCurrentPubKey() async {
var isCorrectUuid =
await _channel.invokeMethod('checkUuid', {'uuid': uuid});
if (isCorrectUuid) {
var key =
await _channel.invokeMethod("getRSAKey", {'alias': "${uuid}_0_rsa"});
return key;
} else {
throw IncorrectUuidException(
'There are no keys associated with this UUID saved on the device');
}
}