<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by NashQ on Medium]]></title>
        <description><![CDATA[Stories by NashQ on Medium]]></description>
        <link>https://medium.com/@nashqueue?source=rss-164d4c655a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*sVOwyjWsnkMQ4LM-L3OT8Q.png</url>
            <title>Stories by NashQ on Medium</title>
            <link>https://medium.com/@nashqueue?source=rss-164d4c655a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:21:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nashqueue/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Redefining Sequencers: Understanding the Aggregator and the Header Producer]]></title>
            <link>https://medium.com/@nashqueue/redefining-sequencers-understanding-the-aggregator-and-the-header-producer-76ee198dd4?source=rss-164d4c655a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/76ee198dd4</guid>
            <category><![CDATA[sequencing]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[light-node]]></category>
            <dc:creator><![CDATA[NashQ]]></dc:creator>
            <pubDate>Wed, 12 Jul 2023 17:00:17 GMT</pubDate>
            <atom:updated>2023-07-13T12:25:55.099Z</atom:updated>
            <content:encoded><![CDATA[<p>Just like you, I like rollups too. And semantics? Oh, I love ’em. Jon introduced us to the <a href="https://dba.mirror.xyz/hyRKK4_PDrO2FKpF6eIRvnq8sA_Mx7dXtQf_MWzSWTU">Rollup Multiverse</a> and broke our sacred timeline. It is time to explore all the variants that got created.</p><p>So, here’s what I aiming for with this post:</p><ol><li>I’m writing this to get a better grip on the whole system myself, and I’m hopeful you’ll find some value in it too.</li><li>I want us to challenge previous definitions and see what works best with the knowledge that we have right now. That way, when we’re debating the best sequencer design on CT, we’ll all be in the know about the latest meta.</li><li>I’m finally putting pen to paper (or fingers to keyboard) on topics I genuinely care about. So, whether you like it or not, this won’t be the last you hear from me!</li></ol><p>In this post, I’m going to make a case for why it makes sense to split sequencers into two logical entities: the aggregator and the header producer. And don’t worry; I’ll get to the definitions in a second. It’s also a good idea to divide sequencing into three logical processes: inclusion, ordering, and execution.</p><p>I will repeat the following structure in this blog post: First, I will present a variant and sprinkle in some definitions we will use. Secondly, we will examine the design’s censorship resistance and liveness tradeoffs. And lastly, we will look at the smallest trust-minimized setup for each rollup variant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*mzKSAYfSO7CWFhSMObggYA.png" /></figure><h3>What is a Rollup?</h3><p>We will start from the most minimal Rollup and add definitions when needed. I will start by adapting a rollup definition from this <a href="https://blog.celestia.org/sovereign-rollup-chains/#what-are-rollups">blog post </a>as a starting point.</p><p><strong><em>Rollups</em></strong><em> are blockchains that post their transaction data to another blockchain and inherit its consensus and data availability.</em></p><p>Why am I changing “block” to “transaction data” here? Let me tell you the difference between a rollup block and rollup data and show you that the minimal rollup only needs rollup data with our first variant.</p><p>A <strong><em>rollup block</em></strong><em> is a data structure representing the blockchain at a certain height. It consists of rollup data and rollup header.</em></p><p><strong><em>Rollup data</em></strong><em> is either a batch of transactions or the state difference between transaction batches.</em></p><h3>Variant 1 : Based Pessimistic Rollup</h3><p>The simplest way to build a rollup starts with a user posting transactions to another blockchain. We will call this blockchain the consensus and data availability layer, but I will shorten it to <strong>DA-Layer</strong> in all the following diagrams. In our first variant every rollup node must replay all transactions on the blockchain to check the newest state. We just created a pessimistic Rollup!</p><p><em>A </em><strong><em>pessimistic rollup</em></strong><em> is a rollup that only supports full nodes that replay all the transactions in the rollup to check its validity.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/0*0mA1gAt1nHzTklE-" /></figure><p>Now wait, who is the sequencer in this case? No entity is actually executing the transactions apart from the rollup full nodes themselves. Usually, a sequencer would aggregate the transactions and produce a rollup header, but there is no header in this case! Splitting the sequencer into two logical entities: the aggregator and the header producer differentiates it. One entity must be state aware (i.e., must execute the state to compute the header), but the aggregator does not need to understand the state to be able to aggregate it.</p><p><strong><em>Sequencing</em></strong><em> is the process of aggregation and header production.</em></p><p><strong><em>Aggregation</em></strong><em> is the process of batching transactions into one batch. A batch of transactions consists of one or more transactions.</em></p><p><strong><em>Header production</em></strong><em> is the process of creating the rollup header backed by specific security properties.</em></p><p><strong><em>Rollup header</em></strong><em> is metadata about the block, which at minimum, includes a commitment to the transactions in that block.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*voB1MrLLzUARcmjy" /></figure><p>With this new insight, we can rephrase the question and ask who the aggregator is, as we don’t have a header producer initially. The transactions are posted on the DA-Layer, meaning the DA-Layer is the aggregator, and that’s pretty based.</p><p><em>A</em><strong><em> based rollup</em></strong><em> is a rollup that delegates aggregation to a DA-Layer.</em></p><p>Credit to colludingnode, who posted the idea of a <a href="https://forum.celestia.org/t/leaderless-sovereign-roll-up/420">leaderless rollup</a> and Justin Drake, who coined the term <a href="https://ethresear.ch/t/based-rollups-superpowers-from-l1-sequencing/15016/1">based rollup</a>.</p><p>The based rollup enjoys the same censorship resistance and liveness as the DA-Layer. The smallest trust-minimized setup for a rollup node is to run a DA-Layer light node and a rollup full node.</p><h3><em>Variant 2: Pessimistic Rollup using a Shared Aggregator</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*cacIK0gx0jlBDc0z.jpg" /></figure><p>Let’s talk about a pessimistic rollup using a shared sequencer. This design is based on the forum post that first introduced the<a href="https://forum.celestia.org/t/sharing-a-sequencer-set-by-separating-execution-from-aggregation/702"> Shared Sequencer Design</a> by Evan Forbes. The critical assumption here is that the shared sequencer is the only legitimate way to order transactions. Any other batches? Ignored. Nada. I will let Evan explain one of the benefits of a shared sequencer:</p><blockquote>To unlock a web2 equivalent UX, the shared sequencers […] can provide fast soft commitments. These soft commitments provide some arbitrary promise of the final ordering of transactions, and can be used to create prematurely updated versions of the state. As soon as the blockdata has been confirmed to be posted on the baselayer, the state can be considered final.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*FcyF1rDUwLKUpsr8Q8GjdQ.png" /></figure><p>Because we are still a pessimistic rollup, we only have rollup full nodes. Each one has to execute all transactions to guarantee validity. There are no light nodes in this system, so there’s no need for a rollup header, aka header producer.</p><p>As this type of shared sequencer does not do any execution, I will start calling it a <strong>shared aggregator </strong>from now on.</p><p>The <strong>smallest trust-minimized setup</strong> is here a DA-Layer light node + shared aggregator light node + rollup full node. We need a shared aggregator light node to validate the headers of the shared aggregator. Remember our assumption that the shared aggregator fixes the order? Well, the shared aggregator has a cryptographic commitment to the order of the transactions in its header. This way, we can confirm that the batch we receive from the DA-Layer is the one created by the shared aggregator and not by someone else. To validate the header of the shared aggregator, we need, at minimum, a shared aggregator light node.</p><p><strong><em>Inclusion </em></strong><em>is the process by which a transaction is accepted into the blockchain.</em></p><p><strong><em>Ordering </em></strong><em>is the process of arranging transactions in a specific sequence in the blockchain.</em></p><p><strong><em>Execution </em></strong><em>is the process by which the transactions in the blockchain are processed, and their effects are applied to the state of the blockchain.</em></p><p>Because the shared aggregator controls inclusion and ordering, we inherit its <strong>censorship resistance</strong>.</p><p>If we assume L_ss is the <strong>liveness</strong> of the shared aggregator, and L_da is the liveness of the DA-Layer, then the liveness of this scheme is L = L_da &amp;&amp; L_ss. In other words, if either system has a liveness failure, the rollup also has a liveness failure. For simplicity, I will use liveness as a boolean. If the shared aggregator fails, we can’t proceed with the rollup. If the DA-Layer fails, we could continue with the shared aggregator’s soft commitments. Still, we’d be relying on the shared aggregator’s consensus and data availability, which would be worse than the original data availability layer.</p><p>I am differentiating between censorship resistance and liveness here without actually defining it. I am doing the thing that this blog post tries to stop, so let me try to explain it. In this scheme, the DA-Layer cannot censor specific transactions. It can only censor whole rollup batches that the shared aggregator already aggregated.</p><p>Because the shared aggregator defines the ordering between transactions AND between batches, this censoring does not do anything but delay the rollup’s finality. That’s why I would argue that censorship resistance is focused on ensuring that no single entity can control or manipulate the flow of information within the system, while liveness is concerned with maintaining the system’s functionality and availability, even with disruptions and adversarial behavior. Even when this might clash with current academic definitions, I will use those loose explanations throughout the blog, but i am open to ideas how to differentiate what i am trying to differentiate.</p><p>Let’s circle back to the fact that the person who can censor can also profit.</p><h3>Variant 3: Pessimistic Rollup with Based and Shared Aggregation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*-fPaeASSJyZxRSpM" /></figure><p>Imagine that your community, even though it enjoys the benefits of a shared aggregator, wants to avoid depending on it and wants to have a fallback to the DA-Layer. We will combine the ordering and allow users to submit transactions directly to the DA-Layer. It combines based and shared aggregation. We assume the final ordering will be interpreted as all transactions ordered by the shared aggregator and then all based transactions after that per DA-Layer block. We call this the rollups fork choice rule.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*ijndFNiY49qZEJyp9XX8EQ.png" /></figure><p>Aggregation is a two-step dance here. First, the shared aggregator takes the lead, aggregating some transactions. Then, the DA-Layer aggregates with the already ordered batches and transactions the user directly submitted.</p><p><strong>Censorship resistance</strong> is now not straightforward anymore. The shared aggregator can still give out soft commitments of the ordering through the shared aggregator’s header. But these have a weaker guarantee of ordering because the DA-Layer might censor a batch from the shared aggregator until the next DA-Layer block. Therefore you only know the ordering of certain transactions inside a batch, but you cannot be sure if there are any based transactions between the batches. This means you are leaking MEV back to the DA-Layer. I recommend watching the talk from research day about <a href="https://www.youtube.com/watch?v=zEnySS0kh1s&amp;t=9s">profitable censorship MEV</a> for this.</p><p>There are already designs popping up to reduce the ability of the DA-Layer to perform this kind of censorship value extraction, like the add-on we call the <a href="https://twitter.com/NashQueue/status/1664092188945334274?s=20">reorg-window</a>, which extends the interpretation window so it spans multiple blocks, with the downside of prolonging execution time. Sovereign Labs is going into much more detail in their design proposal called <a href="https://github.com/Sovereign-Labs/sovereign-sdk/issues/408">Based Sequencing with Soft Confirmations</a> using a “preferred sequencer.” As MEV depends on the aggregator scheme you choose and the fork choice rule of the rollup, some will leak none, and some will leak some or all MEV to the DA-Layer, but that’s a topic for another day.</p><p>As for <strong>liveness</strong>, this rollup design has a leg up over just having a shared aggregator. If the shared aggregator has a liveness failure, the user can still submit transactions to the DA-Layer.</p><p>And finally, let’s talk about the <strong>smallest trust-minimized setup</strong>: a DA-Layer light node + shared aggregator light node + rollup full node. We still need to validate the headers of the shared aggregator for our rollup full node to be able to differentiate transaction batches for its fork choice rule.</p><h3>Variant 4: Based Optimistic Rollup with a Centralized Header Producer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*-z5SU549KP8eiElL" /></figure><p>Let’s start cooking some light nodes using a variant called the based optimistic rollup with a centralized header producer. This design uses the DA-Layer to aggregate transactions, but we introduce a centralized header producer to enable rollup light nodes.</p><p>We will pick single-round fraud proofs for the rollup light nodes to check the rollup transactions’ validity indirectly. The light nodes will optimistically trust the execution of the header producer and finalize after a fraud proof window or receive a fraud proof from an honest full node that shows that the header producer committed fraud.</p><p>I will not go into detail about how single-round fraud proofs work, as this would break the scope of this article. The benefit here is that you can reduce the fraud proof window time from <a href="https://kelvinfichter.com/pages/thoughts/challenge-periods/">7 days</a> to <a href="https://twitter.com/colludingnode/status/1673730479000809473">some amount</a>, which is yet to be determined but magnitudes smaller. Light nodes are able to receive fraud proofs through the p2p layer without needing to wait for a dispute, as everything is captured in a single proof.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/0*ThdRYp3Bmf2bnmFh" /></figure><p>We use the DA-Layer as the aggregator inheriting its <strong>censorship resistance. </strong>It does inclusion and ordering. The centralized header producer will read the canonical order from the DA-Layer and be able to construct a valid header from that. The centralized header producer will post the header and state roots to the DA-Layer. These state roots are essential to create a fraud proof against this commitment. The aggregator does inclusion and ordering, while the header producer does the execution.</p><p>Let’s assume the DA-Layer and, therefore, the aggregator is decentralized and has good censorship resistance. Furthermore, the header producer cannot change the order of the transactions as this design assumes that we have deterministic state execution from the given order of transactions. Now the only thing decentralizing the header producer gives you is better liveness. All the other properties of the rollup are the same, so that is a question to the reader if we need to decentralize the execution if the ordering is already decentralized.</p><p>If the header producer has a <strong>liveness</strong> failure, the rollup also has a liveness failure. The light node won’t be able to follow the chain, while full nodes could still follow the chain if it is desirable, falling back to a based pessimistic rollup.</p><h3>Variant 5 : Based ZK-Rollup with a Decentralized Prover Market</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*DzyTsQdX9mOJbcd6" /></figure><p>We had pessimistic and optimistic rollups, so now it is time for validity or zk-rollups. The Idea of separating the aggregator (seqeucner) and the header producer (prover) is something Toghrul recently made a presentation about (<a href="https://www.youtube.com/watch?v=QBctFjz96Go">Sequencer-Prover Separation in Zero-Knowledge Rollups</a>). If you want this separation, it is easier to <a href="https://twitter.com/toghrulmaharram/status/1533760592615550980?s=20">post transactions</a> as rollup data instead of state diffs, so I will focus on that. The variant that I will be looking at is a based zk-rollup with a decentralized prover market.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/0*L5f6f9bB8yIZKgRn" /></figure><p>By now, you should be familiar with what a based rollup does. It delegates our aggregator to the DA-Layer that does inclusion and ordering. I will quote from Sovereign-Labs <a href="https://github.com/Sovereign-Labs/sovereign-sdk/blob/main/rollup-interface/specs/overview.md">documentation</a> which does an amazing job of explaining the lifecycle of their design. I will adapt it slightly so it will fit the variant above.</p><blockquote>[Users posts] a new blob of data onto the L1 chain. As soon as the blob is finalized on L1, it is logically final. Immediately after the L1 block is finalized, full nodes of the rollup scan through it and process all relevant data blobs in the order that they appear, generating a new rollup state root. At this point, the block is subjectively finalized from the perspective of all full nodes.</blockquote><p>Our header producer in this design is the decentralized prover market.</p><blockquote>[P]rover nodes (full nodes running inside a ZKVM) perform roughly the same process as full nodes — scanning through the DA block and processing all of the batches in order — producing proofs and posting them on chain. (Proofs need to be posted on chain if the rollup wants to incentivize provers — otherwise, it’s impossible to tell which prover was first to process a given batch). Once a proof for a given batch has been posted on chain, the batch is subjectively final to all nodes, including light [nodes].</blockquote><p>This variant enjoys the same <strong>censorship resistance</strong> as the DA-Layer. The decentralized prover market cannot censor transactions because the DA-Layer determines the canonical ordering. We decentralized the header producer only for better liveness and to create an incentives market. The <strong>liveness</strong> here is L = L_da &amp;&amp; L_pm (prover market). If the incentives of the prover market are misaligned, or it has a liveness failure, light nodes won’t be able to follow the chain, but rollup full nodes could still follow the chain if desirable, falling back to a based pessimistic rollup. The smallest trust-minimized setup is here, just as in the optimistic case having a DA-Layer light node + a rollup light node.</p><h3>Variant 6 : Based Hybrid Rollup with a Centralized Optimistic Header Producer and Decentralized Prover</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*VweV_D9Y4pWlgDW7" /></figure><p>I hope you are ready for our final variant. We will dig into this separation’s composability and have 2 different header producers! Introducing the “Based Hybrid Rollup with a Centralized Optimistic Header Producer and Decentralized Prover.” I will try to illustrate this hybrid rollup, which was first mentioned by Kelvin in his <a href="https://kelvinfichter.com/pages/thoughts/hybrid-rollups/">blog</a>, in the following diagram:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/0*p3oQrJzrq9XxVOwU" /></figure><p>Ok, hear me out; there is a lot going on here, but if you have one variant and the other, why not combine the approach and get both benefits? We still use the DA-Layer as an aggregator to keep that part simple and delegate inclusion and ordering.</p><p>As you can see from the diagram, both the ZK rollup and the optimistic header producer use the same ordered batch as their source of truth. That’s why we can use both proving systems in parallel, as the ordered batch can be agnostic to the proving system that is built on top.</p><p>Let’s talk a little about <strong>finality</strong>. From the perspective of a rollup full node, the rollup is final when the DA-Layer is final, as it just needs to execute the transactions for this variant. But we care more about the finality of the light node. Let’s assume the centralized header producer puts up some stake, signs over a header, and posts the calculated state roots to the DA-Layer.</p><p>Just as before, the light nodes will optimistically trust the execution and wait for a fraud proof from an honest full node that shows that the header producer committed fraud. After the fraud proof window is over the rollup block is final from the perspective of a rollup light node.</p><p>Now here comes the kicker, we can stop waiting for the fraud proof when we get a ZKP. In addition to the single-round fraud proof we can use the generated ZKP as a fraud proof and dismiss any malicious header that was generated from the optimistic header producer!</p><p>Another way a light node will reach finality is when it receives a ZKP for a rollup height.</p><p>Now we have a fast, optimistic, economically backed soft guarantee and a fast finality.</p><p>This variant still enjoys the same <strong>censorship resistance </strong>as the DA-Layer as it is based. For <strong>liveness</strong>, we will have L = L_da &amp;&amp; (L_op || L_pm ), which means we increased our liveness guarantee. If either the centralized header producer or prover market have a liveness failure, we can fall back to the other scheme. Finally, the smallest trust-minimized setup is a DA-Layer light node + a rollup light node.</p><p>Which variant will you choose?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*Wghi5m_mZUDZ15i6" /><figcaption>Source: Marvel</figcaption></figure><h3><strong>TL;DR:</strong></h3><ul><li>We split the sequencer into two logical entities: the aggregator and the header producer</li><li>We split the sequencer into three logical processes: inclusion, ordering, and execution.</li><li>pessimistic rollups and based rollups are a thing</li><li>You can plug-and-play aggregators and header producers depending on your needs</li><li>Each variant in this post followed this design pattern:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/0*YZcrioHwg6aYs4-B" /></figure><h3><strong>Brain Teaser</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*jg-vG3ji47z78G_h" /></figure><p>Ok, some final thoughts before I let you go. The modular stack that we are building will explode in variants, and you can see specialized software for each component forming. In this post, I showed you the tip of the iceberg for rollup variants. I left out a lot of details and kept it very abstract on purpose to create a basic mental model. I can’t believe I wrote a rollup post without mentioning <strong>sovereign</strong> or <strong>bridges</strong>. Here are some brain teasers I will answer in the future and invite you to ponder on.</p><ul><li>How do classic rollups fit into this?</li><li>In all the variants, we only made the aggregator do inclusion + ordering and the header producer execution. What if the aggregator only does inclusion and the header producer does ordering and execution? Think on-chain auctions. Could we separate all 3?</li><li>What is a shared header producer / header producer market?</li><li>Who gets the MEV? And can we get it back?</li><li>Redundancy and composability will lower the cost of exit games, the less composable, the higher the exit cost</li><li>trust-minimized bridge = on-chain light node</li><li>Intents?</li></ul><p>Thank you, Callum, for reviewing the post. Thank you, <a href="https://twitter.com/evansforbes">Evan</a>, <a href="https://twitter.com/colludingnode">c-node</a>, <a href="https://twitter.com/true_wondertan">Wondertan</a>, <a href="https://twitter.com/musalbas">Mustafa</a>, <a href="https://twitter.com/jadler0">John</a>, and Crypto Twitter (<a href="https://twitter.com/jon_charb">Jon</a>, <a href="https://twitter.com/kelvinfichter">Kelvin</a>, <a href="https://twitter.com/toghrulmaharram">Toghrul</a>, <a href="https://twitter.com/aeyakovenko">Anatoly</a>, <a href="https://twitter.com/_prestwich">James</a>, <a href="https://twitter.com/prestonevans__">Preston</a>, <a href="https://twitter.com/0xkydo">kydo</a>, <a href="https://twitter.com/0xRainandCoffee">rain&amp;coffee</a>, <a href="https://twitter.com/stonecoldpat0">Patrick</a>, <a href="https://twitter.com/EspressoSys">Espresso</a>, <a href="https://twitter.com/Jskybowen">Josh</a> , <a href="https://twitter.com/likebeckett">Alex</a>) for the many discussion, blog posts, and research that led me to write this post. You should follow them if you want to keep up with the rollup discussions.</p><p>If you have any questions, disagree with me or want to see how some brain teasers are resolved, feel free to reach out on <a href="https://twitter.com/NashQueue">Twitter</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*-7uT3IffO-5Mwf9W57_tLA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76ee198dd4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>