State Channel
상태 채널은 두 개 이상의 당사자 간의 통신 채널로, 오프체인 거래를 허용하여 온체인 상호 작용을 최소화하여 확장성을 개선하고 비용을 절감합니다.
상태 채널을 통해 참가자는 여러 거래를 오프체인으로 실행하고 최종 상태만 블록체인에 제출할 수 있습니다. 이렇게 하면 메인 체인의 부하가 크게 줄어들어 거래 시간이 빨라지고 수수료가 낮아집니다. 참가자는 보안 예금 역할을 하는 블록체인상의 다중 서명 계약에 일정 금액의 자금을 잠급니다. 그런 다음 상태 업데이트를 나타내는 서명된 메시지를 교환합니다. 모든 오프체인 거래의 순 결과를 반영하는 최종 상태만 결제를 위해 블록체인에 브로드캐스트됩니다.
상태 채널은 마이크로 결제, 게임, 탈중앙화 거래소 등 높은 거래 처리량을 요구하는 애플리케이션에 특히 유용합니다. 거래 처리의 상당 부분을 오프체인으로 이동하여 기본 블록체인의 보안 보증을 유지하면서 블록체인 확장성의 제한을 우회하는 방법을 제공합니다.
🛡️ Trust Score
✅ 검증된 기술 정보
- • State channels require an on-chain multisig contract to open and close.
- • Updates in a state channel are signed by all participants and kept off-chain.
- • Fraud in a state channel is prevented by a time-locked challenge window.
- • The Lightning Network is the most widely adopted implementation of payment channels.
graph LR
Center["State Channel"]:::main
Pre_blockchain_basics["blockchain-basics"]:::pre --> Center
click Pre_blockchain_basics "/terms/blockchain-basics"
Pre_smart_contract["smart-contract"]:::pre --> Center
click Pre_smart_contract "/terms/smart-contract"
Pre_multisig_wallet["multisig-wallet"]:::pre --> Center
click Pre_multisig_wallet "/terms/multisig-wallet"
Rel_layer_2["layer-2"]:::related -.-> Center
click Rel_layer_2 "/terms/layer-2"
Rel_sidechains["sidechains"]:::related -.-> Center
click Rel_sidechains "/terms/sidechains"
Rel_rollups["rollups"]:::related -.-> Center
click Rel_rollups "/terms/rollups"
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;
🧒 5살도 이해할 수 있게 설명
🚜 Imagine you and a friend want to play a game with many small bets. Instead of writing down every single bet in a public ledger (which costs money and time), you both put some money in a safe. You write each bet on a piece of paper that you both sign. When you're done, you take only the *last* signed paper to the safe to take out your winnings. If your friend tries to lie, you show the signed paper to the judge to prove who actually won.
🤓 Expert Deep Dive
State channel architecture relies on Hashed Timelock Contracts (HTLCs) for secure routing and atomic swaps across multiple channels. The security model is built on Economic Finality: since any participant can unilaterally close the channel by submitting the latest valid state, off-chain updates are as secure as the on-chain settlement mechanism. A critical component is the Dispute Window/Challenge Period: if a malicious actor submits an outdated state (e.g., an earlier one where they had more balance), the honest party must submit the newer, revoking state within the challenge window. This requirement necessitates Liveness (being online) or the use of Watchtowers (third-party services that monitor the chain for fraud). Technically, state channels differ from rollups because they don't post every transaction's data to Layer 1, resulting in higher privacy and lower costs but higher participant overhead.
❓ 자주 묻는 질문
Are state channels safe if I go offline?
Only if you use a 'Watchtower' service or return within the challenge period. If someone tries to close the channel with an old state while you are away and the challenge period expires, their fraudulent state will be accepted.
What is the most famous example of a state channel?
The Lightning Network on Bitcoin is the most prominent implementation, enabling fast and cheap BTC payments globally.