Polygon to Optimism Rollup where blocks in the Polygon ZKEVM rollup are batched, compressed and posted to Optimism Goerli Testnet
The project aims to demonstrate the integration of two powerful scaling solutions in the Ethereum ecosystem: Polygon and Optimism. Specifically, it involves running the Polygon ZK-EVM rollup, a layer 2 scaling solution that leverages zero-knowledge proofs to achieve high scalability and low transaction costs.
The transaction data processed on the ZK-EVM rollup will be posted on the Optimism Goerli Testnet. Optimism is another layer 2 scaling solution that uses optimistic rollups to achieve high throughput and low transaction fees. By posting the rollup data on Optimism Goerli Testnet, it provides an opportunity to observe how the two scaling solutions can complement each other and potentially improve the overall performance of the Ethereum network.
Overall, this project serves as a proof-of-concept for integrating and testing the interoperability of different scaling solutions. It also highlights the potential for using multiple scaling solutions to achieve even greater scalability, security, and decentralization for the Ethereum ecosystem.
Nuts & Bolts
Optimism : Taking advantage of Optimism's Bedrock feature, the contracts in this repository (https://github.com/0xPolygonHermez/zkevm-contracts) with minor tweaks to function in the Optimism Goerli Testnet .
Polygon ZKEVM : The code for the rollup was forked from this repository (https://github.com/0xPolygonHermez/zkevm-node) and the L1 values which point to Ethereum Goerli were changed to adapt to the Optimism Goerli network.
To run the rollup locally requires the ZKEVM node, ZKEVM Prover, sequencer and DB to be powered up as well. The sequencer produces RPC endpoints for the rollup which is used to transact and deploy contracts on the rollup.
Why is this not in production
The instructions for running ZK Prover and sequencer in production are not public yet. ZK Prover requires 1TB of RAM ?! as per the Polygon docs. This is something I cannot afford.
ZK Node requires an Intel based computer with high RAM. It doesn't work on WSL/WSL2 & AMD-powered machines.