Initialize libsodium in this routine, which is now necessary because libsnark uses its PRNG.

This commit is contained in:
Sean Bowe
2016-07-15 10:45:22 -06:00
parent e9f9a73ab7
commit 1fad6b87e5

View File

@@ -1,9 +1,14 @@
#include "zcash/JoinSplit.hpp"
#include <iostream>
#include "sodium.h"
int main(int argc, char **argv)
{
if (sodium_init() == -1) {
return 1;
}
if(argc != 3) {
std::cerr << "Usage: " << argv[0] << " provingKeyFileName verificationKeyFileName" << std::endl;
return 1;