[ETH Seoul 2025] Cross chain communication for App Chain

ETH Seoul 2025 · April 2025 · 19:43

Makoto Inoue of ENS Labs shares lessons from building Namechain, an app-specific layer 2 for Ethereum Name Service. The talk weighs canonical bridges against relayers for name registration, renewal, Dutch auction premiums and NFT transfers, explains why a ZK rollup suits fast finality, and shows why commit and reveal complicates batching. It also looks at ERC-4337, EIP-7702 and smart sessions for a smoother cross-chain user experience.

Speakers

Topics

From ETH Seoul 2025, hosted by Kryptoplanet.

Transcript

[Music] [Applause] Uh this is my third year I think presenting at Asia is so and every year before my talk my lovely Korean wife says you you ensure to like you know greet people in Korean. So I I just finished that part. So I feel like very relieved. So rest is like you know whatever. But anyway, uh yeah. So this is how Yeah. And every year if you have seen my talk before, I'm known as like doodling some like cute pop NFT. So like if you are interested collecting pop uh

pop uh come to see me. So you can tap and collect uh the NFT to say you met me and also listen to my talk. And today uh my talk is about crosschain communication for app chains and in as a use case. And uh uh earlier in the talk Charles talk from espresso he asked like how many people has built uh L2 and it was only I think Zach from Aztec. uh but I think I'm actually the kind of second people in that room that building the uh layer 2 and hopefully in next few years uh I think more people are going to make it uh so like this is kind of a lesson lesson learning as we are building the

chain and yeah uh just in case uh you don't know what ENS name is Ethereum name service provides this t this like you know hexodimal Ethereum or other crypto addresses to easy to read human readable names such as mkenu.ethth. So if you go to wallet such as metam mask and if you look up mkenu.et uh you know where to send is uh and uh so we've been uh running since 2017 and we it's one of the oldest uh DAPs or you know like Ethereum based applications. uh we have over 1.9 million names owned by 800 unique

addresses and also we have so uh over 14 million so-called offchain names such as uni and base and what that means is that uh we develop a protocol called EIP 3668 uh also known as uh CCIP read which allows you to basically by default uh you store the uh store like you know like in our example there's name and there's address. The address information is usually stored in layer one. But because it's going to be expensive, sometimes when gas is expensive, it's going to be prohibitive to use a service. Hence, we developed a ways to be able you to set the record anywhere

outside of layer one. So it could be like your normal database or it could be your layer two or side chain. And by using that uh that protocol itself has been there for almost four years. So for my last two years to talk is all about explaining how exactly that works. So I'm not going to repeat this year but by using that uh there's already a company like base uh issued uh base. on their base chain and also I think uni uh unis swap one of the most popular decks has uh issue subnames if they install and you can get the uni subname if you install their wallet and they also yeah linear as well so this is kind

of our crosschain kind of strategy we've been developing in house but now we get into the t time the not so like the idea of the mechanism CCIP read is like if you set the uh storage into offchain all the subnames you issue uh belongs to that specific offchain and uh so by using the same logic if you actually move is registry uh you can add to the new new brand new chain actually that becomes uh layer two and you can just we are going to issue all the uh basically secondary names into uh our specific chain called we decided to call it

namechain. And so today uh so this is about me uh kind of sharing the experience of build building the name chain and so we kind of going to dissect dissect different aspect of the requirement and just talks us through the challenges and what kind of options are available and what kind of consideration you have to make. So hopefully when you make the your own app chain or in future you can also kind of think in a similar way and as I keep repeating uh we are still building ENS chain and so like if I get invited next year I might uh by that time hopefully I

have a uh we have a name chain launch then I might be giving like you know uh the different stuff like you know what we thought is going to work but it might not the case and so first we'd like to dissect uh namechain as a upchain with a different aspect that uh so we trying to be the so name chain is we're trying to be the chain for the identity and not just for uh east users but for all the uh chains across different eMM ecosystem and when we first built the uh architecture back in 2017 there was no layer 2. So we didn't really cater our

architecture for that purpose. So we had a kind of mono monolic registry contract in layer one but we are actually rewriting from scratch to uh make it hierarchically and you can move the part of the registry to different chains as you wish and so that's big chain we are rewriting right now and also important thing is most of the I think the O2 chain they trying to kind of bring uh the liquidity or like you know asset to be and they you if you look into the L2B or something you see lots chain and the only one matrix is like how much money is in this chain but that's not really our priority. Our priority is to be able to issue uh register names uh in

affordable manner and uh yeah we don't necessarily need expect uh lots of like a deck or like you know staking protocol or lending protocol to be in the uh chain which might introduce different issues and uh for the also if I dissect what kind of operation will involve in especially in the area of crosschain uh I usually uh I kind of analyze into two three and the first one is a registration and renewal which is about uh basically when you register ENS names it usually cost about $5 a year and the yeah you have to basically pay in $5 was

in ETH and the however like uh so most of the I think uh in crosschain operation is very low value but that happens frequently. We have over thousand registration a year. So we we expect that there's lots of small amount of bridge operate uh crossing uh every day but as at the same time when uh the name expires uh it goes into a so-cal Dutch auction where uh price starts from 100 million and it goes over to zero over 21 days and the idea is that like quite often in a traditional kind of domain world whenever name expires

like bots or like you know professional people just try to snatch it. So like normal people are unable to obtain the newly available names. But to prevent that we we provide a auction system but that c brings a new challenges especially for the crosschain world and also ens nonf fungeible token and so like name is unique so crossing a name nonf fungeible asset crosschain brings different problems and yeah so what kind of challenges it brings is that first of all uh if I don't know how many of you have

used uh crosschain bridges experience but like if I try to build the same name registration process in the naive way I I can see at least like seven different step like first you switch network to layer two any of the layer two you might be in like you might be using base or you might be using optimism then you you you you uh bridge the asset to name chain and you have to wait until the asset is crossed and then we also do uh actually require two transaction to prevent the front running that like uh in the de dex world I think front running is a big problem like people try to as soon as your order is in people uh

see the value and you they try to over front run you to get a better deal to prevent that in our case we use so-called commit and reveal logic that's been placed since I think 2020 that when you commit you just put the hash of the your uh name secret and the owner information and when you reveal you put the actual names but if someone try to frontun the reveal information they actually have to go through the commit and wait process so like at that prevents you to do things uh crosschain but uh sorry uh to uh prevent the sorry uh to front run the name but doing that

again in a crosschain and causes a bit of issue and uh the idea is we try to make it as smooth as possible and I already explained about the temporary premier uh for the Dutch auction and yeah oneification so I'll just go And so optional consideration uh yeah ideally uh unlike the one I showed with seven eight different steps it should be just one or two steps. This is what where we want to strive and we also expect that because we don't have daily kind of dex activity. We don't expect people to be in our chain when people start the their uh registration. We expect that always a user are in their

favorite chain but we let you to register with a name as fewer steps as possible. This is and uh so some of the uh options you usually have most blockchain uh layer 2 chain has something called canonical bridge which comes with the uh roll up uh steps and they are kind of more secure way but it's actually a lot slower. Um so most uh D5 uses people often use so-called relayer such as across or relay and that the basic idea is they basically front once you try to bridge the asset they basically have the already liquidity in

both side of the chain and they basically uh kind of lend you the asset uh in 10 seconds and after like hours probably minutes or hours when the conical bridge actually uh bridge the asset uh they they take the money back and this is more popular way and it allows you to bridge asset in like 10 seconds or a few minutes. uh but that has some limitation that basically the amount you can send is down to the liquidity each relayer have and also there's some like you know security risk which conical bridge doesn't have uh security of the conical bridge is uh like as strong as a rollup system itself

whereas they have their own kind of uh relay mechanism which could be compromised and if you dissect that to well map it to our needs You can say like you can use relayer for like registration and renew purpose which is like you know it happens frequently and low amount uh but you can't really use it for temp uh the Dutch auction temporary premium or the NFT bridging so like and also even for the uh clinical bridge uh some I think uh um from succinct to explain that optimis optimistic roll up takes like up to seven days for the uh bridging process

from L2 to L1 that is almost like unusable from UI. So from the uh chain section wise we took this part uh as a chain section criteria and we uh decided to partner with uh linear as a layer two. So like a linear has a zk zk uh roll up which provides a faster uh finality so that uh the what the NFT bridging cost uh takes a lot less time than the uh fraud proof alternatives and also uh yeah I actually added this slide while I was uh listening to Charles talk earlier that uh basically

he advocated for the preconfirmation And actually yeah many when we are having the crosschain conversation you often get brought like can you not use uh fast confirmation and I think fast confirmation is a a great approach for many uh use cases but when if you think about the our approach is that this uh when I first explained that EIP 3668 CCI IP read that actually uh is a technology to to kind of enable crosschain uh data reading by uh verifying in the state route of L2 on L1 and to make it happen

actually the uh the L2 data has to be settled in L1 to make it work. So because preconfirmation isn't necessarily the settlement uh it doesn't necessarily work for name change. So for that reason like it doesn't work for most use cases but if you you think about your use case our use cases it doesn't work and yes then for so once you bridge the asset you have a commit and reveal operations which which is like two operations and we wants to minimize uh yeah bridge commit and reveal which is three steps which we want to minimize and uh we look into account obstruction especially the ELC

437 which enables a batch operation and gas sponsorship this is good and also we are aware that there's a upcoming uh Ethereum hardwork called Pectra which comes with ERC 7702 uh which turns all the UA as SCA. So this one sounds like allows solve all the problem. But again if you look into the uh individual use cases something like commit and reveal model cannot be batched because uh if you like have the reveal information with commit the whoever intercept the uh transaction can basically overrun it and

uh yeah for the 772 even if seven and that's one problem and even after uh for the second problem uh Yeah, you also have to have two I think how to explain. Yeah, as a app there's many you have to cater for many different use cases and many different wallets and every wallets try to provide their own best use cases but to make it uh consistent uh for all the wallets uh 7702 is a bit difficult option because uh

7702 each wallet decides a smart account to uh use. So we don't know what kind of smart account account uh implementation is in place. So this again it doesn't necessarily solve our problem uh out of the box. So what we are thinking right now is uh for the first problem of the you cannot combine commit and reveal. uh we are look also looking into another specification called smart session which uh basically app can ask uh EOA to grant permission to something someone else. So once it's done you you have to create the uh one confirmation but after that

uh all other uh transactions you can invoke once it's like kind of approved you can invoke these transaction without lots of clicks. So and there's a few implementation presented one for rhinestone another for the meta mask delegator. So for the using these uh yeah you should be able to minimize the number of transaction and for the also the kind of lack of consistent ways to provide uh experience for the smart account. We are currently thinking about not just relying on the wallet prepared smart account but when people first bridge the asset we basically create a smart account on namechain and mean the

name chain to the smart account and add the end the user as a signer. So, so that like uh we can uh provide a consistent smart account experience and also by doing that uh smart account comes if you use EO uh 7702 as a smart account it provides a kind of a batching and gas sponsoring feature but it doesn't add any security whereas uh with if you actually use smart account to own the uh contract it can adds up lots of security options But there's some downside that like if if you register name thinking I going to own but it some randomly created a smart account uh it ownership

is transferred to the randomly created smart account that's going to cause some like discoverability problem. So which we have to solve as well. So I quickly went through all these kind of nitty-gritty detail of like what you have to think about when you actually create a a custommade uh chain for your own needs. And as I mentioned like there's no one size fits solution. So you have to kind of look into each of the uh components of your requirement and solution and you have to mix and match to suit your needs. Uh that's it. Thank you.

[Music]

Related talks