]> Git Repo - VerusCoin.git/commitdiff
Add zerocash tests and utilities.
authorSean Bowe <[email protected]>
Tue, 16 Feb 2016 05:57:55 +0000 (22:57 -0700)
committerSean Bowe <[email protected]>
Tue, 16 Feb 2016 05:57:55 +0000 (22:57 -0700)
.gitignore
src/Makefile.am
src/Makefile.zcash.include [new file with mode: 0644]
src/zerocash/GenerateParamsForFiles.cpp
src/zerocash/tests/merkleTest.cpp
src/zerocash/tests/test_zerocash_pour_ppzksnark.cpp
src/zerocash/tests/timer.cpp
src/zerocash/tests/utilTest.cpp
src/zerocash/tests/zerocashTest.cpp

index c20f4faa86ff80375980e59df194c07e16443da3..2d9cda84da7c472cf6c6019214552cdc70b27477 100644 (file)
@@ -8,6 +8,13 @@ src/bitcoin-tx
 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
index 922374ce0b3f3701e8124f127bd2852e38e57a0d..2d9b0aac41ca2f6b99d98cb9c22bde5de21aaa60 100644 (file)
@@ -487,3 +487,5 @@ endif
 if ENABLE_QT_TESTS
 include Makefile.qttest.include
 endif
+
+include Makefile.zcash.include
diff --git a/src/Makefile.zcash.include b/src/Makefile.zcash.include
new file mode 100644 (file)
index 0000000..ccf4b31
--- /dev/null
@@ -0,0 +1,46 @@
+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)
+
index 555e3e263f90a7ee8adf3cca042d36539f861ed2..12965b91f9d90b5dd3fa07c9794cd6a7db18223e 100644 (file)
@@ -15,8 +15,6 @@
 #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;
 
index 6df3509c9037c0590d08745ee668033e1c740d7a..9be66cc9f47501a7c8f47be7d24f6dc95c70235e 100644 (file)
@@ -9,7 +9,7 @@
  * @copyright  MIT license (see LICENSE file)
  *****************************************************************************/
 
-#include "libzerocash/IncrementalMerkleTree.h"
+#include "zerocash/IncrementalMerkleTree.h"
 
 #include <iostream>
 #include <vector>
index dedb97c778c33001c4f197060e342495424643b3..4c8ad2241bae633eafbc18f12f36e7a496238e46 100644 (file)
@@ -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;
 
index ec9f21f86722048f611a9de2fb0c7ee8bc1c8560..b5642f68179c4b850f536419f7be553a82b4457c 100644 (file)
@@ -12,7 +12,7 @@
 #include <stdio.h>
 #include <sys/time.h>
 
-#include "tests/timer.h"
+#include "zerocash/tests/timer.h"
 
 namespace libzerocash {
 
index 6a76f7bb3aefb265adc62a7c42bdee25f45d02d1..6374b350a596beb9eac44f371f9f404d1fbafba5 100644 (file)
@@ -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' };
index 5095eba50895b87e1aa2031d545ab32046365306..749273299ce40cc3eaebb3bb34e4231cf46c43df 100644 (file)
 
 #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;
This page took 0.037195 seconds and 4 git commands to generate.