The Ethereum Name Service (ENS) is a utility that allows names to be associated with Ethereum Addresses. An Ethereum address is a 40 character hex number (0x1d8a08c8c3ce0a852cb4da902754991759f7f625). It is far too long to type or dictate practically without errors. ENS allows you to shorten this to a simple name (such as rexhygate.eth). I would recommend all Ethereum users get at least one name, if only for the convenience they offer. The deed for a name must be won in an auction, managed by a set of Ethereum Smart Contracts. The Ethereum Name process is managed by a team using a consensus process that is like the process to run Ethereum, only smaller and simpler. As such, understanding ENS gives you a good base at understanding much about Ethereum.
Note: This article is an excerpt of the website EthereumUseCases.com
An Ethereum Name is merely a text shortcut to an address, but it is incredibly useful. It is similar to domain names where EthereumUseCases.com replaces 184.108.40.206. Already MyEtherWallet and EtherScan recognize the Ethereum Name as the equivalent of an Ethereum address. It is immensely easier to type your address than to copy paste it into the field. For individuals I would strongly recommend getting an Ethereum name for their address. It could be your name (as I did with RexHygate.eth) or your chosen handle. Either way, get them soon while the options are good. Please note Ethereum Names are not case sensitive.
Ethereum Addresses can refer to more than just a wallet. An Ethereum Address can also refer to a contract or a swarm site. SellPrismNow.eth would be a good name for the relay smart contract discussed here. SwarmSite.eth would be the web3 address for a distributed website.
Sub Domain Names
The owner of the primary domain can create and issue sub domain names. So the owner of plumbing.eth could issue JoesDetroit.plumbing.eth to a different organization. Or a business owner could create Invoices.MyCompany.eth, POs.MyCompany.eth and PartNumbers.MyCompany.eth, each with their own functionality. While these functionalities don’t exist yet, now is the time for organizations to reserve their Ethereum Name while names are available. Once a name is taken, it is difficult to get ownership.
This is an existing and stable existing service. An update is expected in about two years (May 2019).
How does it work
To get an Ethereum Name there is a very clear procedure. It is done via a public auction run by a series of Ethereum Smart Contracts. This assumes you have an Ethereum wallet with about 0.02 ETH in it. Please don’t consider these official comprehensive instructions. For that please read this. MyEtherWallet also has excellent instructions, but you have to actually do the transaction in order to view the instructions.
- Check to see if the name is available. You can use https://etherscan.io/enslookup. Names must be 7 or more characters long. For the moment special foreign characters are not allowed. It is not case sensitive.
- Start an auction for the name you want. You have to pick the maximum bid you wish to do for this name, but be careful. If you miss your reveal (see below) you lose this amount and get nothing. Copy the pass phrase. You also enter a public bid amount. This is an amount that others see publicly on the blockchain.
- Wait 3 days. During this period others can bid on this auction and outbid your name. People could write programs that could scan and inform them of all ongoing auctions. Etherscan has a view of ongoing auctions. The fact that your address has started an auction for your name is public info on the blockchain. Before the reveal people only see the “public bid” amount. They must bid without knowing the highest bid.
- Reveal your bid. There is a two day period when all bidders can reveal their bids. At this point all bidders see the highest bid. However, no one of the bidders can change their bids. They can just reveal and watch. The highest revealed bid at the end of the two days wins the deed to that name If you forget to reveal your bid during this period, you lose the amount of your bid. It is burned.
- The amount of the highest bid (0.01Eth or greater) is reserved for the deed. It is held by an Ethereum Contract. If you relinquish ownership, the deed amount is refunded.
- Finally you can add a “resolver” to your address. This associates your address to the name. You can send money to youaddress.eth and it goes to your Ethereum wallet address!
An example will make this clearer;
1) Lets say AcmePlumbing.eth is available;
2) John Smith starts an auction with a maximum bid of 0.01Eth. The public bid is 0.3Eth
3) Alan Klein notices this auction and bids 0.03Eth. His public bid is 0.03.
4) Phil Jones sees the auction and wants the name badly. He bids 0.09Eth with a public bid of 0.01.
5) A bystander can see that the auction is underway with three bids 0.3, 0.03 and 0.01.
6) After three days John Smith reveals his bid and he is highest bidder with 0.01Eth
7) Then Alan Klein reveals his bid and he becomes highest bidder with 0.02Eth. Note his maximum bid was 0.03, but he only needed 0.02Eth to become highest bidder.
8) After 5 days (from the start of the auction) Alan Klein becomes the winner. 0.02 Eth is reserved as collateral for the deed for AcmePlumbing.eth. 0.01 Eth is returned to John Smith’s wallet because he didn’t win. Phil Jones loses 0.09Eth because he forgot to reveal his bid.
ENS is implemented by a series of Smart Contracts. When the team that developed the ENS system, they had to think about an implementation that was fair, balanced and that could be written into the Solidity language.
Now that it is implemented, the software runs independently. There is no middleman. There is no 1–800 number to complain about or get a refund from. The code implements its requirements with consistent ruthless efficiency. The user pays gas for each transaction in the auction and the winner pays the deed but there is no middleman, no notaries who mediate. It is also an example of how the Ethereum eco system works with a machines ruthless impersonal edge.
If you fail to reveal your bid, for any reason, your money is lost. I had a case where I performed a reveal on time but the transaction failed for an undefined reason. I never checked that it had worked and as a result I lost my money (just 0.02Eth) but I have read of others who have lost much more.
The ENS requirement came from discussions within the Ethereum foundation. They picked a team of seven developers. This team developed the initial set of rules we are working with today in discussion with the greater Ethereum organization. ENS is not part of the “core” Ethereum functionality. It is an independent application so its development could be done separate from the “core” development on Metropolis.
This team set the rules for ENS Name auctions and then coded them in Ethereum Smart Contracts. The resulting code is locked in a Multi-Sig wallet which requires 4 of the 7 to open. This drives consensus development and inhibits reactive fixes.
The development principles are public and inclusive. They have a gitter channel on which discussion among the group takes place. Anyone can join and contribute. They recently held a public workshop to discuss the next steps. While they limited the number or participants for practical reasons, the contents to the meetings and presentations were made available on youtube.
ENS Development Plan
ENS also has a vision, a goal and a timeline. It launched in May 2017, We are presently in the initial implementation. Its main website is here. Names are limited to seven characters or more to reserve the more valuable names until the system is tested and accepted. The initial implementation is expected to last about 2 years. In this time the community can test and define the right way forward. The first ENS public workshop was held Aug 11 to 13, 2017 in London England. The results of this workshop are here. At some point, perhaps before the permanent registrar launch, the names for six and less characters will be released.
As you would expect, plenty of neat names like lawyers.eth, mycasino.eth, Montreal.eth and Microsoft.eth were taken by enterprising people early after they were made available. If Microsoft.eth was not one by Microsoft Corporation, then at this point no amount of lawyers can get access to that deed as it is held by a smart contract that does not care about trademark rights. I have found some websites that allow for sale of ENS names. The deed owner can transfer ownership.
The present implementation is the interim registrar. A permanent registrar is expected to be released in about two years (around May 2019). This registrar may expect annual payments (as DNS names do now, though this is still under discussion). There may be some form of mediation such that TradeMark owners can reserve their names. This is still under discussion.
Names reserved under the interim register must be transferred to the permanent registrar by the deed holder (no one else has permission). The exact process will be determined once the rules for the permanent registrar are fixed It is interesting to note that only the address of the deed holder is recorded. This does not give an email, a real name or any way to contact the deed holder.
Another good article on ENS is here.