src/test/test_bitcoin
src/qt/test/test_bitcoin-qt
+# zerocash tests and utilities
+src/zerocash/GenerateParamsForFiles
+src/zerocash/tests/merkleTest
+src/zerocash/tests/utilTest
+src/zerocash/tests/zerocashTest
+src/zerocash/tests/test_zerocash_pour_ppzksnark
+
# autoreconf
Makefile.in
aclocal.m4
if ENABLE_QT_TESTS
include Makefile.qttest.include
endif
+
+include Makefile.zcash.include
--- /dev/null
+bin_PROGRAMS += \
+ zerocash/GenerateParamsForFiles \
+ zerocash/tests/merkleTest \
+ zerocash/tests/utilTest \
+ zerocash/tests/zerocashTest \
+ zerocash/tests/test_zerocash_pour_ppzksnark
+
+# tool for generating our public parameters
+zerocash_GenerateParamsForFiles_SOURCES = zerocash/GenerateParamsForFiles.cpp
+zerocash_GenerateParamsForFiles_LDADD = \
+ $(BOOST_LIBS) \
+ $(LIBZEROCASH) \
+ $(LIBZEROCASH_LIBS)
+
+# tests for our incremental merkle tree
+zerocash_tests_merkleTest_SOURCES = zerocash/tests/merkleTest.cpp
+zerocash_tests_merkleTest_LDADD = \
+ $(BOOST_LIBS) \
+ $(LIBZEROCASH) \
+ $(LIBZEROCASH_LIBS)
+
+# tests for utilities that come with zerocash
+zerocash_tests_utilTest_SOURCES = zerocash/tests/utilTest.cpp
+zerocash_tests_utilTest_LDADD = \
+ $(BOOST_LIBS) \
+ $(LIBZEROCASH) \
+ $(LIBZEROCASH_LIBS)
+
+# tests for libzerocash APIs
+zerocash_tests_zerocashTest_SOURCES = \
+ zerocash/tests/zerocashTest.cpp \
+ zerocash/tests/timer.cpp
+
+zerocash_tests_zerocashTest_LDADD = \
+ $(BOOST_LIBS) \
+ $(LIBZEROCASH) \
+ $(LIBZEROCASH_LIBS)
+
+# tests for our zkSNARK circuit
+
+zerocash_tests_test_zerocash_pour_ppzksnark_SOURCES = zerocash/tests/test_zerocash_pour_ppzksnark.cpp
+zerocash_tests_test_zerocash_pour_ppzksnark_LDADD = \
+ $(BOOST_LIBS) \
+ $(LIBZEROCASH) \
+ $(LIBZEROCASH_LIBS)
+
#include "ZerocashParams.h"
#include "libsnark/common/default_types/r1cs_ppzksnark_pp.hpp"
#include "libsnark/zk_proof_systems/ppzksnark/r1cs_ppzksnark/r1cs_ppzksnark.hpp"
-#include "zerocash_pour_ppzksnark/zerocash_pour_gadget.hpp"
-#include "zerocash_pour_ppzksnark/zerocash_pour_ppzksnark.hpp"
using namespace libzerocash;
* @copyright MIT license (see LICENSE file)
*****************************************************************************/
-#include "libzerocash/IncrementalMerkleTree.h"
+#include "zerocash/IncrementalMerkleTree.h"
#include <iostream>
#include <vector>
#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;
#include <stdio.h>
#include <sys/time.h>
-#include "tests/timer.h"
+#include "zerocash/tests/timer.h"
namespace libzerocash {
#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' };
#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;