ci: lets bring it more donw

This commit is contained in:
Adam Uhlíř 2023-12-20 16:36:16 +01:00
parent a89c483a66
commit eb50f4b87d
No known key found for this signature in database
GPG Key ID: 1D17A9E81F76155B

View File

@ -37,10 +37,10 @@ on:
nCells:
description: 'Number of cells in this slot'
default: '512'
ceremonyContribution:
description: 'Input into the circuit ceremony setup'
default: 'Let the Codex rock!'
#
# ceremonyContribution:
# description: 'Input into the circuit ceremony setup'
# default: 'Let the Codex rock!'
env:
nim_version: 1.6.14
@ -102,9 +102,10 @@ jobs:
run: |
wget -O ceremony.ptau -P .. ${{ env.ceremony_source }}
NODE_OPTIONS="--max-old-space-size=8192" snarkjs groth16 setup proof_main.r1cs ../ceremony.ptau proof_main_0000.zkey
NODE_OPTIONS="--max-old-space-size=8192" snarkjs zkey contribute proof_main_0000.zkey proof_main_0001.zkey --name="External Contribution" -e="${{ github.event.inputs.ceremonyContribution }}"
rm proof_main_0000.zkey
mv proof_main_0001.zkey proof_main.zkey
# NODE_OPTIONS="--max-old-space-size=8192" snarkjs zkey contribute proof_main_0000.zkey proof_main_0001.zkey --name="External Contribution" -e="${{ github.event.inputs.ceremonyContribution }}"
# rm proof_main_0000.zkey
mv proof_main_0000.zkey proof_main.zkey
# mv proof_main_0001.zkey proof_main.zkey
snarkjs zkey export verificationkey proof_main.zkey proof_main_verification_key.json
snarkjs zkey export solidityverifier proof_main.zkey verifier.sol
cd ..