Social Slashing by Eric Wall | Devcon Bogotá

Devcon 6 · 15 Oct 2022 · 29:19

Eric Wall argues that censorship resistance is a property of the Ethereum community as much as of the protocol. He recounts Bitcoin's 2017 user activated soft fork as a precedent, then follows how OFAC sanctions on Tornado Cash led to censoring relays, block builders and validators after the merge. He explains why proof of stake makes individual validators attributable, and presents social slashing as a coordinated community response to punish censorship. The Q&A covers its risks, application-layer censorship and open research into automated detection.

Speakers

Topics

From Devcon 6, hosted by Ethereum Foundation.

Transcript

foreign [Music] this is the hill that I'm willing to die on if we start allowing users to be censored on ethereum then this whole thing doesn't make sense and I will be leaving the ecosystem and I think there are a lot of people that think the same thing powerful words by ethereum developer Marius vandervaden by the way do you know that 50 of transactions actually 50 of the blocks in ethereum right now are being censored

they're ofak compliant who here in this audience recognizes this image can I say a raise of a hands what if I say the name Shaolin fry does that ring a bell okay there are very few hands this is one of the most important symbols in bitcoin's history and it tells a story that I think that every crypto cryptocurrency person should know so let me tell you a little story so it's winter in 2017 the end of February Bitcoin is trading at around one thousand dollars and for the first time in bitcoin's history the blocks are full the mempool is full there are rumors that there's

transaction totaling 900 000 Bitcoin stuck into in the transaction queue now there is a an upgrade there's a code that's dormant in the code base that has that includes a a solution to this problem segregated witness has been deployed on the network but it hasn't been activated so this is a soft Fork style upgrade and it's configured to activate after 95 of the Bitcoin mining hash rate signals their support for the upgrade it's it's the same upgrade process that the last three soft Fork has used for the last couple of years but this time the upgrade isn't getting

support we've been stuck in this deadlock situation and we're not getting anywhere we know that with 51 hash rate we can break the deadlock that the miners can do it if they want to um but we're not even close to 51 percent so we're in a Deadlock then out of nowhere comes this unknown relatively unknown developer and posts an email on the Bitcoin developer mailing list where he explains that you know this signaling methodology that we're using it's a misinterpretation the softwork rules are actually always enforced by the notes not the miners so what what this felt like by the way this is called the user

activated software this is an important phrase to to remember so what this felt like is basically like imagine that you're a baby and you're drowning in a very shallow pool and then your mother reaches in her arm and teaches you that actually you're not drowning you can just stand up you just use your legs your head will be above the above the water so we call it the um the Independence Day in Bitcoin it's the um it's the they were bitcoiners took a front seat in in the car that's driving the upgrades and you can argue that bitcoiners weren't really Sovereign users when they believed that they were at the behest of miners will the will of miners to determine which upgrades make it into

the protocol so this is really important uh really important event in bitcoin's history and this is a bit cliche this image but really what I think happened is that we create these structures these governance structures in blockchains where we believe that those governance structures that we create are the only ways that we can change the network but many times they're just they're out of convenience there's the only thing that is in control is the market you can create new rules and if you get the market to follow you then you can set new rules you don't have to abide by these structures that were created for ourselves so we did this in the Bitcoin we were successful at it

so the the uh one thing to recall though here is that right before this software got activated by the user's setting and activation date in their node software the miners actually fell in line so the miners did what we wanted them to because we forced them forced their hand by showing them that if they don't abide then then we'll just implement the software ourselves and they have to create blocks that abide by those validity rules so the actual the actual outcome Matrix and the situation was rather complex I don't want to brush over user activated softwares and say that they're like super simple thing they're actually quite complex and you can run into scenarios where there's chain

splits and there's replay attacks between those Forks so it's something that you gotta Implement with care and you got to be strategic about it but the overall like takeaway the conclusion from this is that block producers are merely Servants of the protocol and we don't ultimately have to abide by how they act so this story has this sort of um Cinderella quality or like a David and Goliath quality to it where the little man stands up against the big corporations and something that really galvanized the Bitcoin community and I think that at this time that we see this type of galvanization happening also in the ethereum community because the ethereum protocol is facing a threat that is perhaps much bigger

than the one that Bitcoin faced so let's go back in history and talk about the three greatest threats in my opinion that has faced the ethereum protocol so June 2016 the dial hack this was one this was when uh ethereum's immutability came at risk and then September the same year the Shanghai DDOS attacks this is when ethereum's availability the uptime of ethereum came under stress and then we have just the two months ago in August I don't know exactly what to call this event but I've decided to call it the uh the ofak oh [ __ ] and this is when the neutrality of ethereum came at risk now just a quick recap you remember this of

course um in August the treasury Department puts contract addresses to tornado cash on the ofak sanctions list and on the 10th of Augusta Alexey purchase gets jailed and what happened then was that this this Avalanche of compliance that started to threat the ethereum network where we would see front ends implementing wallet screening uh which is fine it's just the front ends right the if the front ends decide to censor users that's that's okay right but it uh so we saw for example Anthony uh sassano and Justin Sun by the way shout out to uh shout out to David Hoffman

who's actually suing the treasury Department yeah he was also one of those guys that got his what his wallet dusted and he's also was also unable to use Ave because of that but it didn't stop there like we found out a couple days later that flashbots we're censoring transactions that had been doing it for quite some time also so we now feel like the The Noose around our neck is getting Tighter and Tighter now we even see censorship happening at the Block building level and then the sort of death now the the the worst possible thing is when we see that even the base layer validator so the the block producers so this is ethermind the I think it's

the largest it was the largest mining pool in ethereum even they refuse to implement uh sorry they refuse to include uh tornado cash transactions because their their interpretation of of the ofac law and this is the worst possible thing that can happen right when our validators are afraid to include transactions because the U.S government doesn't want them to and amidst this we had this in our Infamous tweet by Brian Armstrong where so coinbase was at this point in time uh going to be the largest uh single largest validator on the ethereum network after the merge and he puts out this tweet where it says well hopefully it's obvious but we're going to follow the law which is fine but it's not super great to have your largest validator

basically saying that we're kind of feels like they also feel like they might may have to to comply with ofac so with the merge we sort of went from this situation where we had hash rate from all over the globe connecting to these mining pools and now after the merge web this situation where the largest the largest block producers are single companies in in regulated jurisdictions like coinbase Kraken and binance and if you look at how many blocks they make from Epoch each Epoch has 32 blocks coinbase makes six minus makes one Kraken makes three that's 10 10 11 in total that's actually enough to create serious damage uh and sensor the the ethereum network if they if they wanted

to so I saw the I saw these images looking at the um uh the the the live stream for this event where two paths were being described and we have proof of work here on the uh left hand side censorship centralization but it's I mean I'll be the first one to admit I don't know how you guys feel but the the transition to proof of stake did bring I mean it did bring us closer to having the neutrality of the platform endangered I've I used to think that like crypto ethereum Bitcoin it's this amazing movie that we get to watch from a front row seat but at this moment I felt like I wanted I wanted to scream at the screen

because we always used to say like this is a this is a blog post by Vitality from years ago we used to say that the um harder to harder to detect attacks like censorship a coalition centering if that happens we can coordinate a minor minority user activated soft work which in which the attackers funds are once again largely destroyed so this is always this was always the plan that we would do this in this type of situation um Patrick McCory has this beautiful imagery where he describes what vitalik is really getting at is that in the ethereum protocol you can selectively Target specific validators and punish them individually based on their actions

and we do have a track record of what they're doing right so in proof of stake you can there's the the actions that they do are actually attributable because they got to put their signatures on specific blocks when they're testing you don't have that quality improve of work so it so in proof of stick you actually have a superpower we have a mechanism that allows us to selectively Target specific validators and if we can detect that they are engaging in a censorship attack on the network we can coordinate a soft work that punishes punishes those specific validators individually and we don't have to blow up the entire network which we have to do in proof of work if you want to change the proof of work function for example so I gotta I gotta mention this I feel

like I have to talk about this there's you've seen I think most of you probably seen this graphic where 50 of the blocks in ethereum are currently of fat compliant is this a problem yeah I think it's a big problem so what should we do like should we slash every single validator who's registered with an o5 compliant Mev boost relay I feel like we have to separate between between two separate issues here so one thing that's very important to remember is what is the reason that flashbots exists so there's censorship in the network can happen in two different levels or actually three there's more levels but the two main ones is in the block

construction process and then also at the validator level the current censorship that we're seeing in the network is in this red box here in the Mev boost portion you have to remember what was the what was the reason that flashbots exist well it's because what if in ethereum there's only one validator that's really really good at extracting Meb there's only one validator that's really really good at extracting Mev they are going to be able to provide much higher staking yields than anyone else and then you're going to see so let's imagine that's coinbase for example let's imagine that coinbase is really good at this well then you get a much higher yield if you delegate your stake to coinbase versus for example staking on your own this is why flash Bots exists it's

because they're allowing any validator to mine uh to make blocks as if they were flashbots if as if they had access to flashbots Mev extraction techniques so what flashbots is doing is allowing validators to not have to redelegate their stake to someone else but still be able to mine these very profitable blocks so they're preserving validator level decentralization in the system now it's come at an awful cost right it's come at the cost that that they are now in fact compliant and they're building these uh uh blocks that everyone's using they're relaying these blocks and this is a terrible thing but it at least we have the at least we have the opportunity here that validators can use

other relays and there are technical ways that we can uh so basically before the merge flashbots only use to create a portion of the blocks so we can go back to such a model we can use PBS we can use inclusion lists uh we can use partial block auctions and we can go back to a model there are Technical Solutions to this specific problem uh which we're in now where flashbots are creating these entire blocks and the flashbots is centering censoring that that also then applies to the validator but at least we're in a situation where validators can use other relays and we can Implement these Technical Solutions that force uh Mev Builders to include certain transactions so there's a solution to that uh whereas if all the stake was centralized in

coinbase hands and they started centering well that's a much worse problem right so this is why I'm not going out on Twitter and saying let's slash all the all the validators that's using flashbacks what I'm what I think we got to do is we gotta explore these Technical Solutions to reduce the impact that the Mev relays and the miv builders has there's a there's a way for us to dig ourselves out of the hole that we're currently in so let's talk about the the the more pernicious problem here which is what if the validators so even if even if we um uh have a bunch of different relays that all create very profitable blocks and the validators validators can choose between those blocks but what if the

validators themselves they want to censor the network they think that it's their mission to make sure that ethereum is of fat compliant so what you have to recognize here is that there's two different ways that the validator can think about this and there's two different forms of censorship so the first one is that you basically just filter transactions that the transactions that you include you make sure that no offic compliance get into the chain in this situation even if 99.9 of the validators do this as long as one validator in the system does not do this that transaction still gets in so this is bad I mean 50 of the blocks in ethereum being offer compliant is not a

good thing and we have to monitor that monitor that and maybe we gotta do something serious if it reaches 90 but it's there's one attack that is much much worse which I call a censorship attack which is where validators refuse to attest to blocks other validators blocks if they include such transactions so this is a this would result in a system-wide in system-wide censorship if validators decided to do this and I think this is the one that we should treat equally as if it was a double spend on the network if we see anyone doing rework style censorship in the network that results in system-wide censorship and that's what we really really gotta charge our uh laser laser eye charts for right this

is this is the most pernicious attack I still don't think that it's a great thing that 50 of the blocks and it's it's a rising figure right two weeks ago it was twenty percent thirty percent now it's 50 so we have to monitor that and we can't let that number go too far but I'm sort of willing to um like maybe there's different punishments for these two attacks like the first one that's more benign in nature maybe you can uh create a hard Fork that only allows those validators to unstake their ether and basically exit the network and it'll take them a couple of weeks it'll take them a couple of months it's the red one here the latter one the second one that is the one that we should treat equally as if it was double Spin and by the way what I'm saying this

what I'm when I'm saying this I recognize that you know I'm arbitrarily coming up with rules for slashing in ethereum and this shouldn't be something that's arbitrary this is something that should be a policy that we all agree on but we have to start somewhere we have to come up with some sort of policy I think that validators want to know like what is actually a slashable offense in this network a slashable offense in this network so what we can do now is we can start to formulate the policy we need to get together as a community we need to see how we feel so we can understand like what's what different routes are most likely to get system-wide consensus so it doesn't make so much sense for me

to say this is what we should do in this situation this is what we should do in that situation but the overarching element is that we need to come up with some sort of policy so that validators understand what are the different punishments so for example uh when when uh coinbase or any other validator in the system thinks about double spending for example they don't need to think about okay what happens if I doubles but they know they know the punishment and that's something that now we this requires a social element but we need to give them sort of similar deterrents so that they know what the punishment is now we have bought ourselves some time and I think it's uh so this is the chief legal officer of coinbase that says that their current interpretation

of the ofak law is that there's nothing that compels them to apply any form of censorship on the base layer this is good but I don't think that it should be up to the interpretation of a single company or a couple of companies whether or not we have censorship in the network we need to make the decision Matrix for them look similar to what it does in the double spending case like there is no choice here like if you double spend you lose your stake you're no longer on the network that's how it needs to that's that's how it needs to be for censorship also so where are we currently with this so in August I made a poll where I basically asked the ethereum community to the extent that I could so what do we do in the situation where you know ethereum is basically being censored do

we allow that to happen or do we slash we burn the stakes of the validators that are making this happen on the ethereum network and it seems like currently the um sort of you know the Twitter pulse is not a great thing to to assess this which is why I actually think that I want to be able to speak with you guys I want to be able to meet you in this conference here and ask you what do you think that people think about this issue and you and you're going to tell me well all of my friends think that things that we should slash System Watch censorship attacks real style censorship attacks but we maybe should come today we maybe should do something different if it's just you know transaction filtering so this is a discussion that needs to happen in ethereum

um so that we can get a better grasp of what what is actually what is the consensus view on this so um Ryan Sean Adams voted in this poll and he gave us this great logo for this result so the the um the uh answer here to to slash the validators got the symbol the Black Flag instead of waving a white flag you wave a Black Flag which means if there's censorship in ethereum we slash those [ __ ] so what is the Black Flag movement the Black Flag movement is sort of a just a movement of people that declare that they would be willing to go as far as to support a manual Fork of the protocol that removes the stake of validators that engages in attempts to achieve system-wide censorship now a lot of

people get iffy around this like oh like I don't want to slash coinbase because they have retail users it's ultimately their balances that will get slashed but if you think about it when if coinbase double spends they get slashed so there's not that they're like they shouldn't really be an ethical question we slash them when they double spend we slash them when they censor like that's not a controversial statement of course it's more if in this situation because we're doing it in a more arbitrarily way we don't have uh codified rules that execute this in an automated fashion so we need to be a bit more humble about it sure but the ethical element to it should be sort of clear that we don't allow double spends we don't allow censorship so this is controversial yeah for sure and this is one of the reasons that we

can't expect I don't think that you can sort of rely on your traditional leaders in ethereum to be the primary spokespersons for this because imagine vitalik saying you know we're going to slash this validation we're going to slash that validator then we're just back to you know everyone criticizing us and saying the overlords of ethereum decides who gets to keep their stake or not like we don't so this has to be in its nature it was the same thing in Bitcoin the Bitcoin core developers did not actually support the user activated soft work they took a back seat uh they took they took a back row seat in this discussion and allowed it to be a Community Driven initiative

so it's really us it really comes down to us to push for for this type of social slashing Fork if that happens because we cannot rely on our traditional leaders to do that because it just needs to be Grassroots in order for it to be authentic now if you're still like on the fence about this like one thing that I want you to remember is that not even Swift not even Swift applies olfac regulations on the messages that are passed in their in their in their on their Network because they recognize that so Swift is a cross-jurisdictional messaging system for banks if you if you have to abide by every single jurisdictions ofac laws and regulations you cannot have a

cross-jurisdictional uh messaging layer so this is a you just can't you you can't comply with every single jurisdiction at the same time which which is why you can't have a network level of censorship for a global system it just doesn't work so not even Swift does this and I don't think that ethereum should be any worse than Swift um there's just one last thing that I want to say here about this this image here um it's this image was generated by an by by stable diffusion so there's uh gpus that has rendered this image and those gpus are actually repurposed ethereum miners so those ethereum miners that use the

secure ethereum are now actually they're actually in this room with us helping me tell this story so they're still with us oh by the way I just have to get to give a shout out to Nick Carter who helped me create this image so he's not on Twitter anymore but he's still still also with us um actually that was that was the end of my talk so thank you very much I think we have some time for questions thanks uh for the great talk Eric really appreciate that uh what do you think the risk is today for people to ignore the ofac guidance I mean they could tell the isps to cut off our interconnect internet connection um have you thought through other

possibilities of what the governments may try to do if we don't comply with the request the other speakers okay hello yeah so I'm not an expert on that topic um we've seen we've seen that coinbase doesn't see it as their role to do anything on the validator level uh to comply with ofac so they don't currently interpret the uh law of the ofac law that they have to apply any network level censorship so I think you know it's a little bit weird that flashbots thinks that they have to do it uh I can't really speak to that on the application side it gets more iffy I think that for applications

I think that like D5 applications maybe should not have like they shouldn't be like Incorporated in the US maybe if they want to but actually there's another way that you can like if as long as you allow the smart contracts to run an ethereum anyone can build a front-end to that right so that's the way that you can sort of get around that issue of of of um you can have D5 working and then you can have other entities created from the front end Studio smart contracts but I don't have a great answer to your question because it's not my area of expertise thank you um hierarch first of all let me Chrome garage to lead you for the great job that you did uh debunking that hex cam I remember that video

the Richard Hardy interview amazing I'm a professor myself here in Colombia at the main University and it's uh it's called the University of national Colombia so I do a job that is similar but trying to debunk scams people love scams here in Colombia so hard sometimes but anyway my question is um I don't know if you remember a few months ago that some transactions were censored for Venezuelan users through metamask and that's before the you know the proof of stake ethereum system so is is the same as as you as you mentioned in your

presentation yes I think that I recall this also and so my stance there is basically so private companies what type of censorship that they apply to their business is really up to them as long as it doesn't happen on the network level because you can still use another wallet like you can import your seed from export your seed from metamask into another wallet and access those funds and move them around even if you're a Venezuelan everything that happens on the front ends at the application layer especially things that are like off chain is is like it's bad that companies do that and we should try to get them to adopt a

more open approach But ultimately it's like Network level censorship that's really the thing that we need to need to focus on because someone can always build another wallet someone can always build another metamask so that's the only answer that I have to that question okay thank you last question real quick thank you Eric thank you for bringing this excellent to Devcon what's the Obstacle of bringing the censorship resistant to the protocol level what would be the Obstacle of especially on the validator related yeah that's a that's a great question and there is a whole body of research that tries to in

an automated fashion detect censorship and Implement like slashing attacks slashing responses in an automated fashion I would say that the current to my understanding I'm not an expert in that either but to my current understanding there are partial Solutions there are partial solutions that are still on the you know on the on the Whiteboard there's nothing we should probably expect that even even these partial Solutions will take a couple of years before we might see them integrated in the protocol level so social slashing Remains the primary defense mechanism for now it might be such that we have automated ways which would be much better right because then it would be codified automated no subjectivity no arbitrariness so that's the goal right

so that's an open research area we might see advancements in that area that come underway but currently we still have to rely on this social element uh where we are currently right now that's it yes let's uh thank Eric

Related talks