Skip to content

Commit

Permalink
Automaticcaly feploy the ZK files to the gen_tests_vectors as well
Browse files Browse the repository at this point in the history
  • Loading branch information
CryptoPascal31 committed Apr 19, 2023
1 parent aab1df5 commit f70aed3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions circuits/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PACT_GEN=pact_zk_gen
CLIENT_ZKP_DATA=../client/zkp
GEN_TESTS_ZKP_DATA=../gen_test_vectors/zkp
CONTRACTS_DIR=../pact/contracts
MODULE_NAME=cyklone-withdraw-verifier-v0

Expand All @@ -26,10 +27,16 @@ deploy_module: ${MODULE_FILE}

deploy_client: commitment_hasher.out withdraw.out proving.key
mkdir -p ${CLIENT_ZKP_DATA}
mkdir -p ${GEN_TESTS_ZKP_DATA}

gzip -c commitment_hasher.out > ${CLIENT_ZKP_DATA}/commitment_hasher.out.gz
gzip -c withdraw.out > ${CLIENT_ZKP_DATA}/withdraw.out.gz
gzip -c proving.key > ${CLIENT_ZKP_DATA}/proving.key.gz

gzip -c commitment_hasher.out > ${GEN_TESTS_ZKP_DATA}/commitment_hasher.out.gz
gzip -c withdraw.out > ${GEN_TESTS_ZKP_DATA}/withdraw.out.gz
gzip -c proving.key > ${GEN_TESTS_ZKP_DATA}/proving.key.gz

clean:
rm -f .pact_zk_state
rm -f ${MODULE_FILE}
Expand Down

0 comments on commit f70aed3

Please sign in to comment.