private async Task <byte[]> Decrypt(Guid vuid, byte[] cipher) { var dnsUrls = (await Repo.GetListOrks()).Select(url => new Uri(url)).First(); var dnsClient = new DnsClient(dnsUrls); var(orkUrls, _) = await dnsClient.GetInfo(vuid); if (!orkUrls.Any()) { throw new Exception("Invalid ID or orks not configured"); } var flow = new DCryptFlow(vuid, orkUrls); return(await flow.Decrypt(Config.PrivateKey, cipher)); }