Write R1CS output to file in GenerateParams.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user