{"eip":162,"title":"Initial ENS Hash Registrar","description":"This ERC describes the implementation, as deployed to the main ethereum network on 2017-05-04, of a registrar contract to govern the allocation of names in the Ethereum Name Service (ENS). The corresponding source code is here.","authors":["Maurelian","Nick Johnson  \u003cnick@ethereum.org\u003e","Alex Van de Sande \u003cavsa@ethereum.org\u003e"],"status":"Final","type":"Standards Track","category":"ERC","created":"2016-10-25","repo":"ERCs","label":"ERC-162","officialUrl":"https://eips.ethereum.org/EIPS/eip-162","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-162.md","url":"https://eips.huatuo.xyz/eip-162/","tldr":{"en":"Described the first .eth name registrar for ENS, which allocated names through sealed-bid Vickrey auctions with ETH locked in per-name deed contracts.","ja":"ENS 向けの最初の .eth 名レジストラを説明した提案。名前を封印入札のビックレー・オークションで割り当て、ETH は名前ごとの Deed コントラクトにロックされた。","ko":"ENS의 첫 .eth 이름 레지스트라를 설명한 제안. 봉인 입찰 비크리 경매로 이름을 배정했고, ETH는 이름별 deed 컨트랙트에 잠겼다.","zh":"描述了 ENS 的首个 .eth 名称注册商，通过密封出价的维克里拍卖分配名称，ETH 被锁定在每个名称各自的 deed 合约中。"},"tags":["ens","naming","registrar","auction"],"explainers":{"en":{"lang":"en","tldr":"Described the first .eth name registrar for ENS, which allocated names through sealed-bid Vickrey auctions with ETH locked in per-name deed contracts.","tags":["ens","naming","registrar","auction"],"related":[137,181],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-162/","markdown":"## What problem does it solve?\n\nThe Ethereum Name Service ([EIP-137](/eip-137/)) maps human-readable names like `alice.eth` to addresses. ENS itself is only a registry. Someone has to decide who gets each name, and a new namespace invites a land grab, with squatters registering valuable names only to resell them.\n\nEIP-162 documents the **Initial Registrar**, deployed to mainnet on 2017-05-04 to hand out `.eth` names. It was designed to be simple and temporary: learn from real usage for about two years, then replace it with a permanent registrar.\n\n## How it works\n\n**Restrictions.** Only the `.eth` top-level domain was served, and only names of 7 characters or more. Shorter names were held back for later.\n\n**Hashed names.** You bid on `sha3(label)`, for example `sha3('abcdefg')` for `abcdefg.eth`, not the full ENS namehash. Because the registrar only sees hashes, it cannot check length itself. Anyone could call `invalidateName` with the plain text of a too-short name and earn a reward.\n\n**Gradual release.** Names became available over 8 weeks. The first byte of a name's hash decided when.\n\n**Vickrey auction.** Each name went through these states:\n\n1. *Open*: anyone calls `startAuction`.\n2. *Auction* (72 h): bidders send a sealed bid, `shaBid(hash, owner, value, salt)`, plus ETH. They may send more ETH than the bid to hide the real value.\n3. *Reveal* (48 h): bidders call `unsealBid` with the real parameters.\n4. *Owned*: the winner calls `finalizeAuction` and pays the **second-highest** bid. The minimum price is 0.01 ETH.\n\n**Deeds.** The ETH is not paid to anyone. It is locked in a separate `Deed` contract for each bid. The winner's deed stays locked as collateral while they own the name. After one year, the owner can release the name and get the deed back. Losing bids are refunded at 99.5 %, and the rest is burned. Bids revealed too late, or never revealed, are mostly burned.\n\n## Sample code\n\nComputing what the registrar expects, with ethers v6:\n\n```ts\nimport { keccak256, toUtf8Bytes, solidityPackedKeccak256, randomBytes, hexlify, parseEther } from \"ethers\";\n\nconst labelHash = keccak256(toUtf8Bytes(\"abcdefg\"));   // the name being auctioned\nconst salt = hexlify(randomBytes(32));\nconst value = parseEther(\"0.5\");                       // true bid\n\n// sealed bid = sha3(hash, owner, value, salt), as returned by shaBid()\nconst sealedBid = solidityPackedKeccak256(\n  [\"bytes32\", \"address\", \"uint256\", \"bytes32\"],\n  [labelHash, myAddress, value, salt],\n);\n// newBid(sealedBid) with msg.value \u003e= value, then unsealBid(...) in the reveal window\n```\n\n## Things to know\n\n- This registrar is historical. The spec planned to replace it after about two years and to stop new auctions after four. ENS has since moved `.eth` to later registrar designs that charge a renewal fee instead of locking a deposit.\n- Revealing in time mattered. A bid revealed after the reveal window was mostly burned, so it could not be used to push up a winner's price.\n- For how names resolve once registered, see [EIP-137](/eip-137/). For reverse lookups from address to name, see [EIP-181](/eip-181/).\n"},"ja":{"lang":"ja","tldr":"ENS 向けの最初の .eth 名レジストラを説明した提案。名前を封印入札のビックレー・オークションで割り当て、ETH は名前ごとの Deed コントラクトにロックされた。","tags":["ens","naming","registrar","auction"],"related":[137,181],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-162/","markdown":"## 何を解決するのか\n\nEthereum Name Service（[EIP-137](/eip-137/)）は、`alice.eth` のような人間が読める名前をアドレスに対応付けます。ENS 自体はレジストリにすぎません。各名前を誰に割り当てるかは誰かが決める必要があり、新しい名前空間は土地の奪い合いを招きます。価値のある名前を登録して転売するだけの占拠者が現れるのです。\n\nEIP-162 は、`.eth` の名前を割り当てるために 2017-05-04 にメインネットへデプロイされた **Initial Registrar** を文書化しています。シンプルで一時的なものとして設計され、約 2 年間は実際の利用から学び、その後に恒久的なレジストラへ置き換える予定でした。\n\n## 仕組み\n\n**制限。** 対象は `.eth` トップレベルドメインのみで、7 文字以上の名前だけでした。それより短い名前は後回しにされました。\n\n**ハッシュ化された名前。** 入札するのは ENS の完全な namehash ではなく `sha3(label)` に対してです。たとえば `abcdefg.eth` なら `sha3('abcdefg')` です。レジストラはハッシュしか見えないため、長さを自分で検証できません。誰でも短すぎる名前の平文を渡して `invalidateName` を呼び、報酬を得ることができました。\n\n**段階的な開放。** 名前は 8 週間かけて利用可能になりました。いつ開放されるかは、名前のハッシュの最初の 1 バイトで決まりました。\n\n**ビックレー・オークション。** 各名前は次の状態を順に経ます。\n\n1. *Open*: 誰でも `startAuction` を呼べる。\n2. *Auction*（72 時間）: 入札者は封印入札 `shaBid(hash, owner, value, salt)` と ETH を送る。本当の金額を隠すため、入札額より多くの ETH を送ってもよい。\n3. *Reveal*（48 時間）: 入札者が実際のパラメータで `unsealBid` を呼ぶ。\n4. *Owned*: 落札者が `finalizeAuction` を呼び、**2 番目に高い**入札額を支払う。最低価格は 0.01 ETH。\n\n**Deed。** ETH は誰にも支払われません。入札ごとに別の `Deed` コントラクトにロックされます。落札者の Deed は、名前を所有している間は担保としてロックされたままです。1 年後、所有者は名前を手放して Deed を取り戻せます。落選した入札は 99.5 % が返金され、残りは焼却されます。公開が遅れた入札や公開されなかった入札は、大部分が焼却されます。\n\n## サンプルコード\n\nethers v6 で、レジストラが期待する値を計算する例:\n\n```ts\nimport { keccak256, toUtf8Bytes, solidityPackedKeccak256, randomBytes, hexlify, parseEther } from \"ethers\";\n\nconst labelHash = keccak256(toUtf8Bytes(\"abcdefg\"));   // the name being auctioned\nconst salt = hexlify(randomBytes(32));\nconst value = parseEther(\"0.5\");                       // true bid\n\n// sealed bid = sha3(hash, owner, value, salt), as returned by shaBid()\nconst sealedBid = solidityPackedKeccak256(\n  [\"bytes32\", \"address\", \"uint256\", \"bytes32\"],\n  [labelHash, myAddress, value, salt],\n);\n// newBid(sealedBid) with msg.value \u003e= value, then unsealBid(...) in the reveal window\n```\n\n## 知っておくべきこと\n\n- このレジストラは歴史的なものです。仕様では約 2 年後に置き換え、4 年後に新規オークションを停止する計画でした。ENS はその後、デポジットをロックする代わりに更新料を課す、後続のレジストラ設計へ `.eth` を移行しています。\n- 期限内の公開が重要でした。公開期間後に公開された入札は大部分が焼却されたため、落札者の価格を吊り上げるのには使えませんでした。\n- 登録後に名前がどう解決されるかは [EIP-137](/eip-137/) を、アドレスから名前への逆引きは [EIP-181](/eip-181/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"ENS의 첫 .eth 이름 레지스트라를 설명한 제안. 봉인 입찰 비크리 경매로 이름을 배정했고, ETH는 이름별 deed 컨트랙트에 잠겼다.","tags":["ens","naming","registrar","auction"],"related":[137,181],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-162/","markdown":"## 어떤 문제를 해결하나요?\n\nEthereum Name Service([EIP-137](/eip-137/))는 `alice.eth` 같은 사람이 읽을 수 있는 이름을 주소에 매핑합니다. ENS 자체는 레지스트리일 뿐입니다. 각 이름을 누구에게 줄지는 누군가 정해야 하고, 새 네임스페이스는 땅따먹기를 부릅니다. 가치 있는 이름을 등록해 되파는 것만 노리는 사재기꾼이 생기는 것입니다.\n\nEIP-162는 `.eth` 이름을 나눠주기 위해 2017-05-04에 메인넷에 배포된 **Initial Registrar**를 문서화합니다. 단순하고 임시적으로 설계되어, 약 2년간 실제 사용에서 배운 뒤 영구 레지스트라로 교체할 계획이었습니다.\n\n## 어떻게 동작하나요?\n\n**제한.** `.eth` 최상위 도메인만 다뤘고, 7자 이상의 이름만 허용했습니다. 더 짧은 이름은 나중으로 미뤄졌습니다.\n\n**해시된 이름.** ENS의 전체 namehash가 아니라 `sha3(label)`에 입찰합니다. 예를 들어 `abcdefg.eth`는 `sha3('abcdefg')`입니다. 레지스트라는 해시만 보기 때문에 길이를 스스로 검사할 수 없습니다. 누구든 너무 짧은 이름의 평문으로 `invalidateName`을 호출해 보상을 받을 수 있었습니다.\n\n**점진적 공개.** 이름은 8주에 걸쳐 사용 가능해졌습니다. 언제 열리는지는 이름 해시의 첫 바이트가 결정했습니다.\n\n**비크리 경매.** 각 이름은 다음 상태를 거칩니다.\n\n1. *Open*: 누구나 `startAuction`을 호출합니다.\n2. *Auction*(72시간): 입찰자가 봉인 입찰 `shaBid(hash, owner, value, salt)`와 ETH를 보냅니다. 실제 금액을 숨기기 위해 입찰액보다 많은 ETH를 보내도 됩니다.\n3. *Reveal*(48시간): 입찰자가 실제 파라미터로 `unsealBid`를 호출합니다.\n4. *Owned*: 낙찰자가 `finalizeAuction`을 호출하고 **두 번째로 높은** 입찰액을 냅니다. 최소 가격은 0.01 ETH입니다.\n\n**Deed.** ETH는 누구에게도 지불되지 않습니다. 입찰마다 별도의 `Deed` 컨트랙트에 잠깁니다. 낙찰자의 deed는 이름을 소유하는 동안 담보로 계속 잠겨 있습니다. 1년 뒤 소유자는 이름을 해제하고 deed를 돌려받을 수 있습니다. 낙찰되지 못한 입찰은 99.5 %가 환불되고 나머지는 소각됩니다. 너무 늦게 공개했거나 공개하지 않은 입찰은 대부분 소각됩니다.\n\n## 샘플 코드\n\nethers v6로 레지스트라가 기대하는 값을 계산하는 예:\n\n```ts\nimport { keccak256, toUtf8Bytes, solidityPackedKeccak256, randomBytes, hexlify, parseEther } from \"ethers\";\n\nconst labelHash = keccak256(toUtf8Bytes(\"abcdefg\"));   // the name being auctioned\nconst salt = hexlify(randomBytes(32));\nconst value = parseEther(\"0.5\");                       // true bid\n\n// sealed bid = sha3(hash, owner, value, salt), as returned by shaBid()\nconst sealedBid = solidityPackedKeccak256(\n  [\"bytes32\", \"address\", \"uint256\", \"bytes32\"],\n  [labelHash, myAddress, value, salt],\n);\n// newBid(sealedBid) with msg.value \u003e= value, then unsealBid(...) in the reveal window\n```\n\n## 알아둘 점\n\n- 이 레지스트라는 역사적인 것입니다. 명세는 약 2년 뒤 교체하고 4년 뒤 새 경매를 중단할 계획이었습니다. ENS는 이후 보증금을 잠그는 대신 갱신 수수료를 받는 후속 레지스트라 설계로 `.eth`를 옮겼습니다.\n- 제때 공개하는 것이 중요했습니다. 공개 기간이 지난 뒤 공개된 입찰은 대부분 소각되었기 때문에, 낙찰자의 가격을 올리는 데 쓸 수 없었습니다.\n- 이름이 등록된 뒤 어떻게 해석되는지는 [EIP-137](/eip-137/)을, 주소에서 이름으로의 역방향 조회는 [EIP-181](/eip-181/)을 참고하세요.\n"},"zh":{"lang":"zh","tldr":"描述了 ENS 的首个 .eth 名称注册商，通过密封出价的维克里拍卖分配名称，ETH 被锁定在每个名称各自的 deed 合约中。","tags":["ens","naming","registrar","auction"],"related":[137,181],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-162/","markdown":"## 它解决什么问题？\n\n以太坊域名服务（[EIP-137](/eip-137/)）把 `alice.eth` 之类人类可读的名称映射到地址。ENS 本身只是一个注册表，必须有人决定每个名称归谁，而一个新的命名空间会引来圈地抢注：抢注者注册有价值的名称，只为转手倒卖。\n\nEIP-162 记录了 **Initial Registrar**（初始注册商），它于 2017-05-04 部署到主网，用来分发 `.eth` 名称。它被设计得简单而临时：用大约两年时间从真实使用中积累经验，然后由永久注册商取而代之。\n\n## 它如何运作\n\n**限制。** 只服务 `.eth` 顶级域名，且只开放 7 个字符及以上的名称。更短的名称留待以后。\n\n**哈希后的名称。** 出价针对的是 `sha3(label)`，例如 `abcdefg.eth` 对应 `sha3('abcdefg')`，而不是完整的 ENS namehash。由于注册商只看得到哈希，它自己无法检查长度。任何人都可以用过短名称的明文调用 `invalidateName` 并赢得奖励。\n\n**逐步放开。** 名称在 8 周内陆续开放。何时开放由名称哈希的第一个字节决定。\n\n**维克里拍卖。** 每个名称依次经历以下状态：\n\n1. *Open*：任何人调用 `startAuction`。\n2. *Auction*（72 小时）：竞拍者发送密封出价 `shaBid(hash, owner, value, salt)` 和 ETH。他们可以发送多于出价的 ETH 来隐藏真实金额。\n3. *Reveal*（48 小时）：竞拍者用真实参数调用 `unsealBid`。\n4. *Owned*：赢家调用 `finalizeAuction`，支付**第二高**的出价。最低价格为 0.01 ETH。\n\n**Deed。** ETH 并不会付给任何人，而是为每次出价锁定在单独的 `Deed` 合约中。赢家的 deed 在其拥有该名称期间一直作为抵押被锁定。一年之后，所有者可以释放名称并取回 deed。落选的出价按 99.5 % 退款，其余部分被销毁。揭示得太晚或从未揭示的出价大部分会被销毁。\n\n## 示例代码\n\n用 ethers v6 计算注册商所期望的值：\n\n```ts\nimport { keccak256, toUtf8Bytes, solidityPackedKeccak256, randomBytes, hexlify, parseEther } from \"ethers\";\n\nconst labelHash = keccak256(toUtf8Bytes(\"abcdefg\"));   // the name being auctioned\nconst salt = hexlify(randomBytes(32));\nconst value = parseEther(\"0.5\");                       // true bid\n\n// sealed bid = sha3(hash, owner, value, salt), as returned by shaBid()\nconst sealedBid = solidityPackedKeccak256(\n  [\"bytes32\", \"address\", \"uint256\", \"bytes32\"],\n  [labelHash, myAddress, value, salt],\n);\n// newBid(sealedBid) with msg.value \u003e= value, then unsealBid(...) in the reveal window\n```\n\n## 需要注意\n\n- 这个注册商已成为历史。规范计划在大约两年后替换它，并在四年后停止新的拍卖。此后 ENS 已把 `.eth` 迁移到后来的注册商设计，改为收取续费，而不是锁定押金。\n- 及时揭示很重要。在揭示窗口之后才揭示的出价大部分会被销毁，因此无法用来抬高赢家的价格。\n- 名称注册后如何解析，请见 [EIP-137](/eip-137/)。从地址到名称的反向查询，请见 [EIP-181](/eip-181/)。\n"}}}
