rollups

Rollups are Layer-2 scaling solutions that execute transactions off-chain and then bundle transaction data into a single transaction on the main chain, improving throughput and reducing costs.

Rollups are a category of Layer-2 scaling solutions designed to enhance the transaction processing capacity and reduce the operational costs of underlying blockchains, most notably Ethereum. They achieve this by moving the execution of transactions off the main chain (Layer-1) while ensuring that the resulting transaction data is still anchored to the Layer-1 for security and verifiability. The process involves collecting numerous transactions, executing them in an off-chain environment, and then bundling this data into a compressed format. This compressed batch is then submitted as a single transaction to the Layer-1 blockchain. This drastically reduces the data load and computational burden on the main chain, allowing for significantly higher transaction throughput and lower fees compared to processing each transaction directly on Layer-1. There are two primary implementations: Optimistic Rollups and Zero-Knowledge (ZK) Rollups. Optimistic Rollups operate under the assumption that transactions are valid unless proven otherwise within a specific 'challenge period,' during which 'fraud proofs' can be submitted. ZK-Rollups, on the other hand, utilize cryptographic 'validity proofs' (like SNARKs or STARKs) to mathematically guarantee the correctness of the off-chain computations before the data is posted to Layer-1. Each type presents different trade-offs regarding security assumptions, finality times, computational requirements, and withdrawal periods.

        graph LR
  Center["rollups"]:::main
  Pre_logic["logic"]:::pre --> Center
  click Pre_logic "/terms/logic"
  Rel_bridges["bridges"]:::related -.-> Center
  click Rel_bridges "/terms/bridges"
  Rel_layer_1["layer-1"]:::related -.-> Center
  click Rel_layer_1 "/terms/layer-1"
  Rel_optimistic_rollup["optimistic-rollup"]:::related -.-> Center
  click Rel_optimistic_rollup "/terms/optimistic-rollup"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 Explain Like I'm 5

Think of rollups like a group of friends doing many small chores together off to the side, then reporting back to the main boss with a single summary of all the work done, saving the boss a lot of time and effort.

🤓 Expert Deep Dive

Rollups represent a key strategy in the blockchain scalability trilemma, prioritizing scalability and security at the expense of decentralization in some aspects (e.g., sequencer centralization). The fundamental design relies on the principle of 'somewhere' (computation off-chain) and 'settlement' (data posted and verified on Layer-1). Data availability is a critical component; rollups must ensure that the transaction data is accessible on Layer-1 (or via a decentralized data availability layer) so that verifiers can reconstruct the state and generate proofs or challenge invalid transitions. For Optimistic Rollups, the security model is based on the assumption that at least one honest party will monitor the state and submit fraud proofs if necessary. For ZK-Rollups, security is derived from the cryptographic integrity of the zero-knowledge proofs, which are computationally infeasible to forge. The choice between Optimistic and ZK rollups involves a complex analysis of factors including proof system maturity, prover costs, verifier costs on L1, and the desired user experience regarding finality and withdrawals.

🔗 Related Terms

Prerequisites:

📚 Sources