Skip to content

I want to calculate how many groth16 proofs we can fit in a block #757

Answered by popzxc
guha-rahul asked this question in General
Discussion options

You must be logged in to vote

ZKsync has several different criteria for sealing L1 batches, including L1 block capacity (mostly relevant for pubdata), crypto backend capabilities, and L2 gas. You can find the implementation details here.

I assume that for Groth16 the most relevant part would be L2 gas, so here some info:

  • block.gaslimit is (1 << 50). block.gaslimit here stands for gas limit for L1 batch (e.g. it's the same across all the L2 blocks).
  • Our API server is configured to limit gas available to a single transaction. Right now, the transactions with gas limit set to the values more than 4000000000 will be rejected by the API. It's not a protocol limitation though, just a preventive measure agains DoS.

I'm not…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by popzxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
2 participants