MT Profile picture
Sep 29, 2022 25 tweets 12 min read Read on X
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

Dec 7, 2022
This is nice but comprehensive fundamental analysis concerning $FTT and the exact risks that ultimately led to its downfall have been here for months

cryptoeq.io/corereports/ft…
We also broke down the cost-benefit analysis of using #exchange tokens from a retail perspective several months ago as well

@CryptoEQ has the same exhaustive bottom-up fundamental analysis for ~40 of the top crypto assets.

Because of actually doing the work, #CryptoEQ users were able to avoid $LUNA, $FTT and #FTX, #Celsius, $SRM, and more!

Read 4 tweets
Oct 18, 2022
A quick one on @arbitrum #Nitro

- What is it?
- How is it different?
- What are the tradeoffs? ( bc remember EVERYTHING is a tradeoff)
- Should you care?
- and a little $ARBI airdop juice
Arbitrum is an optimistic rollup (OP) L2 built by @OffchainLabs.

The currently-live implementation is called Arbitrum One and is the most successful rollup to date (measured by TVL).
While both are Optimistic rollups, Arbitrum has some key differences from its counterpart, Optimism.

@optimismFND #OVM 2.0 is EVM-equivalent, running directly inside the #EVM, while Arbitrum One is only EMV-compatible.
Read 12 tweets
Oct 6, 2022
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, 2022
$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, 2022
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, 2022
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

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!

:(