I thought I would just get a thread started for Layer 2 scaling and subdomains. I am working to better understand the various options and what might be the best layer 2 integrations for ENS. I started to look into zkSync. I will also start to look into Optimism. I know this is a quickly evolving area, but at the moment, does anyone know what are the most promising layer 2 scaling solutions for ENS integrations?
The Arbitrum community seem to be big, you may want to check that out.
If youâre not already, itâs worth familiarising yourself with our plans for L2 scaling, too, which allows ENS names to use multiple different L2s: EIP-3668: Durin: Secure offchain data retrieval
I have been following it as best I can i.e https://youtu.be/9DdL7AQgXTM, https://youtu.be/L9N7U_bNmOU, but in the end I think a lot depends, in terms of the user experience on the particular layer 2 solutions, that are used. I know that Optimism and Arbitrum have come out early and got a lot of attention, but zkSync seems to be saying that their ZK technology is going to be ready very soon and is superior. I think in the end even if CCIP-Read allows for any Layer 2 scaling solutions, in most cases most people will just use whatever is easiest. Maybe we are still just too early, and that is why itâs hard to know where to put time into diving deeply into Layer 2s. For instance, Polygon just announced Polygon Miden, a STARK-based solution, so the landscape is changing rapidly. Anyone else looking into Layer 2s?
Yup, I didnât mean to say that we shouldnât do this! Itâs important to evaluate the options to determine which ones are worth building infrastructure for. Just wanted to give some context on how they can be used.
I personally think that having at least one (really any, I donât think itâs important to pick the ârightâ one as long as later migration is feasible) Layer 2 option for ENS is probably the single most important thing for ENS right now. Fees are a huge threat to ENS usability and accessibility. Itâs literally impossible to use ENS if you donât have deep pockets right now.
For registering .eth names weâve discussed only two options up until now.
-
Pick an L2 to allow registration of .eth names and it becomes the new canonical chain/rollup where people can register their .eth names
-
Allow multiple L2s to register .eth names, and sync them somehow so you couldnât double register names
I donât think weâve thought of a solution for 2) yet, and 1) would mean we were picking a winner, and if that didnât go well, weâd have to migrate to another L2.
For records/subdomains with CCIP-read, we wouldnât have to pick a winner yet, which is why weâve been developing that first. But I think if there were other viable options for splitting .eth we could look into this too
I think the security of ENS names on Layer 1 is more important than low fees at the moment for registrations. My question is more related to âwe wouldnât have to pick a winner yet.â I think we might want to start trying to pick at least a couple âwinnersâ and focus on building the best user experience possible for records and subdomains. I am interested in trying to figure out who we think might be the possible Layer 2 winners. I will keep working on this. If anyone else is working on this, am interested in knowledge sharing.
Hi there everybody. Iâm highly interested in the layer two discussion and how to scale ENS in the safest way possible. Iâve decided to build oxo.eth as a subdomain name service provider so Iâve got some extra skin in the game here.
One idea might be to initially keep ENS level two names on mainnet, while migrating the subdomain registrations onto Layer Two zk or optimistic rollup. This would possibly accomplish a number of objectives:
- solve an immediate need for inexpensive name options on ENS
- grow out the name space by incentivizing a robust subdomain marketplace to explore dynamic use-cases
- use the experience of a layer two subdomain name-wrapper to test and fine-tune the viability of a long-term solution for ENS namewrapper on layer two.
I have a lot of questions about functionality of names across layer twos and how we can safely test to make sure we arenât digging ourselves in too deeply. So maybe subdomains are a safe way to do this.
Would you like to combine our efforts in some way? I am working on the same thing for nib.eth. I plan to open source any code I create, so if you are of the same mind, working as a group might be a better way to go. I am also currently entered into the Chainlink hackathon, so we could submit for that as a way to focus the efforts.
Hey Premm, I appreciate the invite. Iâm game to make things happen but also donât want to step on anyoneâs toes or make a huge effort only to see it obsoleted in the next week. I saw your workshop demo, really liked the direction you are going with it.
My subdomain idea for oxo.eth is really just about getting as many people to register a ultra-low-cost, ultra-resilient name with a one-time fee that lasts them for life. The tool might be just a simple script that every dapp, nft or wallet can add on their front ends.
I think we are aligned in the sense that we both want to expand the vision of ENS via subdomains, so Iâm happy to help if I can.
Letâs chat about it on Discord. oxo#6288
You should both probably evaluate the name wrapper, which we (True Names) plan to deploy soon and is specifically designed to address making it easier to issue subdomains trustlessly.
@oxo and @Premm.eth, I am also working on a project that involves subdomains. Iâm probably focusing on L1 for now but this is a really cool EIP that I think would solve the L2 problem.
Happens to have been authored by nick.eth and 0age: EIP-2544: ENS Wildcard Resolution
Subdomains definitely seem like the easiest-to-implement route. Anyone can register foo.eth
, move foo.eth
to some rollup, and then once foo.eth
is inside the rollup anyone can register bar.foo.eth
inside that rollup; Durin would be used to let clients automatically discover those domains.
Advantages of the subdomain route:
- Low total complexity; all thatâs required in the subdomain solution is some kind of L1 getter and L2 getter, which can be achieved through a Durin integration. On the other hand, option (2) suggested by @jefflau.eth above (âallow multiple L2s to register .eth names, and sync them somehowâ) would likely require significantly complex logic for the âsync them somehowâ part, including reasoning about timing issues, waiting periods, etc.
- Immediately supports all present and future L2s. On the other hand, option (1) suggested by @jefflau.eth above restricts to one L2, and Option (2) would also have to be restricted to a narrow whitelist of L2s that can be trusted to prevent attack by rogue L2s, whereas with the subdomain route it would be up to the user to choose subdomains that are in rollups that they trust.
- Normalizes subdomains, allowing the ENS base layer to be more governance-minimized while opening the door for subdomains to have more activist governance (eg. different registration and fee schemes, built-in DAOs to delete registrations that are clearly impersonationsâŠ)
One disadvantage of course is that if people really want foo.eth
, they would have to pay $50+ to register it. Additionally, the subdomain-focused route could lead to confusion between eg. vitalik.foo.eth
and vitalik.bar.eth
. That said, the x.eth
root namespace is likely to get pretty congested anyway, and the fees are not that high compared to 10-year pre-renewal costs, and the traditional internet world already has a lot of experience dealing with TLD confusion so itâs hardly a new problem.
Hey Vitalik, Iâm glad you share the vision, lol. I think normalizing subdomains will happen automatically because they are probably more akin to level one, while primary .eth names are more akin to level zero.
In any case, your point about congested namespace notwithstanding, they will be a critically important ingredient to the actual taxonomy of Ethereum as they make every organizational facet of the ecosystem distinguish itself and become more easily addressable.
For these reasons, we should incentivize adoption sooner rather than later. Iâm considering giving a fair amount of names away for free to the first xyz,maybe registrants if I can raise the funds. Iâm not sure how much it will cost on Optimism, lol, but I think we should incentivize people to get their names on layer two and grow the family.
Maybe ENS DAO can help out with this effort somehow, if it is appropriate.
I would agree that the subdomain route would be the easiest way. For an actionable plan to get there we need:
- Bridge for ERC721/ERC1155 (for NameWrapper) tokens
- Deploy a registry on each L2 that allows claiming that .eth name once you have bridged to the L2/sidechain
- Deploy a public resolver to each L2
- Deploy a generalised subdomain registrar to each L2 to allow committing your .eth to register subdomains. We could seed this with a few short 2LDs from the community.
- Deploy the NameWrapper to allow burnable permissions (to allow easy trustless subdomain registration)
- Deploy a UI to register subdomains
- Update ENS app to deal with multiple registries
I think in general the L2 subdomain route is the more practical and easily actionable. I donât think getting .eth onto L2 is realistic unless we can fix the âsync them somehowâ.
Glad to see this list of actionable items. I think it is also important to acknowledge that second-level domains (e.g. foo.eth) are all going to be owned by private parties who will want to offer their subdomains at the market price. The second-level domain owners themselves will be a large user base, and will want to have easy to use tools in order to control how their subdomains are marketed and sold. This would seem to be a significant project with ongoing dev involvement. Does it make sense for ENS to take on this project? If ENS does take on this project on at least a couple L2s, is there a way to make it sustainable? Maybe there should be revenue sharing put into the L2 contract? Maybe anywhere between 2-10%? Second-level domain holders could decided to create their own systems, to avoid paying the fee, if they wanted to. Also, imagine if L2s bring in more and more users, those users will end up flowing into the discord with all their problems, etc. I think the idea that subdomains donât have a registration fee is nice in theory, but in the end even subdomain users will eventually end up interacting with ENS, and there will be real costs associated with those interactions.
Just to make sure Iâm understanding the proposed subdomains strategy correctly, is this the approach?
- You transfer
foo.eth
to Arbitrum (ie. you use thedeposit
function in Arbitrum). At this point, from the point of view of L1 state,foo.eth
belongs to the Arbitrum contract, and from the point of view of Arbitrum L2 state,foo.eth
belongs to some specific account. - At that point, anyone can send transactions inside Arbitrum to register
bar.foo.eth
- If, after this point, you were to transfer
foo.eth
out of Arbitrum, all thesubdomain.foo.eth
domains registered inside Arbitrum would stop working. So if someone wants to actually use this scheme to create useful subdomains, they would have to transferfoo.eth
to some domain where no one can take it out in step 1.
This requires deploying some standard contracts in Arbitrum (and on Optimism, and on any other L2) to make subdomain registration actually possible. It would also require someone to run nodes that provide Durin-compatible state proofs to make bar.foo.eth
actually resolvable.
RethinkingâŠitâs a challenge to think many years into the future with only one cup of coffee.
Yes that is the basic idea. We would probably need to lock the resolver on layer1 for the foo.eth as well, otherwise they could change the resolver to point somewhere else and it would render subdomains unresolvable.
On L2 we could deploy a NameWrapper contract to burn permissions such as transferring back to L1, replacing subdomains etc.
We also have the problem of how to handle L2 updates, where the contract the resolver needs to verify against may change. Making it entirely trustless may be difficult