MT Profile picture
Sep 29 25 tweets 12 min read
With @arbitrum Nitro going live last month and @zksync's zkEVM is expected next month, #Ethereum #L222s are getting better, faster, cheaper!

Which begs the question(s)...
How low can tx fees go?
And what are the actual points in a rollup tx that incur a cost?

thread time...
We'll discuss:
-What actually incurs a cost?
- What steps in a L2 tx cost the most?
- Does it vary for ORS vs ZKRs?
- What costs are fixed vs variable?
- Who's doing it best?
@ryanberckmans
So what ARE we paying for? And what steps?

One portion is the transaction execution (L2 fees): executing and batching transactions together, as a Sequencer does, costs compute power and real resources.

So, add it to the bill of rollup tx!
@iam_preethi Image
@iam_preethi 2nd is settlement/state transitions: the cost associated with settlement (i.e., updating account balances across all nodes when Alice sends 1 ETH to Bob)

3rd is Data availability (DA): Ensures all relevant transactional data is available to anyone. Super impt!
DA is critical because it lets anyone verify the data for themselves.

Additionally, as long as all of the execution data is made available on the mainnet, the chain doesn’t require every node to execute every tx to validate txs and reach consensus.
@CannnGurel
Because rollups can cryptographically guarantee (via a proof) that the transactions are valid, these transactions can now be executed by just a single node and posted to the L1 where it can be cross-checked by L1 nodes.

@ChainstackHQ Image
Additionally, the data within a batch is highly compressed prior to being submitted to the L1, further decreasing the resource burden.

This is how rollups help trustlessly scale a blockchain without requiring an increase in node resources.
@azcoinnews Image
However, a rollup’s TPS is dependent on the data capacity of their L1 for throughput.

Once an L1 runs out of data capacity for the rollup, no additional txs can be processed.

The more DA on L1, the higher the (theoretical) throughput for rollups.
As @apolynya illustrates, L1 data fees (data availability costs) make up the majority of the current cost. However, EIP-4844 offers a solution and could bring this cost down by 10-50x!
ORs vs ZKRs?

First, gas cost to L1:
With Optimistic rollups, no computation is actually done, so it costs less than ZKRs.

ZKRs are more expensive (10-100x). When ZKRs submit a new batch, the validity proof must be verified, a computationally expensive process. Image
However, from a scalability perspective, ZKRs are more performant than ORs because they compress data more efficiently, meaning they have a smaller “batch size” when submitting to L1.
Second, Frequency:

ORs posts all tx data to the Ethereum L1 for every tx. This is the price they pay for the benefit of optimistically assuming txs are valid.

Image: tasks a single party can perform on an OR : either a computation of transaction data or a dispute Image
However, (some) ZKRs only post the state differences to L1.

ZKRs can do this because the state difference in combination with the validity proof is sufficient to validate the batch.

Because of this approach, ZKRs interact with L1 only ~20% as much as Optimism = Savings!
Therefore, on a gas cost/transaction basis, ORs are more expensive, thanks to the requirement of posting all the data to L1 for every transaction.

A lot of data and steps are needed in a frad proof scenario as @paradigm illustartes Image
SO, now, fixed vs. variable

What costs can't we avoid, and what can be improved?

Fixed costs are the rollup costs that must be paid, independent of how many txs are included in the batch.

Variable costs are the marginal costs that accumulate with each additional tx.
Fixed costs include:

State commitments
Validity proofs (ZKRs)
ZKRs have a larger fixed cost (10x) than ORs due to the validity proof.

What’s not fixed is the cost of the validity proof, which is determined by whether it uses a SNARK or STARK.
ETH SNARKS vs STARKS

SNARKs are cheaper, requiring ~500K – 1 million gas in the EVM, whereas STARKs cost ~1 million – 5 million gas depending on proof size.

Because ORs only require proofs in the event of a dispute, they aren’t subject to this cost.

@skatensurf_ Image
Variable

Reducing the frequency of L1 interactions is one cost-saving method, but so, too, is batching more transactions into one block (the denominator in the image) to “socialize” the L1 calldata cost.

Maximizing the no. of txs in a block can cut tx fees by 70-90%! Image
As activity increases, the variable cost of tx data becomes the primary factor influencing rollup tx costs.

The rollup submits tx data to #ETH in the form of calldata, which costs 16 gas per byte.

However, the price per unit of gas varies based on the demand for block space. Image
This is because the marginal cost of adding additional txs to the batch is smaller than the average tx cost.

Note that the marginal cost consists solely of variable expenses, principally tx data, as fixed costs are shared across the entire batch and are paid regardless.
Rollups are the first type of blockchain that might incur positive network effects in terms of transaction costs (more tx, LESS cost per user??)

As it stands in Q3 2022—the early days of ZKR adoption—ZKRs have minimal activity when compared to their future ambitions. Image
Therefore, their ability to amortize the costs across many different users is limited.

Despite being extremely nascent, rollups are already significantly reducing fees for many Ethereum users.

@l2beat Image
But as we know, there's always room for improvement! Like @0xPolygon's zKEVM.

Learn about how #Polygon is working to make ZKRs just as seamless to use and build on as #Ethereum and its #EVM

cryptoeq.io/articles/polyg…
Or @fuellabs_ and their unique approach to maximum decentralization and parallel transaction exuection!

cryptoeq.io/articles/fuel
@fuellabs_ That's a wrap!

If you enjoyed this thread:

1. Follow me @mt_1466 for more of these
2. RT the tweet below to share this thread with your audience

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with MT

MT Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @mt_1466

Oct 6
In today’s rollup world, the #L222 teams building rollups @zksync, @StarkWareLtd, @arbitrum, @optimismFND, etc.) still play a critical and centralizing role in the L2 process.

To what extent?
What can be done?
And #wen??

A thread on the entities and roles in a rollup tx
At a high level, there are three entities involved in a rollup transaction:
- the user on the rollup
- the rollup operator
- #Ethereum L1.

The rollup operator that sits in between the user and mainnet has tremendous responsibility and also some power. Image
Within this framework, there are also three crucial actors in the collection, execution, and finalization of a ZKR block:
- sequencers
- provers
- validators (verifier) Image
Read 15 tweets
Oct 5
$SUSHI "elected" a new chef!

You didn't think voting controversy only existed in the Trad world, did you??

Let's discuss the pathetic vote, the results, and what it could mean for @SushiSwap and on-chain governance moving forward
Headline: Jared Grey, former CEO of DeFi platform Eons Finance, won with 83% of the votes. A landslide!

Reality: The vote was held in the depths of a bear market, and only ~2% of eligible voters actually voted. Democracy!
In that 2% that DID vote were FIVE whales that basically decided the whole thing (11M of the 13M votes).

And those whales? VC firms.

Specifically, @CumberlandSays and Golden Tree with a combined ~8.1M of the 13M votes.
@ViktorDefi
Read 21 tweets
Oct 4
Is the looming $XRP-SEC settlement the end of an epic battle or just the beginning?

With a decision possibly coming as soon as this year, #crypto needs to be prepared for any outcome.

Let's do a quick review and then look ahead..... 🧵
Gary Gensler, Chairman of the #SEC, has repeatedly been on the record that he believes most cryptocurrencies outside of #Bitcoin are securities.

In September, Gensler was quoted, “the nearly 10,000 tokens in the crypto market, I believe the vast majority are securities…
the investing public is buying or selling crypto security tokens because they’re expecting profits derived from the efforts of others in a common enterprise.”

While the SEC has levied successful lawsuits against several minor crypto projects from the 2017 #ICO days...
Read 25 tweets
Sep 16
Ethereum just moved to #PoS but #Avalanche and its C-Chain have been PoS for ~2 years. So, what's the big deal?

How does $AVAX PoS work?
How does its consensus algo differ from what ETH just implemented?
And can #Avalanche truly have a million+ validators one day??
The Avalanche network doesn’t use just one consensus mechanism but rather a collection of consensus protocols.

What is the Primary Network?

A three-chain (X, P, and C) system that segregates the work done by the overall network.
This enables more efficient use of network resources & the ability to process more txs simultaneously.

Avalanche’s primary network consists of three governing blockchains with diff consensus algos:

Platform (P)-Chain
Exchange (X)-Chain
Contract (C)-Chain

image @hansolar21
Read 26 tweets
Sep 15
Underneath all the songs, pandas, and memes, the #EthereumMerge is bittersweet.

5+ years of waiting, and it's finally here!... Only, it's not like I imagined.

A thread on the ugly/glass-half-empty side of the #Merge from a long-time $ETH bull...
It's going to be impossible to make my argument and not sound whiny or a buzzkill or ungrateful or simply FUDing. That's not my intention. But like with everything, the merge comes with a cost.

However, lemme stress, this is a HUGE accomplishment. Kudos to all the devs involved
Backing up a bit.... blockchains are ONLY worth a damn if they are permissionless, neutral, secure, & censorship-resistant.

That's the truth. If you don't have those, you simply have a corruptible database.

And 99% of the thousands of projects out there don't offer these traits
Read 15 tweets
Sep 15
The #EthereumMerge was a success! But who has time to celebrate? There's still YEARS of work to be done!

In this part 2, we cover the years ahead, looking well into Ethereum’s (ever-changing) roadmap.

FYI, Part 1 is below for a refresher.
There is no official roadmap for #Ethereum, as it is predicated more on rough community consensus.

However, a high-level, noncontroversial plan stretching into 2023-24 is generally regarded as the agreed-upon path for the project.
A more technical roadmap with the progress of each step filled in was updated by @VitalikButerin in December 2021.

Specific developments are tied to future upgrades and are always subject to change.

Consider Merge 💯!
Read 24 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(