diff --git a/packages/prover/Dockerfile b/packages/prover/Dockerfile index 25cfa7f7..7f3f9e51 100644 --- a/packages/prover/Dockerfile +++ b/packages/prover/Dockerfile @@ -39,12 +39,11 @@ RUN git clone -b feat/gpu https://github.com/zkemail/ether-email-auth.git WORKDIR /ether-email-auth/packages/prover RUN pip install -r requirements.txt RUN cp ./circom_proofgen.sh /root -RUN cp ./email_auth_with_body_parsing_with_qp_encoding /root WORKDIR /root RUN ls /root RUN mkdir params WORKDIR /root/params -RUN gdown "https://drive.google.com/uc?id=1XDPFIL5YK8JzLGoTjmHLXO9zMDjSQcJH" +RUN gdown "https://drive.google.com/uc?id=1l3mNqFYv-YZc2efFlphFUkoaCnGCxFtE" RUN unzip params.zip RUN mv params/* /root/params WORKDIR /root diff --git a/packages/prover/circom_proofgen.sh b/packages/prover/circom_proofgen.sh index 07315087..cb9870b7 100755 --- a/packages/prover/circom_proofgen.sh +++ b/packages/prover/circom_proofgen.sh @@ -21,7 +21,7 @@ public_path="${buildDir}/rapidsnark_public_${circuitName}_${nonce}.json" cd "${SCRIPT_DIR}" echo "entered zk email path: ${SCRIPT_DIR}" -./email_auth_with_body_parsing_with_qp_encoding "${input_path}" "${witness_path}" | tee /dev/stderr +./${paramsDir}/${circuitName}_cpp/${circuitName} "${input_path}" "${witness_path}" | tee /dev/stderr status_jswitgen=$? echo "✓ Finished witness generation with cpp! ${status_jswitgen}" diff --git a/packages/prover/core.py b/packages/prover/core.py index a65469e2..47826faf 100644 --- a/packages/prover/core.py +++ b/packages/prover/core.py @@ -33,9 +33,13 @@ def store_input(circuit_name: str, nonce: str, json_data: dict): ) print(f"Json file path: {json_file_path}") print(f"Json data: {json_data}") + print(f"Json data type: {type(json_data)}") # logger.info(f"Store user input to {json_file_path}") with open(json_file_path, "w") as json_file: json_file.write(json.dumps(json_data)) + # Read the file back + with open(json_file_path, "r") as json_file: + print(json_file.read()) print("Stored input") diff --git a/packages/prover/email_auth_with_body_parsing_with_qp_encoding b/packages/prover/email_auth_with_body_parsing_with_qp_encoding deleted file mode 100755 index 4f802e76..00000000 Binary files a/packages/prover/email_auth_with_body_parsing_with_qp_encoding and /dev/null differ diff --git a/packages/prover/local_setup.sh b/packages/prover/local_setup.sh index 9de24df2..026f0cfb 100755 --- a/packages/prover/local_setup.sh +++ b/packages/prover/local_setup.sh @@ -6,6 +6,6 @@ mkdir -p build npm install -g snarkjs@latest pip install -r requirements.txt mkdir build && cd build -gdown "https://drive.google.com/uc?id=1XDPFIL5YK8JzLGoTjmHLXO9zMDjSQcJH" +gdown "https://drive.google.com/uc?id=1l3mNqFYv-YZc2efFlphFUkoaCnGCxFtE" unzip params.zip chmod +x circom_proofgen.sh