The hype around blockchain technologies may have quieted, but the builders are still building. The toughest technical problems that kept blockchain from mass adoption over the past few years—slow and expensive transactions—are being solved by layer 2s. zkEVMs, and Linea in particular, are a key part of this solution.
Let’s look at layer 2s on Ethereum—their architecture, why they are needed, what zkEVMs are and how they work, and the details of the new
Ethereum—the blockchain that first enabled smart contracts and underpins a majority of web3 dapps—has traditionally been slow and expensive. It’s a known problem. Creating a decentralized infrastructure that is fast, secure, and cheap is an incredibly difficult technical challenge. (This is also known as the
Let’s look briefly at why.
At a high level, Ethereum has three components:
The Ethereum network prioritizes security over everything else. To ensure the validity of the information in the blockchain, it uses the consensus mechanism to ensure that no one actor by themselves can alter the state of the network. This consensus is an extremely complicated problem that Ethereum (and blockchain) solve.
But in order to solve it, the consensus mechanism was made slow—on purpose. As a result, Ethereum as a whole was slow.
Unfortunately, when you’re trying to build something that needs a modern UX—a decentralized game that stores users’ actions on-chain, or a DeFi solution that manages everything from micropayments to millions of dollars, or a provable way to monetize digital art—it can’t be built on a foundation of slow and expensive transactions.
This is where layer 2s like Linea come in. They are a new generation of blockchains built on top of Ethereum. At a high level, they execute transactions quickly and cheaply using their own novel architectures, then commit those transactions (often as a rolled-up batch of transactions) to the Ethereum blockchain.
Executing transactions on the L2 minimizes gas fees and makes the transaction fast and cheap. Committing those transactions, in the end, to Ethereum keeps them decentralized and secure. It’s the best of both worlds!
A zkEVM is a layer 2 solution that uses a cryptography technology known as zero-knowledge rollups (ZK rollups). These ZK rollups use zero-knowledge proofs to move those heavy transactions and computations off Ethereum, while keeping them secure and easily verifiable.
zkEVMs are especially exciting as L2s because they are EVM-compatible. This means developers can use the existing Ethereum ecosystem—smart contracts, tools, and libraries—they already use with little to no modifications.
Linea goes a step further as a “developer first” L2, meaning as a primary design developers can bring the tools and processes they already use and know. It’s an L2 that can be used almost identically to the ways developers already use Ethereum.
Linea was released to mainnet alpha on July 11th, 2023. Linea, and zkEVMs in general, moving to mainnet is perhaps the most critical step needed for mainstream adoption of Ethereum dapps.
With Linea and other L2s, those games and de-fi dapps finally work as they were originally envisioned. They will be fast and cheap enough for the general public. It’s a milestone to celebrate. I encourage you to experiment and try out Linea for yourself. For details on deploying a smart contract to Linea, check out my previous article,
Before you start, however, let’s cover some of the technical details of the Linea release you should be aware of:
And since this is a mainnet alpha, there are a few key points to remember as you explore:
The L2s are here … and Ethereum is finally living up to the hype. Transactions are blazing fast and transaction costs are negligible. And zk rollup solutions such as Linea are leading the way. The next generation of dapps should be fast, cheap, and have superior user experiences. L2s are paving the way to Ethereum scalability and mainstream adoption.
Also published here.