Skip to main content

How Does the Size of the Zero-Knowledge Proof Affect Layer 1 Gas Costs?

The size of the zero-knowledge proof directly impacts the Layer 1 gas costs because the proof data must be published and verified on the main chain. Smaller proofs require less data to be stored and less computation for the Layer 1 smart contract to verify, resulting in lower gas fees.

This is a primary reason why zk-SNARKs are favored for their small proof size, as it contributes significantly to the cost-efficiency of the rollup.

Where Is the Merkle Root Stored in a Blockchain Block?
Why Are Smaller, Less-Established Cryptocurrencies More Vulnerable to a 51% Attack?
What Are the Trade-Offs between the Size of a ZKP and the Verification Time?
How Does This Concept Relate to a Zero-Knowledge Proof?