Layer 1 solutions involve changes to the core blockchain protocol to improve transaction throughput, speed, and efficiency. These upgrades are implemented directly on the main blockchain.
What is it?
Sharding splits the blockchain network into smaller parts called “shards.” Each shard processes its own transactions and smart contracts, operating as a mini-blockchain with its own data and state.
How does it work?
Instead of every node processing every transaction, nodes are assigned to specific shards. Shards work in parallel, greatly increasing the network’s capacity and reducing congestion.
Ethereum Example:
Ethereum’s sharding (part of Ethereum 2.0) aims to increase throughput from about 15 transactions per second (TPS) to potentially 100,000 TPS.
Benefits:
Parallel processing of transactions
Reduced gas fees and latency
Improved scalability and network efficiency
What is it?
SegWit is a protocol upgrade that separates the “witness” (signature) data from transaction data in each block3.
How does it work?
By moving signature data outside the main block, SegWit increases the effective block capacity without increasing the block size limit. This allows more transactions per block and fixes transaction malleability.
Bitcoin Example:
SegWit was activated on Bitcoin in 2017, enabling more efficient transactions and making the Lightning Network possible3.
Benefits:
Increased block capacity and throughput
Lower transaction fees
Enhanced security and flexibility for future upgrades
What is it?
A hard fork is a radical change to a blockchain’s protocol that creates a new, incompatible version of the blockchain4.
How does it work?
When a hard fork occurs, the blockchain splits into two: one following the old rules, and one following the new. This allows for major upgrades in scalability, security, or functionality.
Examples:
Bitcoin Cash forked from Bitcoin to allow larger block sizes.
Ethereum has used hard forks for upgrades like Constantinople and Istanbul.
Benefits:
Enables fundamental improvements
Can address security, performance, and scalability issues
Layer 2 solutions operate on top of the main blockchain, handling transactions off-chain and settling only the final state on the main chain. This dramatically increases throughput and reduces costs.
What is it?
State channels allow two or more parties to transact off-chain, recording only the opening and closing balances on the blockchain.
How does it work?
Parties lock funds in a multi-signature contract on the main chain.
They transact privately and instantly off-chain, updating balances as needed.
When finished, the final state is submitted to the blockchain, minimizing on-chain transactions.
Bitcoin Example:
The Lightning Network enables fast, low-cost Bitcoin payments by using state channels.
Benefits:
Near-instant, low-fee transactions
High scalability for microtransactions
Improved privacy
Sidechains:
What are they?
Independent blockchains running parallel to the main chain, with their own consensus mechanisms and rules.
How do they work?
Assets can be transferred between the main chain and sidechain. Sidechains process transactions independently, reducing congestion on the main chain.
Examples:
Bitcoin’s Liquid Network for faster, confidential transactions.
Polygon (formerly Matic) as a sidechain for Ethereum, supporting high-throughput dApps.
Benefits:
Enhanced scalability and flexibility
Customizable environments for specific applications
Lower transaction fees
Plasma Chains:
What are they?
Secondary chains (child chains) attached to the main Ethereum chain, processing transactions off-chain and periodically submitting proofs to the main chain.
How do they work?
Plasma chains bundle many transactions, reducing the load on the main chain.
Users can exit to the main chain if needed, ensuring security.
Benefits:
Increased transaction capacity
Lower fees
Customizability for dApps