getStorageNoncePublicKey method

Future<String> getStorageNoncePublicKey()

Implementation

Future<String> getStorageNoncePublicKey() async {
  const body = 'query {sharedSecrets {storageNoncePublicKey}}';
  _logger.fine('getStorageNoncePublicKey: requestHttp.body=$body');

  final result = await _client
      .withLogger(
        'getStorageNoncePublicKey',
      )
      .query(
        QueryOptions(
          document: gql(body),
          parserFn: (object) => SharedSecrets.fromJson(object),
        ),
      );

  manageLinkException(result);
  return result.parsedData!.storageNoncePublicKey ?? '';
}