레이어 2 (Layer 2)

레이어 2(L2) 솔루션은 블록체인 네트워크의 확장성을 개선하기 위해 설계된 기술 집합입니다. 이러한 솔루션은 기본 블록체인 외부에서 트랜잭션을 처리하여 성능 향상 및 비용 최적화에 기여합니다.

레이어 2 솔루션은 확장성 문제를 해결하기 위해 기존 블록체인(레이어 1) 위에 구축된 프로토콜입니다. 주요 기능은 기본 블록체인이 처리할 수 있는 것보다 더 많은 트랜잭션을 보다 효율적으로 처리하는 것이며, 이는 피크 시간대에 과부하가 발생할 수 있습니다. 이는 트랜잭션 처리를 메인 체인 외부로 이동하여 메인 네트워크의 부하를 줄임으로써 달성됩니다.

롤업(예: optimistic 및 zk-rollups), 상태 채널 및 사이드체인을 포함한 여러 레이어 2 기술이 있습니다. 각 접근 방식은 보안, 탈중앙화 및 트랜잭션 처리량과 관련하여 다양한 절충점을 가지고 있습니다. 예를 들어, 롤업은 여러 트랜잭션을 하나로 집계하여 레이어 1으로 보내는 반면, 상태 채널은 두 당사자 간에 여러 오프체인 트랜잭션을 허용합니다.

레이어 2 솔루션의 장점으로는 트랜잭션 속도 증가, 수수료 감소, 전반적인 네트워크 처리량 증가 등이 있습니다. 메인 체인의 혼잡을 줄임으로써 레이어 2 솔루션은 사용자 경험을 크게 개선하고 탈중앙화 금융(DeFi) 및 대체 불가능한 토큰(NFT)을 포함한 더 광범위한 애플리케이션을 가능하게 할 수 있습니다. 이는 EthereumBitcoin과 같은 블록체인 네트워크의 장기적인 확장성과 지속 가능성에 매우 중요합니다.

다양한 레이어 2 솔루션은 다양한 방법을 사용합니다. Optimistic rollups는 기본적으로 트랜잭션이 유효하다고 가정하고 사기가 감지된 경우에만 이의를 제기하는 반면, zk-rollups는 트랜잭션을 검증하기 위해 영지식 증명을 사용합니다. 사이드체인은 메인 체인에 연결된 별도의 블록체인으로 작동하여 더 많은 유연성을 제공합니다. Bitcoin의 Lightning Network와 같은 상태 채널은 참가자 간의 빠른 오프체인 트랜잭션을 가능하게 하며 마이크로 트랜잭션에 이상적입니다.

        graph LR
  Center["레이어 2 (Layer 2)"]:::main
  Rel_modular_blockchain["modular-blockchain"]:::related -.-> Center
  click Rel_modular_blockchain "/terms/modular-blockchain"
  Rel_rollups["rollups"]:::related -.-> Center
  click Rel_rollups "/terms/rollups"
  Rel_decentralized_application_dapp["decentralized-application-dapp"]:::related -.-> Center
  click Rel_decentralized_application_dapp "/terms/decentralized-application-dapp"
  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;

      

🧠 지식 테스트

1 / 3

🧒 5살도 이해할 수 있게 설명

🏢 Imagine a busy bank ([Layer 1](/ko/terms/layer-1)) that is very slow because every single person has to talk to the main manager. Layer 2 is like a team of tellers who work in a smaller office next door. They handle all the daily deposits and withdrawals on their own fast tablets. At the end of the day, they send one single summary of all the changes to the main manager. You get the speed of the tellers but the safety of the big bank.

🤓 Expert Deep Dive

The security of L2 solutions is intrinsically linked to the L1 security. State Channels and Plasma rely on participants actively monitoring and submitting fraud proofs or challenging invalid states, making them susceptible to liveness issues if participants become inactive. Optimistic Rollups offer strong security guarantees as long as at least one honest validator exists to submit fraud proofs during the challenge period; however, this period introduces a delay in finality. ZK-Rollups provide the strongest security guarantees through cryptographic validity proofs, ensuring that only correctly executed state transitions are committed to L1, offering faster finality but often involving higher computational complexity for proof generation and potentially larger data footprints per transaction compared to Optimistic Rollups. The choice between these architectures involves a trade-off between security assumptions, latency, throughput, and computational overhead.

📚 출처