Ethereum: Reducing Trust Between Proposers and Builders

ETHCC 7 · 11 Jul 2024 · 18:21

Terence Tsao of the Prysm consensus client team frames proposer-builder separation (PBS) as a way to reduce trust rather than a topic about MEV. He walks through how blocks are built today, where he says about 90% of proposals use MEV-Boost and depend on trusted relays because proposers and builders cannot trust each other. He breaks down relay costs: expense, latency, onboarding, faults and time to ship, and argues enshrined PBS would improve each. He presents EIP-7732, which keeps 12-second slots and solo self-building, adds payload attesters, and could ship in 2025 if things go well. He asks for feedback from validators, builders and searchers.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Give me a love data. Give me a region. Give me a major. Hello, hello. One second. Here you go. Okay, so hi, I'm I'm Terrence. I am um I work at um this consensus layer client called Prism. Uh if you're staking our main at Ethereum, chances are you have heard about us. But today's talk is not so much about consensus layer client, Prism, Ethereum. Today's talk is mostly about uh PBS proposal builder separation.

That's something that I have been thinking for a while for the last few years. And um, yeah, so I wanna kind of frame PBS in a way it's not so much about MEV, but some it it's it's more about reducing trust. I think today we have a trust issue in the protocol, which I will explain why. So as part of the agenda, I will go over the current block proposal dynamic, how a block is produced, and I will also talk about some of the cost for having this other political trust, which is about 90% of the proposal uses this path. And then I will do some introduction on PBS of the latest EIP we have been working on.

Now I will talk about the advantage of the trust and I will just end it with some timeline and yeah, add-ons. So this is how we sort of imagine how a block is produced when we first start writing the client, right? So you have your proposal, you have your um EL client, get, and since the merge, we combine the two layers together. So as a proposer, I propose the block through my local EL client. The local EL client gets transactions from the main pool, and then when the proposal is going to propose a block, he asks EL client for, hey, can you pack me a block?

The ER client says, sure, and then return the block. Proposal signs the block, proposal gossip the block. And then the EO client can obviously order transactions in any way that's encoded in the client. Some of them sort them by tips, and some of them, yeah, sort them by other means, right? But there is no sort of MEV here because this is a very naive implementation of a builder. But today, majority of the proposal propose block using MEV boost, right? So it gets slightly more complicated because now you have this other protocol actors.

For example, if in the beginning, all the builders want to win this block proposing, right, right? So they submit their block to this trusted party called the relayer. And the proposer, when it's time to build a block, it requests a blind block or a header from the relayer. Proposer doesn't know what the contents of the block is, right? Because if it knows the contents of the block, the proposal should just steal it. So that is a trust issue. And the proposal signs the blind block and returns to the relayer, the relayer verifies the proposal signs the block correctly. If it doesn't verify the proposal sends it correctly, the proposal could just uh steal the block again once the relayer review the block, right?

So then finally the relayer verify everything, and then um if everything is verified correctly, it gossip the block to the network, right? And then you can see the before and after, right? In this approach, there are several or more hubs, and there are several more verification steps, right? And that is because of proposer and the builder, they cannot trust each other. And that is a fundamental limitation we have today, right? And we are paying for this cost, which is the trust, right? And let's go then one by one. Like what uh we'll basically break down what the cost is. So, in my opinion, there are several cost factors, right?

You can go from expense to latency to onboarding to faults to time to ship. So I will go over them one by one. All right, the first is an expense cost. Running a relayer is expensive. There are several costs to it. There's a capital cost, you need to basically set up your server somewhere, you need to hire the right engineers, you need someone to maintain it. And um, there's also security costs. The relayer could be DOS, could be attacked. Also, you need support costs.

Just you need some builders may ask you for help, the validators may ask you for help, right? And as it turns out today, we sort of frame this relayer as a public source good, but the relayers are also competitive in nature, right? Because I want to be the best relayer. As the best relayer, I get to have the we I get to work with the most builders, right? So there are no universal way of compensating relayer today, right? Today, maybe there are grants, but that's not scalable. Well, if every anyone wants to become a relayer, we have 10 relayers, right? And then some relayers are end up doing the bit modification, right? So what happens now is that as a relayer, I get a block from the builder, I get multiple blocks from different builders, I run a second price auction.

Instead of giving the winner's bit the value, I take a cut in the middle. I use the second bit, and then I give that to the validator, and then I give some rebate to the builder, right? And as you can see, this is very messy because different relayers may have different ways of compensating for their work. Some may be transparent, some may be not so transparent, right? And because of this, we may see some builder and the relayer integration, and that is not ideal. And at the end of the day, right, there is this middle party that we have to pay. And who is paying for this, right?

It's the builder and the validator today, right? Because we are both paying for this middle party. Now there's also the latency cost, right? Because of this extra hops, you have to pay. You have to it gets slower, right? We cannot cheat physics, basically, right? The relayer needs to verify what builder give is correctly, unless you're optimistic relayer. And then the relayer also needs to verify that proposal sign is correctly, otherwise the proposal can just drift the builder, right? So this latency also has extra costs.

Because of this, like there could be timing again. I mean timing gain could exist anyway, but because of this, it basically takes more time throughout the slot and people don't like it, right? And because of also latency, you see more reorgs, and there are like builders that are refusing uh to accept blobs today. Oops, sorry. And there is also onboarding costs. So imagine today you are a builder and then there are 10 relayers, right? You have to do the same onboarding step to 10 relayers one by one by one by one by one, right? And that could be like sending a deposit or maybe KYC or some onboarding floor, right?

So different relayers may have different onboarding things, right? But this cost scale scales linearly, right? And then different relayers may have different ways of picking the builder, right? It's like in a way saying that today I am a restaurant, and the only way I can provide food is through Yelp or Doordash, right? I have no way of serving food to individual customers. And this onboarding costs could be costly in the future. Finally, there is also the fault cost, right? So the relayer assembles and controls the block release. And the more auto political software we touch, the more chance that the bug could happen, right? We have seen like incidents from previous uh cycles.

There are post modem that like relayers could miss like validations, and then like it can miss something, and then like the block gets missed, right? And this is not to like shame relayer. I mean, I'm sure they're doing the best they can, but unfortunately, this is the truth that the more software that we touch, like the basically the more box they will run into. And then there's also time to ship costs, right? So as a client developer, as a community member, we want to ship as many features as possible. And unfortunately, today we do one hard fork per year.

And a lot of hard fork is with testing coordination, right? Coordination is expensive as we know in Ethereum today. And then coordination for other political features is even more expensive, right? There's some more cycles, there's more risks, and then this is the cost that we have to pay for other political actors. So I want to do a brief introduction on EPBS. So what EPBS does in any EPBS form, EPBS has different forms. You can do just in time, block auction, slot auction, execution take it, execution auction.

But most of them has sort of the same format. The first half of PBS, you propose your consensus block, and then the second half of the slot, the builder will reveal their execution block. And there is typically additional run of voting. So today there's just one round of voting, one round of aggregation voting. But in this case, there's another round of voting. And then this votes whether the builder has revealed its payload correctly, right? So in this case, we sort of replace the relay role with another round of a tester.

And these are testers are in protocol. So what does EPBS guarantee today? This is EIP 7732, which I will go over. It guarantees some proposal safeties, builder safety, meaning that as long as builder reveals block on time, under certain honesty um assumption, the builder's block will be canonic uh will be canonical. The builder could also choose to withhold a block too if they're not comfortable to um reveal. If the proposal block is also weak in terms of head votes, they can also, in terms of um, so therefore builder can withhold and which will give way to the parent block, right?

We also want to maintain the same property that proposed as a solo validator. You can self-build your own payload, and that's very important. We want to we still want to have solar validator and sell and sell building there. We also want the slot time to remain at 12 seconds. We don't want to increase the slot time because we think there's a lot of downstream effect if we increase the slot time. So I will go through the same five points right now, and then I will talk about what are the benefits are bringing this trust to in protocol. Okay, the first is improvement on expense, right?

So for this, we get this guarantee that the builders that wins the bid, the value is indeed the true value that will pay to the proposal, right? There's no more modification of bid, right? So therefore you have transparency. And uh we also don't have to pay, say, like an extra party in the middle. I mean, although there could be costs, say the builders open their RPC port for the proposal to query. There could be costs that builder may be doing more things now before the relayer was doing.

So that part is not clear. But I do think there will be an improvement on expense that I would love to quantify sometime in the future, right? And then the only cost here is you have to pay uh payload attesters, the actual committee, which turns out to be very cheap. We also get improvement on latency, because imagine you have three parties, now you have two parties. So there are extra network hops you can reduce. As a relayer, you no longer need to verify the proposal block, or you no longer need to verify the builder block. And those are essentially out of out of the path, right?

The protocol already will verify that for you. So because of you can improve on latency, you can pipeline on consensus and execution. So it turns out this was a very desirable feature as we learn more and more. That today you have this one second time to process the EVM contents of a block. But with this pipelining, you can increase the processing time to EVM to some what to six to nine seconds. And this will assume the state growth is solved, you can increase your guess limit, and generally the community will be very happy about that. So once you improve the latency, you can also increase the blob size, the blob count.

It's good for inclusion list, you will get less rework. And the beneficiary here is the protocol. Also, now we have this improvement for onboarding, right? So now as a builder, I can advertise myself to validators. I don't need to go through the relayer to advertise myself. And this also is nice for say today I am a non-censoring proposer. Say today if I'm a non-sensoring process, today if I'm a non-sensory proposer, I connect to a non-sensory relayer, but that non-sensory relayer could still connect to sensoring builder, right? And a sensory builder can still build a high higher-bit block, and I am still proposing a sensor block, right?

But with this, you can actually have this direct connection to non-censoring builder, and therefore you can increase network censorship resistance. Overall, it's just a healthier, competitive builder market without having to go go with having to go through the relayer. The validators could still rotate the builders using RPC endpoints like before. And the beneficiaries here are just, in my opinion, all parties, builders, validators, and protocol. We also can improve on fault recovering. So, like I said before, before when the relayer goes down, we see incidents that a lot of blocks go missing.

Some of the last incident, I believe, is about like 200 blocks. And because of now you allow the proposal to work on the builder, I know exactly the builder's public key. So I can improve, I can add circuit breaker in a way that if I see today there's an invalid block from that builder, or I see there's a missed slot from that builder, I can just as a next slot proposer or the next couple slot proposal, I can just do this circuit break. I can say, well, I don't trust this builder anymore. I will not accept bid from him.

And therefore I will use some other builder. But today we cannot do that because we're going through the relayer. I mean, we could do it, but we need to add a lot more work to it. And doesn't sound like this is best going to um places. So the circuit breaker per builder could be implemented on per builder base or different things. So those we have complete, uh those we have freedom of. So the beneficiary here are the proposers and the protocol. Less, I do believe there's an improvement on timing to ship things because of now one last party to worry about in terms of shipping new EIPs, new features, there's reduced dependency, less box, and uh the beneficiary is the protocol. So I want to talk a bit about EPBS composability.

So I know EPBS is a very loaded term. It has been ongoing for the last few years. When we talk about EPBS, it's important to know what auction scheme it has, what commitment scheme that the proposer commits to the builder. For example, you could have the just-in-time block option, just like MEB booths. You could have slot option, which we don't commit to the block at time, we commits to the header. You can commit to a future block, you can commit to execution ticket. And ePBS also opens to the door to many wonderful things.

For example, I'm sure you guys have heard of EPS, a tester proposal separation. It makes inclusion this much easier to implement. And then it opens the door for MEV burn. So to me, this EPBS is, or this EIP7732 is very exciting because this is the first incremental step on something that is more towards the end game. So I will briefly talk about EIP7732 that just opened two weeks ago. It was Francesco, Potus, Barnaby, Mike Newder, and myself.

This is the first EIP that's attempt to organize protocol service. This is a block option-based design similar to MEV Boost. All the changes today are contained within the consensus layer. That is very nice. We don't need execution layer changes to it. And we are hoping to have a Defnet before DEF CON. And it's probably too late to ship this in Petra. I mean, Petra is loaded right now. So hopefully, if everything goes well, we can maybe ship this in 2025. Okay, so this is the last slide.

Okay, so if you're looking to contribute, I am actively looking for feedback from validators, builders, and searchers. Like tell me what works, tell me what doesn't work, tell me what you are doing today that you love, but then it doesn't work under this paradigm. We have biweekly EPBS breakout code with uh with all the stakeholders, researchers, implementers, community members. We also have an Ethereum RD Discord channel.

It's the EPBS channel. So if there's active conversation going on, you can do that. Or you can DM me on Twitter and Telegram. I'm typically very responsive. So yeah, thank you for your time. Sure. Do we have any questions? No questions. Okay then, thank you very much.

Related talks