ソースを参照

verifenc now saves its keys and proofs in files that include the number of verifencs in their names

Ian Goldberg 4 年 前
コミット
2774a78d59
1 ファイル変更3 行追加3 行削除
  1. 3 3
      verifenc.cpp

+ 3 - 3
verifenc.cpp

@@ -369,13 +369,13 @@ int main(int argc, char **argv)
 //  cout << "Auxiliary (private) input: " << pb.auxiliary_input() << endl;
   cout << "Verification status: " << verified << endl;
 
-  ofstream pkfile(string("pk_verifenc_") + argv[1]);
+  ofstream pkfile(string("pk_verifenc_") + argv[1] + "_" + to_string(numverifencs));
   pkfile << keypair.pk;
   pkfile.close();
-  ofstream vkfile(string("vk_verifenc_") + argv[1]);
+  ofstream vkfile(string("vk_verifenc_") + argv[1] + "_" + to_string(numverifencs));
   vkfile << keypair.vk;
   vkfile.close();
-  ofstream pffile(string("proof_verifenc_") + argv[1]);
+  ofstream pffile(string("proof_verifenc_") + argv[1] + "_" + to_string(numverifencs));
   pffile << proof;
   pffile.close();