Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step 15 Setup Command Failed #520

Open
DhruvPareek opened this issue Aug 30, 2024 · 1 comment
Open

Step 15 Setup Command Failed #520

DhruvPareek opened this issue Aug 30, 2024 · 1 comment

Comments

@DhruvPareek
Copy link

Running the Step 15 command node --max-old-space-size=614400 ./node_modules/.bin/snarkjs fflonk setup TwitterVerifier.r1cs powersOfTau28_hez_final_25.ptau TwiteerVerifier.zkey on a circuit with roughly 7.5 million constraints (I'm recreating the ZKEmail proof of twitter circuit). I've replaced powersOfTau28_hez_final_25.ptau with powersOfTau28_hez_final_23.ptau and powersOfTau28_hez_final_24.ptau and I get the following error:
Screenshot 2024-08-29 at 5 21 29 PM

If instead I run the command: node --max-old-space-size=614400 ./node_modules/.bin/snarkjs plonk setup TwitterVerifier.r1cs powersOfTau28_hez_final_24.ptau TwiteerVerifier.zkey, I get the following error:
Screenshot_2024-08-29_at_1 32 07_PM

I'm running this on an AWS EC2 instance with 32vCPUs and 64GB of RAM. I don't understand why the fflonk command fails despite the circuit size being within the constraints of the ptau file. I also don't understand what the plonk command's error means, although it seems like it should be a memory issue?

@Arvolear
Copy link
Contributor

Arvolear commented Sep 4, 2024

Hey, the issue with fflonk is that this proving system requires PTAU file size to accommodate for circuit gates * 9 constraints. 7.5 mln * 9 = 67.5 mln so you need at least PTAU 27.

From the fflonk paper.

image

The issue with plonk is that you ran out of memory. 7.5 mln constraints may indeed eat more than 64 GB of RAM... Yet don't take this for granted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants