Initialize libsodium in this routine, which is now necessary because libsnark uses its PRNG.
This commit is contained in:
parent
e9f9a73ab7
commit
1fad6b87e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue