Bitcoin Layer 2 Explained: How Lightning, Sidechains, and Rollups Differ
6 min read · · Korean original
Contents 4
If you want to send small amounts of bitcoin often, paying a fee every time and waiting for each transaction to be confirmed can get frustrating. Beyond simply sending bitcoin to other people, you may also want to put it up as collateral or use it in financial services. Bitcoin Layer 2 refers to technologies that aim to meet these needs.
The core idea is to process transactions or add features outside Bitcoin's base network. However, not every project introduced as a "Bitcoin Layer 2" works the same way. Lightning, which uses payment channels, and sidechains, which run independent blockchains, differ from the ground up in how they handle assets and verify transactions.
Why Bitcoin Needs Layer 2
Bitcoin's base network is called Layer 1, and the layer outside it that helps process transactions or extends its functionality is called Layer 2. The starting point is to move some of the processing off the base network instead of recording every single transaction on it, reducing the workload the base network has to carry.
It's easier to understand if you picture a situation with repeated payments. Instead of recording every payment between two people on the blockchain, they update their balances in a separate payment channel and settle when the channel is closed. With this structure, each payment inside the channel doesn't have to wait as much for confirmation on the base network.
Besides payments, there is also demand for running programs. If smart contracts, which move assets according to predefined conditions, are run on a separate network, you can build decentralized finance (DeFi) services such as lending. Speeding up payments and running financial services are different goals, so it would be a mistake to assume every Layer 2 supports both equally.
How Lightning, Sidechains, and Rollups Work Differently
To tell the three apart, look at where transactions are processed and what is used to verify the results. Sidechains in particular are independent blockchains that run on their own consensus mechanisms, so just because one is described as connected to Bitcoin doesn't mean its security structure is the same.
Payment Channels and Balances on the Lightning Network
The Lightning Network uses payment channels. You open a channel, send and receive payments within it, and when the channel is closed, the final balance is reflected on Bitcoin's base network. The key point is that not every payment inside the channel is recorded as a separate Bitcoin transaction.
That said, the route used to send a payment needs enough funds. Even if you hold bitcoin, a transfer can fail if the channel used for the payment doesn't have enough funds. When thinking about Lightning, you should consider not only its fast processing speed but also the channel funds available for payments.
Independent Ledgers and Asset Links on Sidechains
A sidechain is a separate blockchain with its own ledger and consensus mechanism. The mechanism that links assets between Bitcoin and a sidechain is called a bridge. While Lightning works by changing balances in payment channels, transactions on a sidechain are recorded on a separate blockchain.
The Liquid Network is an example that shows this difference. It uses Liquid Bitcoin (L-BTC), which is pegged 1:1 to bitcoin, and transactions are processed within Liquid's own ledger and verification structure. Here, 1:1 refers to the ratio at which the assets are linked; it does not mean Liquid's operating structure is the same as Bitcoin's base network.
How Rollups Bundle and Verify Transactions
A rollup processes multiple transactions off-chain and then submits the transaction data or the processing results to the base layer in a bundle. Even though it processes transactions in a separate environment like a sidechain does, the way it links results back to the base layer is different.
Simply saying it "bundles transactions" doesn't tell you enough about the structure. You also need to know which chain the results are submitted to and how incorrectly processed transactions are caught. The fact that a Bitcoin-related project uses rollup technology and the claim that Bitcoin directly verifies those transactions should be read as two separate things.
What Major Projects Are For, and Where BOB Fits In
When looking at major projects, it's easier to sort them by what they are designed to do rather than memorizing names. Lightning is an example for understanding a transfer structure built on payment channels, and Liquid is an example of a sidechain that uses a separate ledger and verification system.
Rootstock is an example of running smart contracts on a sidechain connected to Bitcoin. It uses Smart Bitcoin (RBTC) and provides an environment that can run Ethereum-style smart contracts. It's an approach that goes beyond sending bitcoin to handling assets through programs.
Stacks is also a project that deals with smart contracts and applications connected to Bitcoin. Projects like this can be introduced alongside Lightning, but you shouldn't think of them as having the same structure as payment channels. Sharing the trait of "belonging to the Bitcoin ecosystem" is a separate matter from how they actually process transactions.
BOB (Build on Bitcoin) is a good next example when you want to understand execution environments compatible with the Ethereum Virtual Machine (EVM). The connection is that developers can write smart contracts in Solidity, the language used on Ethereum. You can read more about how it's put together in our earlier post, "What Is BOB, the Bitcoin Layer 2 Solution?"
Security and Withdrawal Conditions on Bitcoin Layer 2
Being connected to Bitcoin doesn't by itself mean your assets are protected exactly as they would be on Bitcoin's base network. A separate network adds parties that verify transactions and mechanisms that link assets. In exchange for lower transaction costs or added features, you are also accepting the conditions that come with that structure.
If your goal is payments, Lightning's channel structure and funding constraints are what matter most. If your goal is to use smart contracts, what matters is which asset you use on the separate network and how the process of converting that asset back into bitcoin is set up. A description of fast processing alone isn't enough to judge whether something suits both purposes.
Using Layer 2 also doesn't guarantee returns from financial services. The question of how a network processes transactions and the question of how lending or swap programs running on top of it handle assets should be looked at separately. You need to understand not just how a network connects to the base layer, but also how the service you'll actually use works.
The starting point for telling Bitcoin Layer 2s apart is simple. First, sort them by whether they are channels for payments, independently running chains, or structures that bundle transactions and submit them to the base layer. After that, if you read them based on how assets are held, verified, and returned rather than on speed, the differences between projects become much clearer.