getRSASignerFromUuid static method

Future<RSASigner> getRSASignerFromUuid(
  1. String uuid
)

Returns the RSA signer object from given uuid

Implementation

static Future<RSASigner> getRSASignerFromUuid(String uuid) async {
  var isCorrectUuid =
      await _channel.invokeMethod('checkUuid', {'uuid': uuid});
  if (isCorrectUuid) {
    return RSASigner(uuid);
  } else {
    throw IncorrectUuidException(
        'There are no keys associated with this UUID saved on the device');
  }
}