getUuid method

Future<String> getUuid()

Returns the uuid of Ed25519 signer.

Implementation

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