What Are Optimistic Rollups?

optimistic roll ups explained

Share this article

Scaling the bitcoin blockchain was never going to be nor intended to be a once of solve or one solution, but rather a combination of different trade-offs. The Liquid Network and Lightning Network are the first publicly available attempts to move transactions off-chain and reduce the need for on-chain block space.

The bitcoin time chain is purposefully built to be slow and expensive to give users confidence in its final settlement and act as a deterrent to those who wish to spam the network. Having transaction fees and limited block space is critical to ensuring a healthy network. Still, it does mean that there is a limitation in how many transactions can be processed every 10 minutes with a new block.

If blocks aren’t going to be made bigger anytime soon to ensure decentralisation and the ability to run bitcoin as low-tech as possible, then moving transactions off-chain or limiting data pushed to the chain is the rational option.

That thinking is why layer two systems, such as rollups, have emerged. Rollups process transactions on another, faster environment (known as layer two), then port the transaction data back to the parent blockchain (layer one or mainnet) at a fraction of the price. This means that users can benefit from the speed and cheapness of the rollup while also benefiting from the security of the base blockchain.

Optimistic rollups are one of the different flavours

There are two main types of rollups, Optimistic and Zero-Knowledge (ZK). In an optimistic rollup, the “optimistic” label points to a distinctive feature of optimistic rollups: they publish little information about transactions on-chain and automatically assume all transactions are valid.

They are called “rollups” because they aggregate (“roll up”) thousands of transactions into batches before submitting them on Mainnet. 

Optimistic rollups give everyone on the network a certain amount of time to contest fraudulent transactions. The benefit of the Optimistic rollup is that it’s quick; by assuming things are correct, the network doesn’t have to waste time confirming things. The drawback is that it there would be a time delay to officially withdraw your funds from optimistic rollup to ensure that fraudulent transactions don’t make it past the system’s consensus.

What is an optimistic rollup?

An optimistic rollup is a type layer two scaling solution that relies on off-chain computation to trustlessly record transactions that happen in layer 2. Periodically the system publishes a Merkle root of the transactions that happen within the rollup to update the “state” of the rollup on the main underlying blockchain.

A network of external validators checks the Merkle roots to ensure they are correct before the state is updated sometime later. If an inconsistency arises, then the validator can publish a fraud-proof during the dispute period, which can cause the system’s state to be rolled back to the previous valid state. 

Advantages of an optimistic rollup

The primary advantage of an optimistic rollup when compared to its zero-knowledge equivalent is that they are more generalist and can support smart contracts in a similar way to the underlying smart contract-enabled blockchain. Native support for smart contracts within the rollup means that apps can be launched much easier, without the need for additional development.

Disadvantages of an optimistic rollup

The main downside to optimistic rollups compared to zero knowledge rollups is the time that it takes for layer two users to be able to withdraw their funds back to the underlying blockchain. As an optimistic rollup has to rely on external validators to check the Merkle roots for ‘cheating’ before the state can be updated, there needs to be a sufficient amount of time for validators to check and challenge the activity that has happened on layer 2. 

Risks of rollups

Rollups are tethered to the base chain and provide core security guarantees once you settle to mainnet, but as with any off-chain processing, there are still come with some risks relative to the bitcoin mainnet.

A rollup’s smart contracts can contain bugs – not unlike any other program and while fail-safes and audits should help prevent exploits, relying on an external program to handle transactions will always carry some added risk.

Both types of rollups are also still in an experimental phase, and as such, the networks on which they operate are often somewhat centralised. In some cases, the developing team behind a rollup maintains partial control over the network and can theoretically pause or switch it off wherever they like.

Many rollups also continue to rely on centralised “sequencers” to coordinate transactions on the layer two chain efficiently.

Optimistic rollups as applied to bitcoin

While Rollups have been predominantly pitched as an upgrade for Ethereum with its so-called layer two solutions like Optimism and Arbitrum, these networks tend to work more as remora chains than layer two solutions tethered to the base chain.

In the case of bitcoin, however, John Light recently posted a research report on how Validity Rollups could be added to bitcoin’s layer 1. While no exact Bitcoin Improvement Proposal is pushed forward, the suggested changes required might include a combination of recursive covenants and specific opcodes for validity proof verification.

While covenants would be a change to the bitcoin base chain, it would bring along with features too and only form the base for rollups. Once covenants are established, they can enable entirely new functionality to be added to their parent chain without needing additional consensus rule changes.

Covenants are currently live on the Liquid side chain, which might be the perfect testing ground for the validity of rollups and how they can be stress tested.

How a rollup on bitcoin would work

A Layer two optimistic rollup would, in theory, be built on bitcoin L1 and have its own set of nodes supporting the software, which would create a distributed execution environment that supports more flexible smart contract languages or more advanced privacy technologies, with no other changes needed to bitcoin base chain and its net of nodes.

Users who wish to broadcast to a rollup environment would have their transactions handled by these nodes and housed in a Merkle tree, and only the state of that Merkle tree would be broadcast back to the base chain.

So rather than being aware of the specific consensus rules of the rollup and knowing how to execute transactions by following those rules, the parent chain full nodes only need to know how to verify the rollup validity proof.

Fraud on rollups

Fraud proofs are the main concern of rollups, as we do not want to create double spending issues at the core for optimistic rollups. To tackle the possible fraud exploits, exploring the possibility of implementing optimistic rollups with MATT covenants and time delay to withdraw seems a promising direction.

Because of the simplicity of the required changes to Script, this might answer some of the costs and risks analysed in the report while providing many of the same benefits. Notably, no novel cryptography needs to become part of bitcoin’s layer 1.

Optimistic Rollups would probably require a fully recursive version of the covenant (while fraud proofs alone are possible with a limited recursion depth).


Do your own research

If you want to learn more about optimistic rollups on bitcoin, use this article as a jumping-off point and don’t trust what we say as the final say. Take the time to research; check out their official resources below.

Disclaimer: This article should not be taken as, and is not intended to provide any investment advice. It is for educational and entertainment purposes only. As of the time posting, the writers may or may not have holdings in some of the coins or tokens they cover. Please conduct your own thorough research before investing in any cryptocurrency, as all investments contain risk. All opinions expressed in these articles are my own and are in no way a reflection of the opinions of The Bitcoin Manual

Leave a Reply

Related articles

You may also be interested in

Google displaying rich results for on-chain data

Google Brings Chain Analysis To The Masses

Google is dipping its toes into some blockchain data, specifically the Bitcoin blockchain! That’s all I am interested in, but they’re also supporting Google’s indexing

Bitcoin Block Art

What Is Bitcoin Block Art?

It’s been a quiet few months when it comes to on-chain graffiti; it seems like a lifetime ago, Ordinals enjoyers claimed they broke Bitcoin, and

Cookie policy
We use our own and third party cookies to allow us to understand how the site is used and to support our marketing campaigns.