From 133495a87406ac23f9a0ec1318668013972c0fb1 Mon Sep 17 00:00:00 2001 From: Kristin Kirkov Date: Wed, 10 Jul 2024 11:41:53 +0300 Subject: [PATCH] refactor(circom): Use correct bash function to generate the zkey --- beacon-light-client/circom/scripts/light_client/light_client.sh | 2 +- .../scripts/light_client_recursive/light_client_recursive.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-light-client/circom/scripts/light_client/light_client.sh b/beacon-light-client/circom/scripts/light_client/light_client.sh index 6b78a6a80..adae6c2dd 100755 --- a/beacon-light-client/circom/scripts/light_client/light_client.sh +++ b/beacon-light-client/circom/scripts/light_client/light_client.sh @@ -27,7 +27,7 @@ git submodule update --init --recursive (compile_cpp_witness "${BUILD_DIR}" "${CIRCUIT_NAME}") # ****CREATE FINAL ZKEY**** -(verify_final_key "${BUILD_DIR}" "${SNARKJS}" "${CIRCUIT_NAME}" "${PHASE1}") +(generate_zkey "${BUILD_DIR}" "${SNARKJS}" "${PHASE1}" "${CIRCUIT_NAME}") # ****EXPORT ZKEY TO JSON**** (export_vkey "${BUILD_DIR}" "${SNARKJS}" "${CIRCUIT_NAME}") diff --git a/beacon-light-client/circom/scripts/light_client_recursive/light_client_recursive.sh b/beacon-light-client/circom/scripts/light_client_recursive/light_client_recursive.sh index 9b274094e..23cb90cea 100755 --- a/beacon-light-client/circom/scripts/light_client_recursive/light_client_recursive.sh +++ b/beacon-light-client/circom/scripts/light_client_recursive/light_client_recursive.sh @@ -27,7 +27,7 @@ git submodule update --init --recursive (compile_cpp_witness "${BUILD_DIR}" "${CIRCUIT_NAME}") # ****CREATE FINAL ZKEY**** -(verify_final_key "${BUILD_DIR}" "${SNARKJS}" "${CIRCUIT_NAME}" "${PHASE1}") +(generate_zkey "${BUILD_DIR}" "${SNARKJS}" "${PHASE1}" "${CIRCUIT_NAME}") # ****EXPORT ZKEY TO JSON**** (export_vkey "${BUILD_DIR}" "${SNARKJS}" "${CIRCUIT_NAME}")