Add zerocash tests and utilities.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
* @copyright MIT license (see LICENSE file)
|
||||
*****************************************************************************/
|
||||
|
||||
#include "libzerocash/IncrementalMerkleTree.h"
|
||||
#include "zerocash/IncrementalMerkleTree.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
#include "libsnark/common/utils.hpp"
|
||||
#include "libsnark/common/profiling.hpp"
|
||||
#include "libsnark/gadgetlib1/gadgets/hashes/sha256/sha256_gadget.hpp"
|
||||
#include "zerocash_pour_ppzksnark/zerocash_pour_gadget.hpp"
|
||||
#include "zerocash_pour_ppzksnark/zerocash_pour_ppzksnark.hpp"
|
||||
#include "zerocash/zerocash_pour_gadget.hpp"
|
||||
#include "zerocash/zerocash_pour_ppzksnark.hpp"
|
||||
|
||||
using namespace libzerocash;
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <stdio.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "tests/timer.h"
|
||||
#include "zerocash/tests/timer.h"
|
||||
|
||||
namespace libzerocash {
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
#define BOOST_TEST_MODULE utilTest
|
||||
#include <boost/test/included/unit_test.hpp>
|
||||
|
||||
#include "libzerocash/utils/util.h"
|
||||
#include "libzerocash/utils/sha256.h"
|
||||
#include "zerocash/utils/util.h"
|
||||
#include "zerocash/utils/sha256.h"
|
||||
|
||||
#define SHA256_PREIMAGE_BYTES 3
|
||||
const unsigned char sha256_preimage[SHA256_PREIMAGE_BYTES] = { 'a', 'b', 'c' };
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
|
||||
#include "timer.h"
|
||||
|
||||
#include "libzerocash/Zerocash.h"
|
||||
#include "libzerocash/ZerocashParams.h"
|
||||
#include "libzerocash/Address.h"
|
||||
#include "libzerocash/CoinCommitment.h"
|
||||
#include "libzerocash/Coin.h"
|
||||
#include "libzerocash/IncrementalMerkleTree.h"
|
||||
#include "libzerocash/MintTransaction.h"
|
||||
#include "libzerocash/PourTransaction.h"
|
||||
#include "libzerocash/PourInput.h"
|
||||
#include "libzerocash/PourOutput.h"
|
||||
#include "libzerocash/utils/util.h"
|
||||
#include "zerocash/Zerocash.h"
|
||||
#include "zerocash/ZerocashParams.h"
|
||||
#include "zerocash/Address.h"
|
||||
#include "zerocash/CoinCommitment.h"
|
||||
#include "zerocash/Coin.h"
|
||||
#include "zerocash/IncrementalMerkleTree.h"
|
||||
#include "zerocash/MintTransaction.h"
|
||||
#include "zerocash/PourTransaction.h"
|
||||
#include "zerocash/PourInput.h"
|
||||
#include "zerocash/PourOutput.h"
|
||||
#include "zerocash/utils/util.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace libsnark;
|
||||
|
||||
Reference in New Issue
Block a user