Skip to content

Commit

Permalink
chore: update params.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Sep 26, 2024
1 parent 4247eab commit 88cab83
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/prover/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/prover/circom_proofgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down
4 changes: 4 additions & 0 deletions packages/prover/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion packages/prover/local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 88cab83

Please sign in to comment.