0Pricing
Blockchain Smart Contracts with Solidity · 강의

옵티미스틱 롤업과 ZK 롤업 비교

옵티미스틱 롤업과 영지식 롤업을 비교하고 각각의 작동 방식과 장단점을 살펴봅니다.

옵티미스틱 롤업과 ZK 롤업 비교은(는) CoddyKit의 무료 Blockchain Smart Contracts with Solidity 강의입니다. 이것은 4개 중 2번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 Blockchain Smart Contracts with Solidity 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. Blockchain Smart Contracts with Solidity 강의에는 총 4개의 강의가 포함되어 있습니다.

이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.

Welcome to Rollups Deep Dive

In the previous lesson, we explored Layer 2 solutions for scaling blockchains. Today, we'll dive deeper into the two most prominent types of rollups: Optimistic Rollups and Zero-Knowledge (ZK) Rollups.

These technologies are crucial for making decentralized applications faster and cheaper to use.

What are Optimistic Rollups?

Optimistic Rollups operate on the assumption that all transactions processed off-chain are valid. They 'optimistically' believe everything is correct, without immediate cryptographic proof.

  • Transactions are bundled together off-chain.
  • A summary (state root) is posted to the Layer 1 (L1) blockchain.
  • This reduces L1 congestion and transaction costs significantly.

Fraud Proofs & Challenge Period

Since Optimistic Rollups don't verify transactions immediately, they rely on a challenge period. During this time (typically 7 days), anyone can submit a fraud proof if they detect an invalid transaction.

If fraud is proven, the invalid transaction is reverted, and the party responsible for the fraud is penalized.

Optimistic Withdrawal Delays

The challenge period creates a necessary delay for withdrawals. If you want to move assets from an Optimistic Rollup back to Layer 1, you must wait until the challenge period expires.

This ensures there's enough time for any potential fraud to be detected and proven, securing your funds.

Optimistic Rollups: Pros & Cons

Here's a quick look at the advantages and disadvantages:

  • Pros: Generally simpler to implement, highly compatible with the Ethereum Virtual Machine (EVM), allowing easy migration of existing dApps.
  • Cons: Long withdrawal delays (due to challenge period), requires active monitoring for fraud (though usually handled by network participants).

What are ZK-Rollups?

Zero-Knowledge (ZK) Rollups take a different approach. Instead of assuming validity, they use advanced cryptography to prove that transactions are valid before posting them to L1.

They generate a concise cryptographic proof (a 'validity proof') for a batch of off-chain transactions.

Validity Proofs in Action

When a ZK-Rollup processes transactions off-chain, it creates a special mathematical proof (like a ZK-SNARK or ZK-STARK). This proof confirms the correctness of all transactions in the batch without revealing any underlying data.

This proof is then submitted to L1, where it's instantly verified by a smart contract. If the proof is valid, the transactions are confirmed.

ZK-Rollups: Pros & Cons

Let's weigh the benefits and drawbacks of ZK-Rollups:

  • Pros: Instant finality (no withdrawal delay), stronger security guarantees (mathematically proven validity), potential for privacy features.
  • Cons: Extremely complex to build and maintain, high computational cost for generating proofs, historically less EVM-compatible (though ZK-EVMs are changing this).

Key Differences at a Glance

Here's a summary of the core distinctions between the two rollup types:

  • Verification: Optimistic uses fraud proofs (after the fact); ZK uses validity proofs (before the fact).
  • Withdrawals: Optimistic has a challenge period delay; ZK has immediate withdrawals.
  • Security: Optimistic relies on economic incentives and active monitoring; ZK relies on cryptographic certainty.

Choosing the Right Rollup

Both Optimistic and ZK Rollups offer significant scaling benefits, but their trade-offs make them suitable for different use cases:

  • Optimistic: Great for general-purpose dApps that benefit from EVM compatibility and can tolerate withdrawal delays.
  • ZK-Rollups: Ideal for applications requiring instant finality, high security, and potentially privacy, often at a higher development cost.

Test Your Knowledge!

Based on what you've learned, which statements correctly describe a key characteristic of either Optimistic or ZK Rollups?

Recap: Rollups Compared

We've explored the core differences between Optimistic and ZK Rollups. Optimistic Rollups assume validity and use fraud proofs with a challenge period, leading to withdrawal delays. ZK-Rollups use cryptographic validity proofs for instant verification and faster withdrawals.

Both are vital for scaling Ethereum, offering different balances of security, speed, and complexity for various decentralized applications.

자주 묻는 질문

“옵티미스틱 롤업과 ZK 롤업 비교” 강의는 무료인가요?

네 — “옵티미스틱 롤업과 ZK 롤업 비교” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 Blockchain Smart Contracts with Solidity 강의 전체를 잠금 해제할 수 있습니다. Blockchain Smart Contracts with Solidity 강의에는 총 4개의 강의가 포함되어 있습니다.

“옵티미스틱 롤업과 ZK 롤업 비교”에서 뭘 배우나요?

옵티미스틱 롤업과 영지식 롤업을 비교하고 각각의 작동 방식과 장단점을 살펴봅니다. 브라우저에서 직접 실행하는 실습 코드로 Blockchain Smart Contracts with Solidity을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.

Blockchain Smart Contracts with Solidity을(를) 시작하는 데 경험이 필요한가요?

사전 경험은 필요하지 않습니다. CoddyKit의 Blockchain Smart Contracts with Solidity은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 2번째 강의입니다.

“옵티미스틱 롤업과 ZK 롤업 비교” 강의는 얼마나 걸리나요?

대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.

이 Blockchain Smart Contracts with Solidity 강의에서 코드를 작성하고 실행할 수 있나요?

네. 모든 Blockchain Smart Contracts with Solidity 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.

이 강의의 모든 강의

  1. L2 확장 솔루션 입문
  2. 옵티미스틱 롤업과 ZK 롤업 비교
  3. 크로스체인 통신 및 브리지
  4. 데이터 가용성과 밸리디움
← Blockchain Smart Contracts with Solidity(으)로 돌아가기