ZKsync is network of ZK rollups that communicate with each other and post their transaction data to Ethereum via ZKsync Era. ZKsync Era is a ZK rollup that posts batches of transactions to Ethereum with a validity proof that is verified on mainnet. The proof system and verification contracts have gone through several iterations and each version is listed below. The ZKsync Era query can be found here.
The inital proof system used for ZKsync Era's alpha version was a SNARK based system. The original Validator Timelock contract was used from March 2023 until the Boojum upgrade went live.
ZKsync Era launched the Boojum proof system in December 2023. This upgrade transitioned the proof system to a STARK based system with PLONK style arithmetization. There were several other notable improvements, including verifier optimizations and larger batch sizes. The Validator Timelock 2 contract was used from December 2023 until the Proto-Danksharding upgrade on mainnet.
The Validator Timelock contract was upgraded to handle blobs after the Proto-Danksharding upgrade (EIP-4844). The Validator Timelock 3 contract was used from March 2024 until the v24 protocol upgrade.
The v24 protocol upgrade was completed in June 2024. This upgrade launched the zkSync BridgeHub, which allows for interoperability between ZK Stack chains. A new Validator Timelock contract was deployed as part of the upgrade and is the current version.
The queries filter transactions sent to iterations of the Validator Timelock contracts that were successful and invoke proveBlocks or proveBatches.
The proof volume is the sum of proveBlocks or proveBatches function calls
The cost is calculated using the following formula:
Where:
is the amount of gas consumed by a trace in one of the verifiers
is the price of gas on the day of the transaction
is the average price of ETH in USD on the day of the transaction