getInfoHash method

Future<String> getInfoHash()

Return the info-hash of the repository formatted as hex string. This can be used as a globally unique, non-secret identifier of the repository.

Implementation

Future<String> getInfoHash(
) async {
  final request = RequestRepositoryGetInfoHash(
    repo: handle,
  );
  final response = await client.invoke(request);
  switch (response) {
    case ResponseString(value: final value): return value;
    default: throw UnexpectedResponse();
  }
}