Your Favorite Platforms,Fair & Credibly Neutral - Loring Harkness (Shutter Network)

ETHMilan 2024 · 17 Oct 2024 · 13:57

Loring Harkness of Shutter Network uses a game of rock paper scissors to explain information asymmetry onchain. They show how front running, sandwich attacks and visible DAO votes cost users money, why a trusted third party is not the answer, and how a decentralized keeper set using threshold encryption can act as a credibly neutral party. Examples are shielded trading on Gnosis Chain and shielded voting on Snapshot.

Speakers

Topics

From ETHMilan 2024, hosted by ETH Milan.

Transcript

all right guys let's go my name is Lauren harkes I'm here with Shuter Network and Shuter uses Advanced cryptography to make your favorite platforms more fair and credibly neutral now it's really early in the morning so I'm not going to take you through any crusty Advanced cryptography instead let's play a game who wants to play a game wonderful you can play later by yourself this game is super complicated it's super complex um I think I'm going to have to take a minute to explain the rules it's called Rock Paper Scissors anyone ever heard of it

before okay well the rules are are pretty simple uh you've got two players and on the count of three each player shows his or her hand you've got a couple choices rock paper and scissors so uh rock beats scissors scissors beats paper paper beats Rock if there's a tie you do an instant rematch pretty simple pretty fair okay but let's switch it up and we're going to change one important rule we're going to introduce an important element information asymmetry awesome so now when we're

playing this new game of rock paper Sy there player one is going to show his or her hand on the count of three and then the next player is going to be able to look at their hand count to three seconds and then choose their hand now who wants to play this new game information asymmetry as player one you want to play well uh that's too bad no um I love your enthusiasm but no player one is going to lose every single time it's not just that they are at an

inherent disadvantage the fact that the other player can see their move and then choose their own move uh means that player one is going to lose every single time player two is going to win every single time now this is a really stupid game and I'm sure that no one here wants to play this game but the fact of the matter is that most of you play this game of information asymmetry all the time and you do it on chain here's one example front running and sandwich attacks if you are doing a

deck Swap and you submit that trade to an un encrypted mempool you're basically revealing that trade publicly on chain and you're giving the opportunity for Searchers and block Builders to look at your transaction and place transactions either in front of or both in front and behind your transaction and by doing so they're able to manipulate the price of your transaction and they're able to give you a worse price basically stealing money from you in fact front running is by definition someone seeing your

transaction and putting a transaction in front of it based specifically on that information another example is Dow voting and manipulation so if any of you are a part of a dow and you have uh a forum where you can discuss and apply platform where you can vote a lot of times you'll notice that you can see each and every vote as they are cast in real time you can see whether a person voted yay or nay as soon as they cast their vote and that opens the door to a bunch of different types of

manipulation the first type is that a bunch of whales could all vote in a specific way let's say yay and they do so immediately and so smaller token holders look at that overwhelming yay vote and they think there's no way that we can defeat this proposal and so either um they just vote yay or they get dispirited and they don't vote at all another possibility is that uh a voting whale would sit on the sidelines and they would basically just watch to see what the smaller holders do with their votes and if it's going their way

they don't need to do anything but if it's not going their way at the very last second they can cast the determining vote and we've actually seen this play out on platforms time and time again and it actually has a real world impact in the case of uh front running and sandwich attack billions of dollars are lost each and every year and when it comes to Dow voting hundreds of thousands or even millions of dollars changes hands depending on the results of these votes so let's fix this game

um let's introduce uh something called a commit and reveal scheme and a commit and reveal scheme is exactly what it sounds like you get both of the players to commit to their moves right and we'll lock them in place and then we will reveal them this way no one has the benefit of information asymmetry but who's going to monitor them who's going to enforce this commit and reveal scheme well let's introduce a trusted third party right give it up for trusted third parties no no the whole reason we are in

crypto is because we don't like trusted third parties right it is against the core ethos of blockchains and crypto and there's a couple of reasons why when you introduce a trusted third party yes you might solve one problem the problem of information asymmetry but you're introducing other problems one problem which you might introduce is corruption let's imagine we're playing a very high stakes game of rock paper scissors for $100 million if I was player one I would be

willing to bribe The Trusted third party for $99 million if it meant that I could take home $1 million and I as The Trusted third party would find it very hard to resist that temptation of accepting that bribe so even with a trusted third party and bribery we still get back to the problem of information asymmetry the other problem is centralization because when we introduce a trusted third party they are put put in in a position of power they can extract value or money and by utilizing that power and money they can entrench

themselves and become even more powerful and it becomes this downward cycal of more centralization more power more centralization and so on so what do we use if we're not using a trusted third party well this is where shudder comes in we're introducing a credibly neutral third party and here's how it works we still have this commit and reveal scheme where the players lock in um their moves they commit to them and then once all of the players have locked in their moves then we reveal them that

way no one benefits from information asymmetry but instead of having a single trusted third party to do this we use a decentralized keeper set and they generate encryption and decryption Keys using threshold encryption which is X of n here we're introducing an assumption that there is an honest majority of Keepers and that they are Faithfully generating encryption and decryption keys but we're not just trusting them we have a number of mechanisms in order to enforce this one of those is snitching where if a

keeper does try to collude another keeper can snitch on them and get a reward for doing so and then another one is staking and slashing so the keepers themselves need to stake some money in order to be a keeper and also members of the community can stake in order to vouch for uh and say that they have good faith in a keeper if any of those Keepers collude then their Stakes are slashed so let's go back and apply this idea of a credibly neutral uh third party to some of these examples that we

talked about earlier starting with front running and sandwich attacks shudder has shielded trading on nosis chain which we launched in July of this year and it's pretty simple a user submits their transaction such as a deck Swap and it gets picked up by an encrypting RPC which uses the encryption key generated by The Keeper Set uh to encrypt that transaction and then the encrypted transaction is added to the public mempool a builder takes that and confirms the place of the transaction

within the block and since the transaction is encrypted the Builder doesn't know the contents of the transaction so they just put it at the top of the block then the validator works with the keeper set um that generates the decryption key to decrypt the transaction and the transaction is added to the chain as normal another example is Dow voting and manipulation and shudder has shielded voting on Snapshot we launched it in October 2022 uh two years ago and it has already protected

634 Dows it has encrypted 300,000 transactions and 87% of dows who try out shielded voting are still using it one year later and it's similarly simple the user submits his or her vote it gets picked up by snapshot Hub and um it is encrypted using the encryption key uh all of the votes are collected during the voting period and when the voting period ends then snapshot Hub and the keepers work together to decrypt the vote and everyone can see the

results uh one of the really nice things about shielded voting is that although the content of the vote is encrypted you can still see how much voting power was deployed and so you can know whether or not that particular proposal has reached Quorum so that is a quick introduction to shutter which as I mentioned uses Advanced cryptography to make your favorite platforms more fair and credibly neutral if you run a platform um please reach out to us and we would be happy to help you uh introduce a credibly neutral third party

in order to make your platform more fair for end users and if you're an end user you can go to nosis chain or snapshot and you can protect yourself from sandwiched attacks and front running and also from Dow vote manipulation if you'd like to learn more about any of the topics we discussed here today head on over to shutter. network my name's Lauren harkes thank you so much

Related talks