ENS for the multi chain world 2024

ETHCC 7 · 10 Jul 2024 · 23:52

Makoto Inoue discusses ENS v2 and moving parts of ENS to layer 2. He shows lower gas costs as a main reason, since registrations fell as gas rose even though names cost about five dollars a year, and describes a shift from one flat registry to a hierarchical design where each name has its own ERC-1155 registry. He then explains how ENS weighs candidate layer 2s: EVM compatibility, CCIP Read (EIP-3668) with storage proofs, how quickly state reaches layer 1 as tracked on L2BEAT, censorship resistance and trust assumptions. He says no chain has been selected yet.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

The presentation for the yeah ENS for the multi-chain world. And uh my name is Makoto, known as Matokendo.eth on uh ENS. Uh just checking how many people have ENS names. Good, good, good. Yeah. And if you want a pull uh of mine, uh which is that, uh just come and just tap it later. But uh so today, uh yeah, so this is the title. And uh I don't know how many of you I actually made a uh presentation last year at the ET ECC, and uh it was exactly the same title. Uh if you look at it, it's just a 2023, just different t-shirts.

Um but doesn't mean we haven't really progressed anything. Uh in fact, uh just about a couple months ago. I don't know how many of you guys know the news that uh we announced the ENSVT plant. Okay, uh 30%. Yeah. So we announced so ENS has been is one of the kind of longest running dApps uh launched in in 2017, and it's almost running for like you know six, seven years. But we announced one of the big change, which involves uh moving some of the components to uh layer two. And uh so it's actually ENSP2 for the multi-chain world is today's topic.

And uh interesting thing was uh I came to Bruxelles on Sunday, and uh uh someone just said, Hey, there's a private dinner, why don't you come along? And when I went there, suddenly I got brought into the stage and they said, Oh, I want you to be on a panel out of nowhere. And uh I was quite shocked, but I think the things, and so this was with me and uh the guy from uh Uniswap. And uh basically, I have no idea what I'm going to talk about. That the question they were asking is like, you know, uh, there's tons of like in the different layer two uh frameworks and the chains, and but like from app point of view, what are you guys expecting from layer two?

Because you know, many apps uh now think about basically having their own app chains and uh yeah, what's most important for you guys? So I thought that's probably most of the topics people are interested in. So I will focus uh the talk around that area. So the table contents is basically initially. I I briefly go through ENS V2 architecture and how does that relate to uh the selection of the layer two. And uh just uh a couple of days ago we have an ENS uh V2 unconference. It's a half half a day unconference where we brought lots of uh expa from different areas.

So we I gonna quickly introduce uh kind of yeah mention summarize what we discussed there. That's today's topic. And yeah, so why ENSV2? And the one kind of obvious answer is the lower gas cost. Uh that basically this is a graph I've been showing for the last two, three years. That uh the top is uh I think number of registration register uh ENS name registration and the bottom is the average uh gas fee on ECM layer one, and we have kind of correlation that the higher the gas becomes, the lower registration becomes to the point that if gas is like hundred, even though like ENS name uh registration fee is like five dollars a year, uh when gas goes like hundred gray, uh the the gas cost itself goes over like hundred dollars. Well at that point, people were saying like oh it's almost uh impossible for uh basically next PDM users to register names, which which is kind of five dollars affordable, but because of the gas cost, it's becoming the high harder to enter.

So that's part of the reason we need to react that so like making it easier to uh use some of the component on layer two for the gas fee lower gas fee and another thing is because it's kind of we are the original majority of core contract of the ENS has been the same since 2017 and uh for those of you who are not familiar with the architecture it's very simple that ENS uh have a one thing called ENS registry which all wallet and dApps uh connects to to the smart contract and uh uh for each name we have something called resolver uh smart contract which is actually the contract which is in charge of uh storing the mapping of the uh name and the ECM address and the other text record and the stuff and we use in the so uh or in the flat architect architecture that like everything is in one and but in v2 we are making kind of drastic transition to so called hierarchical architecture that uh rather than one registry having all names uh we are moving uh slightly similar to how DNS works that the hierarchical structure where uh each name has each registry and uh currently I think each the all names are in one NFT collection and but like in the new uh system each name has its own registry which is uh ELC1155 contract and it's going to be a unique collection and you can kind of say uh custom logic part name which makes it more kind of flexible.

And also because it's well previous problem is like even if you uh transfer the ownership of the name, all the subnames ownership still remain the same. But now that uh the registry is part of the name uh branch. So like if you uh transfer the owner uh from from one person to the another, uh basically you can uh you can kind of how to say uh once registry changes to the new one, it it kind of wipes out all the uh sub names, which makes it uh much easier to uh manage uh sub names. And also that kind of this model fits in the model that we we can have registry registr uh registry in uh different chains.

And uh so yeah, this is the kind of overall architecture of the ENSV2. That most apps when uh you think about the multi-chain, they usually uh copy the exact entire stack from one chain to another, and there's no not much interoperability between these two. But in our case, we always use uh have a main registry on the Ethereum layer one and uses uh layer one as a proxy to access to other chains, and uh yeah, how so like if you want to, you can actually don't necessarily have to be well actually by default uh dot eth will be on uh the so new ENS chain, but if you do want to actually prefer to stay in layer one, you can uh exit from uh ENS chain to the layer one. We call it uh one if one if yes, I don't know how to pronounce but modify.

And uh yeah, and also that's built on something called EIP3363668, aka CCIP read, uh which this actually the subtopic is what I've been pretty much talking at EC ECC for the last three years. Um yeah, this this is kind of uh visualization of what I just described. That like you know, uh there's names uh we believe that like uh each user, so like it currently most I think most of you guys who have ENS name, you just bought uh from app.ens.domains and they register your own names. But uh just like in a Gmail, like rather than you back in the 90s.

I think if you wanted to have email then you might want to register the your own domain on DNS, then register email, but like that's quite high huddle for most users, uh big you know, entry users. So like quite often you just get the sub name or sub uh each gmail address, and we also expect that like for the next billion users, probably big players like Coinbase or uh uh issue sub names for the users, and what the architecture we are offering is a kind of flexible system that each chain, each uh sorry, the wallet or exchange or some name issuer can choose the chain they want to, but uh e t and uh that that's an overall architecture, but like the entry point, like we because we have a hierarchical uh architecture. Uh the question becomes like even if you want to issue sub names on cheaper chain, uh you always have to high pay high guess on if you want to register the new name.

So part of this is just using the same architecture. We also want to move the is uh name to the new uh new chain. That's kind of and also that yeah, it also built on the EIP3668. And uh this one when we talk about kind of multi-chain interoperability, people often talk about like bridges and other stuff. Uh, but we have a our own unique ways to kind of query data from layer two to layer one without switching the network, and this is the core of all the building block. And this also reflects to the our choice of L2.

So I uh quickly go through is that uh basically people might wonder how do you can get the uh data from different chains uh without changing the connection. How it works is uh when you uh go to layer one to uh resolve name, uh they is if there's a name on layer one, it's just looking up on chain and the returns. But what we uh enable using EIP368 is that you uh it returns with uh off-chain data, rebound with off-chain data error, which includes uh uh so-called gateway URL, and the gateway URL is in charge of basically getting the uh data from uh ENS chain or other chains if you prefer to uh store the data in uh different L2s, and you return the uh sorry, uh the storage proof, and there's a something called callback function, uh which allows you to basically verify this storage proof uh is part of the uh state root uh on chain.

And so this is a kind of building block, and this becomes very very important when when it comes to selecting L2. And uh after when we announced uh we said like we're gonna try to do methodology, uh that like we I identify a couple of the key criteria we need, uh, such as a couple of stuff is uh more uh generic uh to I think any apps like I think for us EVM compatibility kind of makes sense so that like we can uh deploy kind of complex new system into the chain with uh and also but I just and also like open source is important, that's probably more generic to most uh web3 countries, uh companies, and especially censorship resistance decentralization. Some people just say the like mantra, but like especially in the case of ENS, ENS is actually the uh kind of IP, like name as an IP property.

So we tend to get lots of kind of inquiry about kind of like oh we this brand uh you know you should take down all the stuff. And currently we can say we can truly say that you know we have no control over, so we cannot do anything. But as it moves to L L2, the kind of censorship resistance becomes still kind of questionable. So that that's kind of uh important criteria to do. And uh uh oh yeah, on this one. So how do you guys know like a Vitalic uh EVM type one to four compatibility things? Does anyone know?

Yeah, so I think type one is Ethereum compatible, and it's pretty much all the same, and second level EVM compatible, and the type four is basically it's uh uh you can is it byte but byte code level, it's not compatible, but you can just write in solidity, that kind of stuff. And uh when it comes to ENS, uh type one, if it uh the quote, I was talking to most of these players uh to fast do the uh integration with this CCIP read. And if system is built in type one, it's relatively easy.

All we use is like a there's a uh off the shelf Mark or 3 library, so we just pass that storage proof to that to verify the uh you the storage. But quite often type 2 has its own data storage system uh storage mechanism, so it we cannot use that. So we have to rely on these uh chain to expose their own functions, which uh you can do it, but often uh that also has some consequence of on the uh gas cost and CCIP uh EIP3668, uh one of the unique points is because it's to the read function, uh and it because you don't send a transaction, uh gas cost is usually not so much of the problem, but we are not to the point that the gap when gas cost is as high as the block limit, which is I think SATI manga or something, uh just JSON RPC actually just rejects the connection.

So this stuff uh the EBM compatibility does actually impact uh the ease of of the integration. That's one of the criteria. And uh then, like I think this, yeah, and it then like we have another ranking criteria called uh from one to nine. I don't go through all of them, but especially the ones we it's in important is is the uh final state update and finality. And how's anyone look into this L2 bit finality chart anyone anyone anyone does anyone know L2 bit okay uh yeah so that's that's amazing uh site where they basically track this uh which uh chain is kind of more kind of sensors resistance or which one has a better finality and they have some graphs and uh how this graph translates to the utility of ENS is that uh this so-called post day average time to inclusion or state update uh depending on the chain some of them is one minute and others like four hours this this is a time uh this is a matrix of when L2 uh the time it takes for L2 to it's five minutes okay yeah okay I'll try to speed up uh L2 to uh basically post the state route from L2 to L1.

And unless this happens uh CCIP read cannot recognize do this microproof check so when people you update the record uh name uh users cannot resolve that actual name so it it strictly ties into the utility whereas this uh security bits even though we can read if the it's not finalized if the name we resolve might not actually be uh accurate and if it's not accurate it's quite uh drastic consequences uh even though ENS is no uh one of the non-financial utility but you use name to quite often uh transfer the assets and the stuff. So if the name resolution has bugged and stuff, it might have cut us and send to somewhere else.

Uh you didn't intend, it might have catastrophic uh damage. So the this one comes down to the security. And so these are the other criteria we we published it. And so like and I think if you from the well, I'll show the link in it towards the end so you can take a look. And we send all these uh research uh ENS Labs member did and they sent out to the all the participants of the conference we had like on Monday, and we have lots of participants from uh Love Style, and we I work at ENS Lab, which was the kind of driver of launching the protocol, but now we have uh seven different other organizations called service providers who's also building on top of it. So it's not about like we just build stuff, but so we wanted them to be get involved, so we invited them as well as L2 chains and other infrastructure to improve this.

And uh we wanted to make it kind of more as interactive as possible. So we did so-called unconference stuff. The people just use a sticky sticky note and they about the topics they wanted to uh discuss, and then we just did the you know, like uh voting. And the four topics we discussed with everybody's interest is how how the cross-chain actually works. And also we we even though we said like EVM compatibility is important, some people don't necessarily uh say actually that's not true. Like we might be have a better way.

So uh company called Axiom, they actually presented it. We could actually do better than uh just using EVM. So they uh presented their own kind of a plan of tackling it. And also like L2s, uh, we are not the L2 specialists, and it's best to ask from the expat. So like there's a yeah, uh some founders of like scroll and the core member of Linea and Arbitrum, they they uh share their expertise. And uh in the last session, uh there's uh another subs company uh provider called Unruggable. They they made a small presentation about how uh basically because ENS has a different component, and different components has a different level of uh uh decentralization or uh oh sorry, censorship resistance.

So he they presented uh in two minutes left. And one thing I wanted to mention is uh uh quite often people say that oh when when you guys coming, and uh we don't have the uh timeline yet, but I think more important is rather than when we do buy rather than when we do it, uh more important thing is does it meet like certain like security, censorship resistance and the decentralization. And one of the uh I want to conclude with uh one of the uh quotes uh Nick Johnson, our founder of the ENS mentioned is that basically ENS has always committed to the sustainable decentralization. When it first launched, it it was managed by the multi-sig, and there is some kind of ruggable aspect, but eventually we uh kill the feature or like transition to the DAO.

So we must not choose an L2 solution that undo all of our hard work making ENS more decentralized. So this is I think the kind of most important thing about when it comes for ENS to choose L2s. And uh having all said that, it's nothing, as I said, we are at the exploratory phase, so like we haven't made a decision which chain to and which structure to go. And uh, all the things I described, plus the other uh people's presentation during the uncomf is in this URL. So I'll just leave it QR code here.

So like if you are interested, if you are you know expert on certain areas and if you think you can contribute to ENS, please pass read this and uh yeah, contact us and uh yeah help us shape in the future of ENS. Thank you. Okay, thank you. We have time for one question raise your hand. Okay. Hello.

So ENSS has always been really serious about being a resilient uh you know um solution, very low on the on the stack uh the infrastructure level. So every protocols can build on top of it without too many trust assumptions. And in the V2 with CCIP, I'm wondering how this is affecting your um your how do you see changing your trust assumptions and maybe with regards to any dependency on chain link, for example. So the question is when it comes to when it transitioned to layer T, what kind of trans assumption we have to put on top of it?

Yeah, compared to V1, for example. Yeah, it we uh there's certain aspect which is uh applies to any solution we use. For example, gateway, uh I mentioned in the CCIP uh read of getting uh the web services which takes the uh storage proof of a chain. No one if no one can actually put a fake information, so in that case, there's no transformation of the validity of the data. However, people could stop the gateway service. So that way there is certain trust assumption, even though you can switch the gateway.

That's one thing. And another thing is, for example, yeah, like especially like off uh trust assumption that is it trust assumption? Like if you use it like file proof-based one, there's always seven days challenge period. So that that area uh it may or it may not be correct. So you can't currently, I think majority of the uh fraud proof-based chain, no one really challenges it because mostly it's a centralized sequencer. But like do we keep trust? That's a problem. But then if we say, oh, the gate proof is better, it's more less trust assumption.

But they see uh as I talk to all these players, I find that they're still early stage, so quite often they have some like other mean right or uh like some like uh multi-proof system which is kind of have some like backdoor, but not backdoor, like some like safety that these stuff could yeah, have more trust assumption unless it gets truly decentralized. So as of now, uh I think it's difficult to deploy to ENS chain which doesn't have extra trust assumption. I must say, yeah.

And then like it I guess it depends on the chain that that has a different trust assumption. But like again, my goal, our goal is just try not to bring extra assumption more than the so whole, I think uh ethos of the CCIP read is we depend on the uh trust assumption of the uh L2. So if L2 is uh using the file proof, we uh the trust opposite that you can actually use it with the sidechain based on the multi-sig, but just by the uh valid data signing stuff. But that's uh you know trust assumption.

Yeah, so uh CCIP read itself is we we only use the trust assumption of the the chain we are incurring itself, but when it comes to an chain, yeah, we haven't selected the chain yet, so yeah, we don't know yet. Hope hope I answer the question. Okay, thank you. Very well.

Related talks