rollups
Rollupy to rozwiązania skalowania warstwy 2, które wykonują transakcje poza łańcuchem, a następnie łączą dane transakcji w jedną transakcję w głównym łańcuchu, poprawiając przepustowość i obniżając koszty.
Rollupy zwiększają skalowalność blockchaina, przetwarzając transakcje poza głównym blockchainem (Layer 1). Łączą one wiele transakcji w jedną transakcję, która następnie jest przesyłana do Layer 1, zmniejszając obciążenie obliczeniowe głównego łańcucha. Takie podejście znacznie zwiększa przepustowość transakcji i obniża opłaty za gaz dla użytkowników. Istnieją dwa główne typy rollupów: optimistic i zero-knowledge (ZK) rollupy, z których każdy ma różne kompromisy pod względem bezpieczeństwa, szybkości i złożoności.
Optimistic rollupy domyślnie zakładają, że transakcje są ważne i wykonują dowody oszustwa tylko wtedy, gdy transakcja jest kwestionowana. ZK-rollupy z drugiej strony używają dowodów kryptograficznych do walidacji transakcji, zapewniając silniejsze gwarancje bezpieczeństwa, ale często z wyższym obciążeniem obliczeniowym. Wybór między tymi typami rollupów zależy od wymagań i priorytetów konkretnej aplikacji.
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;
🧠 Sprawdzenie wiedzy
🧒 Wyjaśnij jak 5-latkowi
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.