Skip to content

Commit

Permalink
Update groth16 verifier and zkey
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Dec 28, 2024
1 parent 7727876 commit 8d77aa1
Show file tree
Hide file tree
Showing 7 changed files with 89 additions and 88 deletions.
5 changes: 3 additions & 2 deletions packages/contracts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ $ yarn test

Run integration tests

Before running integration tests, you need to make a `packages/contracts/test/build_integration` directory, download the zip file from the following link, and place its unzipped directory under that directory.
https://drive.google.com/file/d/1XDPFIL5YK8JzLGoTjmHLXO9zMDjSQcJH/view?usp=sharing
Before running integration tests, you need to make a `packages/contracts/test/build_integration` directory, download wasm and zkey files from the following link, and place its unzipped directory under that directory.
- https://storage.googleapis.com/circom-ether-email-auth/v1.1.0/email_auth.zkey
- https://storage.googleapis.com/circom-ether-email-auth/v1.0.2/email_auth.wasm

Then, move `email_auth_with_body_parsing_with_qp_encoding.zkey` and `email_auth_with_body_parsing_with_qp_encoding.wasm` in the unzipped directory `params` to `build_integration`.

Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zk-email/ether-email-auth-contracts",
"version": "1.0.3",
"version": "1.1.0",
"license": "MIT",
"scripts": {
"build": "forge build --skip '*ZKSync*'",
Expand Down
160 changes: 80 additions & 80 deletions packages/contracts/src/utils/Groth16Verifier.sol

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/prover/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN ls /root
RUN mkdir params
WORKDIR /root/params

RUN curl https://storage.googleapis.com/circom-ether-email-auth/v1.0.2/email_auth_prod1.zkey --output ./email_auth.zkey
RUN curl https://storage.googleapis.com/circom-ether-email-auth/v1.1.0/email_auth.zkey --output ./email_auth.zkey
# RUN curl https://storage.googleapis.com/circom-ether-email-auth/v1.0.2/email_auth.wasm --output ./email_auth.wasm
RUN mkdir ./email_auth_cpp
WORKDIR /root/params/email_auth_cpp
Expand Down
2 changes: 1 addition & 1 deletion packages/prover/local_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ npm install -g snarkjs@latest
pip install -r requirements.txt
mkdir build && cd build
# gdown "https://drive.google.com/uc?id=1XDPFIL5YK8JzLGoTjmHLXO9zMDjSQcJH"
curl https://storage.googleapis.com/circom-ether-email-auth/v1.0.2/email_auth_prod1.zkey --output ./email_auth.zkey
curl https://storage.googleapis.com/circom-ether-email-auth/v1.1.0/email_auth.zkey --output ./email_auth.zkey
mkdir ./email_auth_cpp
cd ./email_auth_cpp
curl https://storage.googleapis.com/circom-ether-email-auth/v1.0.2/email_auth --output ./email_auth
Expand Down
2 changes: 1 addition & 1 deletion packages/prover/modal_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from google.cloud.logging_v2.handlers import setup_logging
from google.oauth2 import service_account

app = modal.App("email-auth-prover-v1.5.4")
app = modal.App("email-auth-prover-v1.6.0")

image = modal.Image.from_dockerfile("Dockerfile")

Expand Down
4 changes: 2 additions & 2 deletions packages/relayer/src/abis/user_overridable_dkim_registry.rs

Large diffs are not rendered by default.

0 comments on commit 8d77aa1

Please sign in to comment.