File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Verify
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ verify :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+ with :
14+ submodules : ' recursive'
15+ persist-credentials : false
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : 18
20+
21+ - name : Install SnarkJS
22+ run : |
23+ npm i -g snarkjs
24+
25+ - name : Install requirements
26+ run : |
27+ sudo apt install -y wget gzip
28+
29+ - name : Contribute
30+ run : |
31+ make verify WGET_ARGS=-q REMOVE_PARAMS=1
Original file line number Diff line number Diff line change @@ -9,6 +9,31 @@ CONTRIB_NAME := $(PREFIX)_$(NAME)
99WGET_ARGS := -q --show-progress
1010PERSONAL_NOTE := ""
1111
12+ verify :
13+ @echo " Downloading R1CS files..."
14+ wget -O proof_of_burn.r1cs.gz $(WGET_ARGS ) -c https://github.com/worm-privacy/trusted-setup/releases/download/circuit_data/proof_of_burn.r1cs.gz
15+ wget -O spend.r1cs.gz $(WGET_ARGS ) -c https://github.com/worm-privacy/trusted-setup/releases/download/circuit_data/spend.r1cs.gz
16+ gunzip proof_of_burn.r1cs.gz
17+ gunzip spend.r1cs.gz
18+
19+ @echo "Downloading parameter files..."
20+ @mkdir -p params_old
21+ cd params_old && wget -O params.tar.gz.aa $(WGET_ARGS) -c $(PARAMS).aa
22+ cd params_old && wget -O params.tar.gz.ab $(WGET_ARGS) -c $(PARAMS).ab
23+ cd params_old && wget -O params.tar.gz.ac $(WGET_ARGS) -c $(PARAMS).ac
24+ cd params_old && wget -O params.tar.gz.ad $(WGET_ARGS) -c $(PARAMS).ad
25+ cd params_old && wget -O params.tar.gz.ae $(WGET_ARGS) -c $(PARAMS).ae
26+ @echo "Extracting parameter files..."
27+ @cat params_old/params.tar.gz.a* > params_old/params.tar.gz
28+ @cd params_old && tar xzf params.tar.gz
29+ @if [ "$$REMOVE_PARAMS" != "" ]; then rm -rf params_old/*.tar.gz params_old/*.tar.gz.*; fi
30+
31+ @echo "Downloading Powers-of-Tau file..."
32+ wget -O powersOfTau28_hez_final_24.ptau $(WGET_ARGS) -c https://storage.googleapis.com/zkevm/ptau/powersOfTau28_hez_final_24.ptau
33+
34+ snarkjs zkey verify proof_of_burn.r1cs powersOfTau28_hez_final_24.ptau proof_of_burn.zkey
35+ snarkjs zkey verify spend.r1cs powersOfTau28_hez_final_24.ptau spend.zkey
36+
1237contribute :
1338 @echo " __ _____ ____ __ __ "
1439 @echo " \ \ / / _ \| _ \| \/ |"
You can’t perform that action at this time.
0 commit comments