Fair Sequencing: Using Verifiable Random Functions to ensure rollup transactions are fairly sequence

Fair Sequencing for Rollups · 20 Mar 2024 · 49:58

Dr Franck Cassez presents his team's research on using verifiable random functions to ensure that transactions on a rollup are sequenced fairly. The recording comes from an Ethereum Engineering Group meetup and speaks to anyone interested in how rollup transaction ordering can be made fair.

Speakers

Topics

From Fair Sequencing for Rollups, hosted by Ethereum Engineering Group.

Transcript

hello and welcome everyone my name is Peter Robinson and today we've got Dr Frank Cass who is going to talk about Fair sequencing so Frank before you dive into your slides why don't you introduce yourself yeah thank you Peter for inviting me to talk today so I'm Frank I'm the head of blockchain research at mental the mental Network which is a a rollup to formerly B da and my search interests are in um rollup Technologies and more broadly ethereum and blockchain uh my focus is probably more on formal verification and so on but the talk I'm going to give today is uh is

not in this topic it's about rollups and providing some Fair sequencing uh in rollups so um if it's okay I'm going to share my screen and start the presentation sounds good so feel free to ask questions during the talk if you want to uh to interact me I'll be very happy to to ask the questions right so this is a a talk on Fair sequencing and there were two other people involved in in the in the work I'm going to present today so on the left hand side I'm trying to get my a

is at mental as well in the research team and Andreas pensoffer so we did this work all together so what's the what's the problem so first um I'm going to tell you what's the life cycle of a transaction in in a layer two and then uh what are the issues that can arise and the talk about Fair sequencing is to try and mitigate these issues so usually when users submited transactions they MIT the transaction to a m pool so in in a typical rollup or to it's a centralized M Pool and then uh the sort of the main component of the of the rollup is the sequencer it's got a huge

amount of power and the sequencer is going to extract from the men pool some transactions uh bundle them in a batch so here you take some some transaction from the men pool a number of transactions let's say k of them and then you execute them in a batch and you compute the next state on the rollup the rollup next state right so I'm not talking about the layer one here but just the behavior of the rollup so what can happen here is that the sequencer is a centralized sequencer so of course it's got full control on the transactions it's going to extract from the main pool and on the order of transactions when they are executed um

in the in the module that executes the sequence of transactions so one thing that can happen of course it's uh the sequencer can can censor some transactions so never take them out of the M Pool and never execute them another thing that can happen which is related to the fact that the the sequencer can order transactions as they wish is that they can create what's called me attacks or toxic attacks or manipulation and so on so I'll describe what n tax are in the next few slides but there are two things right that can that can happen which is censorship and um ATT tax that can be detrimental to to users F and so on so

what can we do to fix this problem uh on a typical layer to to be able to mitigate the censorship problem and also the me tax problem so in the next few slides I'm going to give you an example of what the me attack is and how it's related to ordering transactions so m stands for maximum extractable value it used to be minor extractable value but with the move to a proof of stake in ethereum it became maximum extractable value and it's a it's a scheme in which Builders or proposers of blocks try to let's say extract the highest benefit from building and proposing blocks so I'll describe here a simple example of what

can happen so this is the the timeline from top to bottom uh of what's going to happen so assume you're you're on your own and your Alis and um you want to swap some some some ether for mental tokens so the The Exchange right here is one ether one mental token this is actually completely wrong right one mental token is not worth a lot at the moment uh but Alice would probably send this 10 ether to sort of a decentralized exchange with a pair a pool um offering the exchange of ether for mental and mental for ether and if the current exchange rate is one to1 she sends 10 e and she gets back um 10 manal tokens but then the price of mental tokens in the

pool has changed because it's not balanced anymore so that's a that's the mechanics of the pairs in in the decentralized exchange pools so the fact that you can um change the exchange rate um by buying some tokens Can Be exploited by malicious attackers so here assume that we have um we have Bob and Bob is going to sort of make a transaction before Alice because he knows that Alice will buy some some manal token some some manal tokens is going to front run Alice by first buying 10 mantal token at the exchange rate of one to one and then of

course the exchange rate has changed and when Alice does her transaction this time she won't get 10 mental Tok token but only 9.1 and then what Bob is going to do is to to just use 10 e get 10 mantle token let Alice do her transaction and convert his mental token back to e and doing this front running and back running which is called the sandwich attack he will get let's say in this example two e and of course it's at the detriment of Al who didn't get 10 e so that's called sandwich attack and and it's a it can be created by um manipulating and inserted transactions before certain other

transactions and after so if you if you're able to um manage a pool a m pool like the sequencer in the rollup you can actually do that you can explore transactions in the pool and say all right Alice is going to swap any for fundamental token I'm going to front run and back run and make some money out of it so it it's usually considered as harmful and of course it's detrimental to users so we should try to find a way to mitigate these M attacks in in the network so in the next few slides I'm going to present a sort of a a modular solution that tries to isolate the

issues of censorship and ordering and manipulation of ordering of transactions and describe a high level architecture that that could um help to solve these problems so any questions so far okay so I continue so one solution to try and mitigate these issues is has been proposed it's decentralizing the sequences so by decentralizing compared to the previous picture I had instead of having a unique component here that's going to pick up transactions from a main pool you're going to run a consent protocol to try and select the

transactions and build a batch so this doesn't really solve the problem of censorship because the leader of let's say bft protocol controls the actual choice of the transactions and and what's usually called let's say censorship resistance even at the ethereum level is based not on the use of a consensus protocol but the most important part is to have diversity of the participants if you want to improve censorship resistance so using decentralization in itself doesn't solve the problem another thing that can happen in most of the architectures I've seen so far including decentralized and shared sequencer is that there's a let's say some some decision on on which transactions are selected and then a

proposal of an order of the transactions and it's then sent off to an Executor that's going to execute the batch but there's no verification that the module in charge of executing the transactions has executed them in the order that was sent off to it and and it's usually an assumption in the designs on shared and decentralized sequencing that yeah the executing module will not alter the result of of the bch so that's a strong assumption as my so I'm going to try and show you how we can do that fix these issues with our design so the goal of fair sequencing so it's not not entirely new it was um introduced a couple of years ago in 202 1 by chain link they

even offered what they call a fair sequencing service but the fair sequencing service is based on using a BF consensus algorithm as well and they improved the the technology in the last few years by having what What's called the protected orderflow system which is a way of collecting transactions on different nodes and on different nodes all the transactions are ordered totally ordered and you can build from these totally ordered on each local node a total order of the Union of the transactions of of of the node so that's the algorithm they using so what we are after is to build a system that is resilient to censorship and me tax that

is secure so you can uh prove that the transactions have been executed in the order that was decided by the by the agent in charge of the decision of the ordering uh and also we would like to have to have what's called attributability if something goes wrong in the system so the transactions are not executed properly there censorship happening and so on we would like to be able to blame the the the agent in charge of this of this issue and slash them if they have St some assets and so on and on top of that uh we'd like to make sure that the solution we propose is um rather efficient and simple enough

to be implemented so I would um emphasize that running a A bft or consensus algorithm to to compute the the order of transactions it's not a light solution it's it can take sometimes to come to an agreement so fair sequencing without consensus that's what we we are after so first thing um here is the the main architecture of our design so censorship resistance we're going to um to try and and and let's say um tackle it at the at the level of the men pool manager component so we're going to split our design and architecture into

three different steps there's a men pool manager in charge of making sure that transactions can arrive to the main pool that once the transaction in the main pool is going to be executed in a bounded number of blocks the fair sequencer is in charge of providing a fair ordering and I'll Define what fairness is in a couple of minutes and the executor as well will be subject to the verification that it didn't alter the the sequence of transactions that was given to it by the the fair sequencer so it has to execute the transactions in the order they were given to it without any modification so how does it work so the M pool manager is going to work as

follows so we've got a m pool and every time a transaction like Alice is going to submit a trans action we fill in some sort of buckets batches and so on that you can you can identify them with blocks basically that could that can be the same thing to simplify so some of the buckets have been have been fully loaded and they've been processed as well and some of the buckets are ready to be processed processed and some of the other buckets are not full yet so when Alice submits a transaction to the men pool uh her transaction is going to go in in the first bucket that's non full and at the same time Alex Alice is going to receive a receipt that a

transaction will be in batch K or block k um in the in the processing of of the layer two so she gets a promise that a transaction will be in Block K but he doesn't know the order of a transaction in Block K so if you're a malicious attacker the only thing you can do is to submit your transaction will tell you you're in Block K but we won't tell you that you're at position or index three or four or whatever so now how does it work for alist and how does it work in terms of censorship resistance so what we offer is that provided the transaction reaches the M Pool Alice will be able to verify that her transaction has been executed so one simple thing for instance is if Alex

Alice can see batch or block number K plus one and she hasn't seen her transaction or she hasn't received any acknowledgement that her transaction has been processed she knows that the promise was not kept and she can um blame the pool manager and and if there is a mechanism with a proof of stake and the slashing mechanism we can slash the pool manager so that's how we we address the problem of um censorship resistance and the batch when we when we extract a batch we can also um it's a list of transactions right a sequence of transactions we can also provide a proof uh well not approv but a recording of the sequence of transactions as a Merle

hash rot of the list of transactions and publish it as well to a data availability layer so notice that in this setting right I can still have a centralized main pool and what we what we Define as censorship resistance is if the transaction reaches the M Pool then you get a receipt and we guarantee or or will be slashing the M pool manager later on if your transaction doesn't make it but what we don't guarantee that your transaction can reach the main pool so there are other mechanisms I may talk quickly about them later on broadcast protocols and so on to try and and ensure and and and guarantee that it's easier for a user to to make sure that the transaction which is the

men any questions on that first module the one handling the the men pool that I think that makes sense so it's just um so you know that you're in a in a particular batch but you don't know where you are within the batch yes but it's block bonded right because you're going to well assuming that blocks are produced on a regular basis and are published uh if you if you see again block k+1 and you haven't seen your transaction in the previous blocks you know that something went wrong so you can determine yeah um uh it's not okay uh the other thing you can do uh is to

examine for each block I'll talk about it later each block that's going to be published and and each block sorry that's going to be processed at the layer two level will be published or the hash of it will be published so you can check each block whether your transaction in it and ask for a miracle proof that your transaction is in it so there's two ways that you can you can check that your the promise has been has been kept yeah so it's a simple mechanism right to ticket and uh it's not heartbreaking yeah but I think the main takeaway from this is to have a separation of concern between censorship resistance and the other things that are happening later on

separating the different modules and aspects of the processing of transactions right so now how can we provide some sort of fair sequencing um so uh that that's where actually uh uh I should probably try to convince you that a definition of fairness is not easy to find but also that if you run a consensus mechanism to to to come up with some some agreement on The Ordering of transaction it may not be fair because the participants of the consensus algorithm could they decide what's fair for them right so they could decide to to to to Al together or the majority of them to run sandwich attacks

and so on so our setting um we we want to have something that's simple to to use and and completely fair so when you think about fairness you may think about a coin or a die or whatever that you you toss so tossing a coin fairness it's um it's the the typical example of Randomness so when you toss a coin there's 50% chance of heads or tails so in our setting what we'd like to do is to say all right we've got a bunch of transactions that arrived in the same bucket um and we ordered them let's say in a centralized main pool with the first well with time stamps in the order they were they were received and what we would like to do is to shuffle them but in a way that's not predictable

that's also one of the main features of Randomness so to do so we would like to use a random function the thing is that of course this random function could be flowed or manipulated as well but turns out that you can use random functions and verify that a given random function has been used to compute some some randomized numbers or sequence of numbers so that's what we're going to do here we're going to extract a batch and then query um an oracle so Supra chain link they offer these kind of services to get a random permutation let's say if we have a batch of 100 transactions we'll get a random permutation of 100 numbers and the the nice thing is that

this random permutation uh comes with comes along with a zero knowledge proof or proof of Randomness the proof that you have computed the permutation using a given random function so it's called a verifiable random function so what we do is we extract a batch we've got a sequence we've got a a random function that describes the permutation of the transactions and then we're going to compute the permutation um of the transactions using the the randomization that was provided from the verifiable random functions from from a batch b and a sequence of transactions in B we arrive to A randomize sequence in B Prime so that's the the computation that we perform and again what's happening

here is that we get a batch we can archive the order of the transaction sorry in in the batch with the merker root hash or whatever you want on the data availability layer we can also publish the randomization and the proof that the randomiz the randomized sequence has been computed using a given random function so zero knowledge proof and then we can also compute a proof that the permutation of the sequence of transactions so B Prime B2 B Prime has been computed properly according to the random permutation and we can also commit to batch uh to the new batch B Prime at the end so everything can be

committed to to a data availability layer so that's the main the main aspect to it so now why is it let's say um efficient is that Computing a permutation you can it's probably there's an oracle involved but it should be as effective at least as running a consensus algorithm but the nice thing with some some verifiable random functions like the Supra Oracle one is that you can request the private computation of the randomization so nobody will see it except accept the the the agent who who asked for it so you could precompute a randomization so have

some randomizations in your store already precomputed and kept private and reveal them only when you extract the full batch so here I'm actually referring to the issue that if if if there was a possibility that um someone knew the the the future permutation they could of course use it to try and and manipulate the order of transaction in the batch B so we don't want to reveal the permutation before the batch B is actually created so that's why uh it may be important to to be able to pre-compute but keep secret these permutations and use them very quickly if they are precomputed it's very easy to compute the permutation any questions on this on

this part so I have one sorry P you go oh no no you go James you had your question first um I was just thinking um are there instances where this proof could be invalid and could be failed to be verified I'm not sure if there's any form of verific which which proof uh either the ZK proof here or the proof of permutation that was computed correctly right so this this is um okay so that that's a I'll try to answer the question and you tell me if I answer your question right so assume that this proof beta well a proof is s but it's not it's not valid right that could be the case so if it's not valid you may

have to ask for a new random function and so on at this level um and you could also say well we're going to stop until we get a good random function so of course the service could be down and you never get one so there are liveness issues but um you can check whether the permutation has been computed properly so you can check in rate time or you can check let's say later on you just publish the proofs and later on you could scan and detect whether everything was computed properly similar to a sort of a fraud proof system that's I was think like okay you can you can do both you can try to detect it u i mean it's really similar to a z rollup where you publish the proof and you check the proof and if

something goes wrong you stop or you publish the proofs and then we can go back at some point and scan all of the proofs that have been published perfect thank you okay does so that answers your question yeah okay okay so so all of the things that that's a good question thank thanks for the question James all of the things that are published to the data availability layer yes it's asynchronous so they're published and at some point they will be available so uh they may be still a lag which is standard in in rollups when they communicate to a d yeah so um my my understanding of how vrfs

worked was that you essentially you gave them a value and it's got a private key you've got their public key and then they essentially like a prng um essentially you know like come up with an output and then they sign it so the the proof is like a signature I think may be more than a ZK but yeah so what's the value that you pass to the super like the batch number or something like that yeah so you could exactly you could compute the hash of the batch or the seed could be anything you could compute on the batch or whatever yeah if you have a batch but if you don't have the batch you could precompute random values from the previous values you had

and so on so have the hash of a hash the hash of like a Shamir interactive post you you collect all the hashes you had and you compute the next one and you use it as a Ste so you need one at the beginning yeah yeah yeah that that could be a way of doing it all right that makes there's also something that that's um interesting I thought I would talk about it later in the top but is that the verifiable random function thingy can be decentralized so TOA they offer dvf actually the the the computation of a randomized value uh is going to use a multi-party computation scheme where every every participants will contribute every participant will contribute to the

randomizing ation so there could still be some some some let's say decentralization in this computation as well and you could also reward participants in a way that they they they are rewarded for the work they're doing yeah that makes sense that's think the uh I mean the main issue here is the ordering of when these things are produced so I why not make be an input to the brf yeah yeah yeah so that's what pet was saying Sigma is coming after the B yeah yeah so that's what we want to do yeah yeah yeah

exactly so we could compute hash of the bash or whatever and feed the randomize the Oracle with the value that depends on B yeah yeah okay that's good but but if we want to do it you know around in asynchrony so we want to precompute the values we may need another way of doing it if if you if you hashed the actual batch the actual transactions then it's kind of come down to the transaction ordering whereas if it's just something say the batch number I mean that's that's unchangeable so it's nice true yeah yeah yeah yeah yeah but in yeah you this is a few

things that we haven't actually said this it's very modulous you can choose right it's the same here with a verifiable random function you can plug in the anything you want and you can extend it as well to a distributed verber random function if you want as well I think the the main takeaway I would say in this business is to try and see whether we can uh track every step of the way whether something is going wrong and provide some uh yes some guarantees on on some sort of fairness so what we guarantee basically right in in this business as well related to me tax is that the probability I'll talk about it later in

the conclusion the probability of a sandwich attack is pretty low because you can't really manipulate the order of a transactions that's given by the random function Frank just to that point um about not being able to manipulate the order of transactions does that also remove this whole other sort of Paradigm say I'm in a very congested Network um and say there's a primary sale going on but I have a particular transaction that's not related to that primary sale but I feel like it's a very important transaction that I need to come through um quickly it feels like there's no priority ordering based on the receipt

for the batches so how does that like how does that extra dimension of yeah that's a good question so so there's two things you can do so first thing is um let's say what you what you're mentioning for instance you can you can have a mechanism similar to let's say time boost in arbitrum to try and and and boost your transaction and prioritize it entering a batch before other transactions that's that's one mechanism for urgency you could pay extra fees for instance to to get into the first available batch but there's no mechanism to jump and and and maybe we could probably do that but let's say uh take out a transaction from a previous batch and put it in a later batch because we have Center receip already so

that would would change the the commitment and um so I was going to say another thing yeah and and another thing you can do is to to suar um have overlap with let's say in the in the process I've described so far you take a batch and it's fully randomized but sometimes you would like a few transactions in a batch to be in the the same order that they were at the beginning so you can still do that and the way we treat it is basically to say right if you submit a pair of transactions that you would like to be in a given order let's say two transactions and you say I've want this one first and the second one second what we're going to do is to say all right we need two slots in in the in the

randomization for these two transactions so we'll get transaction one assigned to index 32 transaction two assigned to index 46 and if they are in the right order then that's fine if they are not we can permute them or we can compute let's say two slots and assign the transactions in the order you wanted to uh to to to keep at the beginning because otherwise so we we run some experiments actually on some real transactions otherwise you get a lot of of course reverted transactions because they're not meant to be shuffled so you can you can add a mechanism to make sure that you preserve some ordering so let's say from a user point of view I could say I'm a user I submit fre transactions and I'd like them to be in this order but

you can inter leave with other transactions in between so the sort of the mechanism is I provide a local order a partial order and I make sure that the the permutation is an extension of this partial order so this can be done you can even uh make them I mean two transactions next one to another if you trade them at a single transaction so that lots of modularity in the in the design right so what's the last the last part of it so we've extracted a batch and it's been fairly um well there's a

fair ordering so it's been the transactions in the batch B has been have been ordered into B Prime and this B Prime we publish it to the data availability later we publish a digest so for instance yeah mer root hash and then we send it to the executors going to execute the transaction and this transaction will result in a block and in the block you usually have the sequence of transactions the list of transactions and the order in which they've been processed so we'll publish this a digest of a block and the digest of the list of transactions that are in the block so you can compare these digest of transactions that have been processed and the block published compared to the initial b Prime and check that they are the same

right so that's the the mechanism to make sure that you and again because we check everything one at a time uh if the everything went well until let's say the computation of B Prime so nobody cheated previously and then at the end we detect that the list of transactions in the block produced by the execution of the list of transaction is B Prime in B Prime is not the same as B Prime we know that the the module in charge of EX excuting the batch is malicious and should be blame and Sh and slashed if if they have St something but we separate the the processing into three different phases and three different actors so in

in terms of I would say decentralization the the first module that was I've gotten here the me pool manager so you can decentralize it as well right you could have some like ethereum for for instance a peer-to-peer network with local pools and so on to build a a global view of the pool and stuff like that so that increases U well that reduces the likelihood of censorship but that doesn't eliminate it the fair sequencer um there's no real need to decentralize it because the sequencing is given by the verifiable random function that itself can be decentralized if you want

you can use a decentralized version of the vrf and the executor doesn't need to be decentralized even because there's no choice it just has to execute the transactions in the order it was given so um that that's the the overall view of the design so we We R again some experiments um on on some transactions uh from um our own wallet and the the rejection let's say the the reverted transactions rate is uh was close to 20% so the overall result it's hard to interpret because um you can't really tell whether it's good or bad because if

the reverted transactions are the transactions that would um prevent me tax that's good if the reverted transactions are the transactions that should have gone through less bad we haven't been far enough to to try and extract the different types of transactions so we we we can't really tell the source of the uh reverted transactions but that's something that would be useful to to measure so do we in practice when we simulate do we in practice reduce me tax or not but uh if anybody knows a good way of measuring and detecting me tax we could try to implement it in the simulator and see

how it goes so that's the overall design so the takeaway is there's three different um uh modules um and they're all in charge of let's say different aspects of the fair sequencing one is in charge of censorship resistance the other one of mitigation of M attacks and the last one has no choice but to execute what was given to it so what what what can go wrong right so of course what can go wrong is um we've got the main pool so it could be spanned because if you spam the men pool and you try to fill in the batches of the

buckets you increases yeah I see that there's one question so I can stop there um sorry me again Frank just on the the last slide um similar to how we were talking about you know a fraud proof does the executor just optimistically trust the fair sequencer so the executor doesn't have to trust anything the executor gets the batch as an input and his job is to execute and build the block with the transactions executing in the order given by this the proof of B Prime is invalid so if the proof so we we publish B prum we get B Prime here right so the the order that was

given in B Prime is committed to the data availability layer there's a hash of some sort that's committed here and the executor it job is to take the current state of the layer two to execute the sequence of transactions as given by the sequence in B Prime and publish it and once it's done we check that it has done it has done it properly using the transaction list in in the block description right okay yeah I think does that make sense yeah yeah so so every every phase you can think about them as um three separate phases and and when we start the executor we assume that um but we assume or we could check later on

again that b Prime is given and the job of the executor is just to execute in the order that was given to it and we can verify that it was the case the job of the fair sequencer is to compute the permutation of the batch B uh and prove that it was fairly ordered the job of the M pool manager is to mitigate censorship resistance so build batches but not um not not deal with the their ordering or execution uh of the transaction right but you were saying that there's a potential for B Prime to be invalidated at a later time right so okay so it depends how you want to process so so what you can do is to publish or or to check um in real time

every step and once you discover that something has not been computed properly you stop or you revert and and and you have a backup mechanism but the way it usually works for most is that you publish the data and you can with the lag check that something went wrong or not so for instance with the optimistic rups you have a certain time window to check that what you have published is consistent you could do the same and if it's not consistent you have to revert to a previous state or someone can challenge the the misbehavior cool um yeah that makes sense to me and I guess my last question is just for my Al model um you know in a

typical Network architecture for example um what we run is a set of RPC nodes and then a single validator that access a single sequencer do you see each of these um pieces of the architecture being all in a single node or how do you see that sort of responsibility broken up um across say a sequencer and RPC noes that would say the the validator or the single sequencer doesn't have any RPC end points exposed um and the the RPC ones only have the RPC end points exposed like how do you see all of this fitting into something like that so they should fit on the side of the M pool manager so that's how you can refine the main pool manager yeah so so that's where you try to deal with again having mechanisms

like um um I can't remember what what it's called but I've got the name later on some broadcast protocols where you you try to increase the chances that the transactions arrive you try to mitigate the fact that some um users are close to some uh some nodes and others are not and things like that so that happens on this on this side I would say p management yeah that makes sense to me thank you okay thank just another question the the hash of the B Prime looks to be redundant to me you could you could just remove that and all the information is still available anybody can recompute that yes yes yes I agree yeah yeah yeah yeah I

agree on yeah yeah yeah so you could omit and try to recompute yeah I agree with that so again what what the takeaway is there are three different modules you can they are in charge of three different things and if something goes wrong we can clear clearly identify the module that was malicious right so there's no more questions on this like the previous slide I I'll try

to to to finish with a few things that can happen and and see how it works so we've got this M Pool um even if it's a centralized M Pool and so on so again malicious users can try to spam the M Pool because if you increase the number of transactions that you can you can send similar transactions to a me poool to increase your chances of me attack uh so to to to um let's say to mitigate these kind of things so making sure um that that for instance we are censorship resistant and we mitigate me tax we can again there's lots of broadcast protocols that can can be put in place um and they are simpler than a consensus

mechanism they focus really on broadcasting something from one place to another uh and that's it that's the only thing you have to do in the in the M Pool uh to to protect from spamming uh there are a few Solutions already uh I think because it's not something that that's specific to our design it's something that of course every uh chain and rollup is has to deal with you can have adjustable fees priority fees or mechanism like time boost for instance pay some fees or making sure that uh the price of submitting let's say say 100 of similar transactions is the same as the price of submitting one bit one transaction doing the same so you can you can try to identify these kind of

things and make sure that there are disincentives for user to spam uh the pool but this spamming effect again it it it can be dealt with at the the entry point level the main pool manager level so um I think overall you get the mechanism where you've got different modules so it's very modular you can pick and choose your and refine your your your different modules making them centralized or decentralized if you wish and attribute any fault to to the the agent responsible for misbehavior there was something else I wanted to say but I can't I may remember

later on so the conclusion to this so um uh in terms of um let's say decentralized sequencer or sequencer that's not centralized there's the decentralized sequencer approach so it doesn't really provide censorship resistance you can the agents in the bft or the consensus protocol can can they Define their own agreement right it doesn't uh protect from me because they could also say going to front run and back run these kind of transtion actions the latency in terms of delaying the transactions reaching the the

execution goes up you've got communication and a few rounds of BFD protocols going around and attributing the fault it's also not something that that's very easy there's some research at the moment on not only slashing but rewarding the participant in a decentralized sequencer approach that's not something that that's clear at the moment the shared sequence approach so it builds on top of decentralized sequencer and the idea is instead of having let's say building a sequence of blocks for one rollup you want to build sequences of blocks for multiple rollups so you the main feature if I'm correct is um is to say well I would like these

two transactions on on on on rollup one and roll rollup two to be executed atomically so both of them are not so this is the kind of things you can you can do with a shared sequencer uh but it's not trivial to implement uh and again there's no guarantee that it's censorship or M resistance in the latency is also high and it's also a bit tricky uh to to design a mechanism for rewards and slashing so the fair sequencing mechanism it's probably very simplistic I agree with that but it provides some very well defined measure of fairness so it's it's the the the random function that you're using you

know it at the beginning and and you can prove that the randomization has been computed with this function in the design we have proposed I would say something that that's a bit new is to separate the different concerns and be able to attribute the the the misbehaviors to each of the participants every step of the way um we haven't implemented it we have a a prototype in a simulator but um uh there's not some traction on base sequencing and pre-confirmation uh so it seems to be the way things are going there's also another approach by polygon on aggregation layer um so we we're not let's say we're not

thinking that this design will make it through to to the layers but maybe some ideas of this design we'll find some applications in in the current discussions about the based sequencing and pre confirmations so I've put the well the link here it's not the it's the name of the link but got two articles a blog post on the mantle website that is a short version of the the article in the hackmd and the hackmd version of it has a bit more technical details and some uh some reports as well on the experiment so again that's some work I've done with Aon gleon and Andre Andreas penser and

um it's it's a work of the research team at M so I encourage you if you're interested to read these blog post hopefully we we explain the what is happening in more details and that's that that's the conclusion of the talk thank you um thank thank you Frank that was um really interesting um certainly got us to a different way of thinking of things which is what I love about these talks um so I don't have any questions but does anyone else I know we've had

lots of questions during the talk but does anyone have any final questions for Frank he oh well looks like oh no do blobs do blobs change anything question uh no it's the that's why got this sort of parametric data availability layer I haven't said it changed something in the way that it's cheaper to publish something to the data availability layer or layer one in this instance but it doesn't change the design so you could publish to a hen da or to a layer one

with blobs and so on it's going to be a different price to publish your transactions your data but it doesn't change the design so does um so does all that in all that information is just temporal isn't it it's it's not like after say an hour it doesn't matter does it or maybe it's a week well you can decide but it depends James was asking you the question whether you check in real time or you want to be able to recompute everything from the beginning so you if you're happy with the time window saying yeah well uh we we only keep the like in blobs the information for it two weeks or something like that then that that's

your that's your choice but you should still at least publish it for a minimum amount of time to be able to verify it yeah yeah that makes sense um did you I know I only did it at the last second but did you have time to integrate those final slides yes yes yes yes oh you're a star okay oh right so if you're watching this now live it's on YouTube if you want to be able to ask tricky questions of speakers please um join the Meetup and um come to the meetings directly there is a slack workspace as well okay and next slide or maybe previous slide

oh yep and there's a merch store um get your awesome t-shirts there and next slide um there are a whole stack of um talks coming up and um yep so it's going to be great so please come along and um learn something new all right so Frank thank you again for doing a great talk um have a great rest of your day um this will appear on YouTube probably tomorrow morning I think that's my guess thank you everyone okay all right bye bye bye bye take care

Related talks