Get the Monday email →
Loading player…

Your RPC provider sees too much: a standard for anonymized wallet reads

DevconSun, Nov 8, 2026, 12:00 AM

Transcript

[music] [music] Okay. Um, thanks Hugo. Um, like you said, so my talk is called uh, your RPC provider sees too much. Um, my name is Andrew Morris. I work on the access layer at Ethereum Foundation and I'm thrilled to be here.

We'll be talking today about uh centralized RPC providers and um what the well the problems with them and what we're doing about it. So let's get into that. So quick story time. Um last year Dev Connect was in Argentina uh and we had a um outage with uh Cloudflare that took down lots of the internet. And unfortunately we got to learn uh just how much of the Ethereum ecosystem also depends on Cloudflare.

Uh because sadly many people you know their whole reason for many people their whole reason they were there was to present their demos and very many of them uh did not work. So, I think this is sometimes a bit uh underappreciated um because Ethereum itself is this really nice peer-to-peer decentralized system and that system, you know, didn't have any problems. The network just kept on producing blocks like normal. Um but there was this outside connection that for not for everybody, but for many people who rely on these centralized RPC providers, you know, they work really nicely when they're doing the right thing. um but when they go down they can fail spectacularly uh in this way.

So would like to uh you know make this system more decentralized and resilient and so obviously another big problem you know uh when the system is working properly I think you can uh think about it something like this you know you've probably been one of the people in uh this image many times and you know there's a small number of servers that are taking those requests and can see uh everything that uh people are asking And uh it's a problem for two reasons. You know, your privacy like I was saying before and like Kiw mentioned uh that you are what you read and you know this is not necessarily something uh you want people to know. Uh but it's also a vector for censorship as well. When we have the access concentrated in a few providers, uh it means that you know uh for for actors that want to uh censor access, they can um you know do a a wrench attack or whatever you call it the um and and and uh interfere with your access that way. you know either by censoring particular people um or censoring access to uh particular services.

So I want to make a quick distinction. Uh many of you were here for Kiw's uh talk just now uh before me. Kiw spoke about uh protecting the your requests the the content of those requests from even being seen uh from the server on the other end using private information retrieval. And so my talk and my work is about the other half of this equation which is about protecting uh against who is making the requests. Uh so sometimes uh private information retrieval um you know it's uh requires these big uh GPUs and so there's challenges in in rolling those out.

Um, but even when you do have it, it still makes sense to say, um, you know, it' be really nice to to have both because even if the, uh, provider can't see what you're asking, they're still seeing where the request is coming from and your access pattern, your time of day, when you're interested, which still can reveal a lot about you. Moving [snorts] on. So if you have uh any doubts about whether RPC providers are actually uh actually care or actually looking at what you're asking uh let me assure you they they definitely are. So there's a big financial incentive for them to do so. It's most uh evident in DeFi um because the you know the pools you're checking the positions you're checking the uh addresses that you're interested in uh they give very strong clues about you know what you're about to do next.

And so uh people who have this information in their hands uh they can uh trade ahead of you and that takes a lot of the the edge out of your uh activities. I think this is kind of unfair. Um but even if like you know you understand that's what's happening and you like you know getting access to uh this service in exchange uh still um because you know that can be um that can be a thing and you know people making money isn't in itself a bad thing. Um but it still represents a hurdle for us that we want to move away from this system and but there are participants that have a financial incentive to keep things the way that they are. So what do we do about this?

The most principled alternative is to run your own node. Um something you probably heard before. There are lots of really great advantages to running your own node. And don't get me wrong, if this is your thing, you know, there are other advantages to doing this. And so highly encourage you to do it.

But it does cost a lot of money. Uh and there's quite a bit of uh setup involved, you know, thousands of dollars to have um the hardware, particularly that, you know, solid state drive is a bit of a killer uh especially in the in the AI uh age with the demand on these components. And so, like I said, this is a great option. Encourage you to do it if that's your thing. But, you know, we really want, you know, hundreds of millions of people to be using Ethereum.

Uh, and hundreds of millions of people are are not going to do that. So, it's a great option if it's your thing, but uh, we need to look elsewhere. So, another option is, you know, many of you may have heard of the the tour network. So, quick recap on that. you know, you basically you relay your request through through uh through a few nodes and there are these layers of encryption so that each node only sees where the request is coming from and where it's going to.

And so this, you know, this is a great step, you know, that it's uh effective at uh hiding where your request is coming from. [snorts] And but there's a couple of problems with this one um is that you know generally the way you use tour is you might you install the tour browser or set something up on your system and it's a separate step that you need uh the users to to do and uh my apologies I forgot the other one. Um so you know this represents a barrier. It means that uh you know it's like I said before with the home nodes this is a great option if you feel like doing that. Um the other uh problem I just remembered it was that you know generally when you set up tour your all of your traffic is going through tour um not just the parts that need to be protected and you may want to protect all of your traffic and that's great um but it comes with a performance penalty and you might not not necessarily uh want to do that.

Um, so yeah, there are those two problems. And like I said, this is another case where if this is your thing, it's a great option and I encourage you to do it. Um, but again, for hundreds of millions of users, um, it's probably not enough. Now, there is another way to use tour and other networks like it. um and that is rather than uh setting it up as a separate system, it's actually possible to embed the code for these networks directly in your application.

Um and this can be something that is uh challenging to do. Um but it is possible and I would really like to see it happen more often. Um and so that's why we created tour.js. This way when you have your your wallet or your DAP that you're accessing, you can have this network directly embedded inside of the application.

So there is nothing else for the user to do. You know, it's a prerequisite that they're using whatever the application is that they're that they're using. And so it can just be there. And many users may not even know that this thing is there protecting their privacy. And for the for the people who do know about that sort of thing, they can find out about it and realize that oh hey, this is great.

you know, this is the product that I want to use and I'll tell my friends about this because I want their privacy to be protected as well. So, tour project uh has this great initiative where they're rewriting their project in Rust. It's called RTY. And great thing about Rust is that it compiles to web assembly and it's possible to run that in the browser. And so, it doesn't come for free out of the box.

There's always like some uh you know small annoying issues to support a new platform. Um, but this is the effort that we did with 4.js. We got it working uh in web assembly and also packaged it up into a nice JavaScript API so that you have a fetch function and that will plug into your wallets and if you're using ethers or beh or or what have you um you know they have ways that you can say here use this fetch function instead. uh and that fetch function just goes over the anonymization network uh instead.

So that's potentially the end of the story, right? Um but I think not. The problem with this is [snorts] that you know tour is just one network. Um and these different networks, they have pros and cons there. People have concerns about tour.

And I think that the the the story of you know how we anonymize requests is not fully solved. You know there are different networks um that do things differently. In particular there is a concept of a mixnet which additionally adds uh cover traffic. And so there are networks like NIM that do that. And at Ethereum Foundation we really don't want to be saying hey use this third party product.

It's the solution. It's great. you know, in the same way that we don't say, "Oh, here's the wallet endorsed by Ethereum Foundation." We don't do that. Um, so we really want to have a system that allows, you know, different uh third parties to participate.

And so that's why we created an RPC. It's an interface that sits in between the the wallet or the or the D app and [snorts] the different anonymization networks. So on the left without something like an on RPC you [snorts] would have you know for every network that you want to support and every wallet that wants to support it that you know there's a separate line here that represents an integration that somebody needs to write and maintain but with this common interface uh instead you just you add your support for anon RPC uh as the wallet or the DAP and then on the other side the network um you know uh writes uh some some things that I'll get into in a minute uh to make an on RPC work. And so that means that you know once those two sides uh have done that thing then each each one on the left can talk to each one on the right without any further effort. So there's another um npm module that's available for this that you can use.

So we call it a harness. there's the code that sits inside of the application that needs to be integrated. Um uh yeah because the you know like I said go back to this previous slide you know there's no further work that needs to be done by the wallet in order to integrate the different networks and so that means that you don't even know what those networks are ahead of time potentially and so there's a piece of code that you do need to integrate but then the network code is actually loaded dynamically. So, but this part that you you do need to to integrate and you know we have this reference implementation that you can access here. Um, but it's also an open standard.

So, wallets can choose to uh implement the standard uh in their own way as well if they prefer to do that. So, we get this nice convenient API where you you provide an address here that's actually an Ethereum address. Uh, and like with the tor.js JS package before you just get a fetch function out of that which should um be nice and familiar and plug straight into uh the systems that you're already using. So I mentioned a second ago that it's an Ethereum address that you specify here.

So this is what the the network publishes on chain so that you can discover their code and run it.

[snorts]

And we do that by this simple contract interface. And that specifies these two things. The hash of the code that you want to run uh and a list of places of where to get it from the worker resolvers. I call it a worker because it runs in a web worker with isolation. I'll get to that in a second.

And so as an example to make that a little bit more clear, um these are the concrete values that you will see on chain right now for the tour.js contract. So we have the contract address there and so the hash is just you know it's a bunch of random numbers because it's a hash. Uh and then there are a bunch of uh URLs where you can get it from. So the harness will go out to one of these resolvers download that code but then it won't run it blindly.

Instead it will do the hash itself make sure it matches what was posted on chain. So that that way the code that you're running, you know, we can't just post it on chain directly because unfortunately it's not economical to be posting megabytes on chain. Um at least not something you're updating frequently. [snorts] And uh so but the the chain the this onchain information still pins what needs to run. Um, and that means that you can govern it on chain and there's all lot like like a nice ecosystem of of solutions of how that happens with Dows and what have you and update delays and you know we don't have to worry about that with Anon RPC.

It just comes as part of the Ethereum ecosystem. So I want to talk a little bit about I mentioned before that the code is loaded dynamically. So when the harness it goes and gets the code it makes sure that the code is correct. doesn't just run whatever um the these providers give you. It checks the code is correct and but then it also runs it inside of a sandbox as well.

So there's a web worker um that's inside of a null origin iframe and the it's a bit underappreciated. I think a browser your web browser is actually designed to run untrusted code and it's not foolproof of course there are exploits that happen against browsers. Um, but it does a decent job, you know, and it's a lot better than just running code normally. And in the in the context of, you know, a wallet, you know, you may well have your private keys in there or at least, you know, um, ways to access your hardware wallet. And, you know, the network code has no business having access to any of those things.

So, we offer you this protection. Um, particularly because the code is loaded dynamically. um the the wallet developer, you know, doesn't uh isn't doesn't have the opportunity to check this ahead of time. And so we run it in a sandbox to protect you and not just for your private keys, but you know, all of the other things that uh maybe in your wallet uh that again the the network code has no business accessing. And [snorts] this is a little preview of the API that you get access to if you're an anonymization network.

um you know you don't have to worry about this if you're on the application side but if you are uh if you're anonymization network this is the way that they implement this behind the scenes so in particular those two lines in the middle there uh where you're accepting calls from the application so you can see what is the URL and the options that the application wants access to and it can go and implement that in its own way and provide the response back to the uh application So I' got a few minutes to talk about another interesting component of anon RPC. You may have noticed uh when I put up the the tor.js slide there was a gateway um that sat in the middle. Um so this is uh it's an unfortunate uh thing about web browsers. Um, there are good reasons that you can't talk uh you can't just open an ordinary TCP socket uh from your web browser to talk to these peer-to-peer networks.

Uh instead everything has to go through HTTPS and HTTPS is really nice because it forces everything to uh have this encryption. uh but it has a couple of big uh problems things that we you know don't like in the uh this decentralized space and for these crops properties because there are two different authorities that you effectively need to get permission from in order to uh host an ordinary web service online. you need to register for a domain and you also need to get a certificate um that's signed by an authority says that yes you can use uh this key to encrypt traffic uh for this domain and so yeah this really uh doesn't fit into the the decentralized and peer-to-peer model that we we like and so that's why we created this uh KPS protocol stands for key pinned streams so instead of asking for a domain and expecting an authority to sign a message for you saying it's okay to talk to this domain over this key because you know we vouch for them. Uh instead the application says I want to talk to this key. So you're responsible for saying hey this is the key that I want to talk to and then you can just talk directly to that to that server.

And this works fortunately there's um a web RTC in the browser that's been a while. Most people use it for video and audio communications, but we can also use it to push ordinary data. Uh, and fortunately, it allows us to do this. And KPS is a wrapper around this that gives you a nice um byte stream uh interface over it. Uh, and we're also able to implement the same interface over quick so that if you're doing if you're not in the browser, if you're in some other application, you can have the same API.

And so yeah there is a uh npm module available for this as well. There's also so this is for the client um there is implementations in go and rust as well uh and also the server side so that you can uh accept connections on those three platforms as well. And so yeah if you have a IP uh and a port that's accessible publicly now all you have to do is uh run a piece of code and you can be accessible directly from from web browsers. this matters for anon RPC to tie it back together because in anon RPC we want to talk directly to these peer-to-peer networks and uh you know it's especially like I think it's a uh there's general benefit for the web as a whole to use this kind of system um but it you know it it cuts particularly hard for um peer-to-peer networks because you know you're asking people from the public uh to to just run nodes and so removing um removing these these barriers uh is very beneficial. You can just run some code and you know you're accessible directly from these applications.

So quick recap um you know status quo is we have centralized RPC providers um we're addressing that with this anon RPC standard it pins the code on chain we run it in uh sandbox and we also have kps for talking uh to the nodes directly and that's my talk thank you so much I would love to take some questions [applause] another great talk So yeah, let's start. I kind of provoked York from Calibri just before your talk started and is right now the most ranked question. Is anan RPC similar to Calibri or does it differ in any way?

Uh I'm not super familiar with Calibri. I believe they're a light client. Um

stateless. Yeah.

Yeah. The Yeah. So a light client. This came up in Kiwi's talk as well is able to verify the information that that comes through to make sure that it's correct. And so this another really important piece of the puzzle.

Um but it's really a different um different part of it. So it' be great to use these two things together actually.

Yeah. Great. Thoughts on using name or oper as an option alternative to tour?

Um go for it. Um yeah, like I don't um like I said before, we don't, you know, don't want to pick winners and say, "Hey, you should use this network or that network." Um but NIM is available through uh Anon RPC and so I highly encourage you to check it out and give it a try.

Cool. And now we have a rather provocative question, but I think quite interesting still. So

what about this possibility of not being Yeah. uh honest actor.

Yeah. So what if the client lies to you? Um so this is again this is a different piece of the puzzle. This actually is like directly related to the first question. Um so Calibri and other light clients um can like request more information from the from the node on the other side so that instead of just saying hey what's this balance you ask for a proof um that this is the balance and so there's nothing stopping you from doing that over anon RPC but anon RPC does not directly uh address that question it is possible though to uh you could as a anon RPC worker you could bundle the verification uh like the light client component uh inside of that as well if you wanted to.

Um but yeah, it's not directly designed for that. Cool. Very well. After when I initially read this question, I thought it was talking about threat modeling um from a security perspective, but maybe not. Maybe it's about

threads from computing.

Uh there are smart contract functions that are only executed offchain through RPCs. Uh, no. I'm not familiar with the threat modeling for this, but that's very interesting. I'd love to talk about it.

A question to talk outside of the room when this talk ends. Cool. And um, yeah. What about this centralization one?

Uh, is there only oneon RPC or can multiple come up? If it's one, it's centralized. I disagree. So, uh, and on RPC is really a standard. So we supply a reference implementation of that.

Um but even then it's only code um that we're supplying. We don't run any infrastructure for anon RPC. Um we do have a demo server for our tour integration. Um but it's just a demo server. So I think that there's um yeah I don't think that this is quite quite valid.

Um but we do yeah we welcome alternatives and we love to work with people if they think that there are uh changes that they would like in on RPC.

Nice. We have roughly one minute left and a couple of very important questions in regard to adoption. What adoption will be needed from applications? Will the standard suffice in and of itself or what else? [snorts]

Yeah. Um so from the application side so yeah you can either you can use our reference imp implementation of the harness um or you can implement the standard uh yourself and so I didn't have time to talk about this during the talk but one of the things that you that anon RPC provides uh is this KPS protocol um because inside of the web worker you don't have access to web RTC and so we actually do the KPS protocol over the messaging bridge for so that networks can have access to this and the clients can talk directly to their nodes.

Nice. To conclude, what about having a requirement for the wallet providers to to subscribe to this mechanism?

Subscribe to this and and on RPC have offchain

y deals to exploit. There are no deals. There are no deal. We don't haven't made any deals to exploit user transactions. Um I'm not sure.

It doesn't require it's an open thing like I mean it's all like open source. Um so you can go and see and you can implement it yourself if you prefer. Um yeah I'm not sure maybe come ask u ask me about this. I'm not sure I understand the question.

Well this was an RPC. I think there's a few more interesting questions that

Automatic transcript — names and jargon may be misspelled.