Added public zkSNARK parameter generation utility.

This commit is contained in:
Sean Bowe
2016-05-04 18:26:24 -06:00
parent 2dc3599271
commit 5975bf1c32
3 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
#include "zcash/JoinSplit.hpp"
#include <iostream>
int main(int argc, char **argv)
{
if(argc != 3) {
std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName" << std::endl;
return 1;
}
std::string pkFile = argv[1];
std::string vkFile = argv[2];
auto p = ZCJoinSplit::Generate();
p->saveProvingKey(pkFile);
p->saveVerifyingKey(vkFile);
return 0;
}