Skip to content

Commit

Permalink
Merge pull request #8 from codex-storage/feature/include-verification…
Browse files Browse the repository at this point in the history
…-key

Includes verification key json in output zip
  • Loading branch information
benbierens authored Mar 18, 2024
2 parents 61789ca + 037f286 commit 479bd33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ env:
circuit_file: workflow/build/proof_main.zkey
constraints_file: workflow/build/proof_main.r1cs
wasm_file: workflow/build/proof_main_js/proof_main.wasm
verification_key_file: workflow/build/proof_main_verification_key.json
zip_file: workflow/build/proof_circuit.zip
storage_url: https://circuit.codex.storage

Expand Down Expand Up @@ -136,7 +137,7 @@ jobs:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
run: |
# Zip
zip -qj ${{ env.zip_file }} ${{ env.circuit_file }} ${{ env.constraints_file }} ${{ env.wasm_file }}
zip -qj ${{ env.zip_file }} ${{ env.circuit_file }} ${{ env.constraints_file }} ${{ env.wasm_file }} ${{ env.verification_key_file }}
# Variables
hash=($(shasum -a 256 ${{ env.zip_file }}))
[[ -z "${{ env.s3_bucket_path}}" ]] && storage_file="${hash}" || storage_file="${{ env.s3_bucket_path}}/${hash}"
Expand Down

0 comments on commit 479bd33

Please sign in to comment.