Documentation

Decrypts a file with a topic AES key. This is not available in CircleService, but is in CoreL2.

Arguments

The Circle ID, the Topic ID, and the inner and outer file paths. 

Returns

Whether the action was successful or not.

API Definition

public async Task<DecryptFileReply> DecryptFile(DecryptFileRequest request)

C# Structures

public class DecryptFileRequest

{

  public string CircleId;

  public string TopicId;

  public string InFilePath;

  public string OutFilePath;

}

public class DecryptFileReply

{

  public ReturnStatus Status;

}

C# Example code:

public void DecryptFile(string circleId, string topicId, string inFile, string outfile)

{

  DecryptFileRequest request = new DecryptFileRequest()

    { CircleId = circleId, TopicId = topicId, InFilePath = inFile, OutFilePath = outfile};

  DecryptFileReply reply = _circle.DecryptFile(request);

  if (reply.Status.Result)

  {

    Console.WriteLine(reply.Status.Message);

  }

  else

    Console.WriteLine(reply.Status.Message);

   }