Write R1CS output to file in GenerateParams.

This commit is contained in:
Sean Bowe
2016-09-14 15:57:54 -06:00
parent 0163f8faa2
commit 0a958ae7f6
3 changed files with 16 additions and 4 deletions

View File

@@ -9,18 +9,20 @@ int main(int argc, char **argv)
return 1;
}
if(argc != 3) {
std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName" << std::endl;
if(argc != 4) {
std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName r1csFileName" << std::endl;
return 1;
}
std::string pkFile = argv[1];
std::string vkFile = argv[2];
std::string r1csFile = argv[3];
auto p = ZCJoinSplit::Generate();
p->saveProvingKey(pkFile);
p->saveVerifyingKey(vkFile);
p->saveR1CS(r1csFile);
delete p;