{"eip":7636,"title":"Extension of EIP-778 for \"client\" ENR Entry","description":"Add additional ENR entry to specify client information such as name and version number.","authors":["James Kempton (@SirSpudlington)"],"status":"Withdrawn","type":"Standards Track","category":"Networking","created":"2024-02-25","requires":[778],"discussionsTo":"https://ethereum-magicians.org/t/eip7636-extension-of-eip-778-for-client-enr-entry/18935","repo":"EIPs","label":"EIP-7636","officialUrl":"https://eips.ethereum.org/EIPS/eip-7636","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7636.md","url":"https://eips.huatuo.xyz/eip-7636/","tldr":{"en":"A withdrawn proposal to add an optional \"client\" entry to Ethereum Node Records so nodes could announce their software name and version during discovery.","ja":"Ethereum Node Record に任意の \"client\" エントリを追加し、ノードがディスカバリー中にソフトウェア名とバージョンを通知できるようにする提案（取り下げ済み）。","ko":"이더리움 노드 레코드(ENR)에 선택적 \"client\" 항목을 추가해 노드가 탐색 중에 소프트웨어 이름과 버전을 알릴 수 있게 하자는 제안(철회됨).","zh":"一项已撤回的提案：在以太坊节点记录（ENR）中添加可选的 \"client\" 条目，让节点在发现过程中公布其软件名称和版本。"},"tags":["networking","enr","discovery","p2p","clients"],"explainers":{"en":{"lang":"en","tldr":"A withdrawn proposal to add an optional \"client\" entry to Ethereum Node Records so nodes could announce their software name and version during discovery.","tags":["networking","enr","discovery","p2p","clients"],"related":[778,868],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7636/","markdown":"## What problem does it solve?\n\nEthereum nodes find each other through the discv5 discovery protocol, advertising themselves with **Ethereum Node Records** (ENRs, defined in [EIP-778](/eip-778/)). An ENR is a small signed key/value record holding things like the node's public key, IP address and ports.\n\nWhat an ENR did not say is *which software* the node runs. Client diversity and bug triage depend on knowing how many nodes run Geth, Nethermind, Besu and so on, and at which versions. That information was available only through other channels, such as the devp2p handshake. EIP-7636 proposed putting it directly in the ENR so that network health could be measured using discovery alone.\n\n## How it works\n\nThe proposal adds one optional ENR key, `\"client\"`, whose value is an RLP list of ASCII strings:\n\n```text\n[ClientName, Version, (BuildVersion)]\n```\n\n- `ClientName`: short, no spaces (for example `Geth`).\n- `Version`: human-readable, semantic versioning recommended.\n- `BuildVersion`: optional, for example a commit hash.\n\nA single key with a list was chosen over several separate keys to save space in the size-limited record. Nodes that do not understand the key ignore it, so the change is backward compatible and needs no fork.\n\n## Sample code\n\nBuilding the entry value with ethers v6's RLP helpers:\n\n```ts\nimport { encodeRlp, decodeRlp, toUtf8Bytes, toUtf8String, hexlify } from \"ethers\";\n\n// [\"Nethermind\", \"1.9.53\", \"7fcb567\"]  (example values from the spec)\nconst value = encodeRlp([\n  hexlify(toUtf8Bytes(\"Nethermind\")),\n  hexlify(toUtf8Bytes(\"1.9.53\")),\n  hexlify(toUtf8Bytes(\"7fcb567\")),\n]);\n\n// Reading it back from a decoded ENR's \"client\" field\nconst [name, version, build] = (decodeRlp(value) as string[]).map((h) =\u003e toUtf8String(h));\nconsole.log(name, version, build); // Nethermind 1.9.53 7fcb567\n```\n\n## Things to know\n\n- Status is **Withdrawn**. The stated reason is lack of use and disagreement among client developers about its practicality. Do not expect clients to publish this key.\n- The data is self-reported. The spec itself says it **must not** be used for anything that needs to be reliable; any node can claim to be any client.\n- Advertising exact versions can help attackers target nodes running a vulnerable build, which is why the field was optional and operators were expected to be able to opt out.\n- For the ENR format itself, see [EIP-778](/eip-778/); for an earlier example of extending ENRs, see [EIP-868](/eip-868/).\n"},"ja":{"lang":"ja","tldr":"Ethereum Node Record に任意の \"client\" エントリを追加し、ノードがディスカバリー中にソフトウェア名とバージョンを通知できるようにする提案（取り下げ済み）。","tags":["networking","enr","discovery","p2p","clients"],"related":[778,868],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7636/","markdown":"## 何を解決するのか\n\nEthereum のノードは discv5 ディスカバリープロトコルで互いを見つけ、**Ethereum Node Record**（ENR、[EIP-778](/eip-778/) で定義）で自分を告知します。ENR は、ノードの公開鍵、IP アドレス、ポートなどを保持する、署名付きの小さなキー／値レコードです。\n\nENR が伝えていなかったのは、ノードが*どのソフトウェア*を動かしているかです。クライアントの多様性やバグのトリアージは、Geth、Nethermind、Besu などをそれぞれ何ノードが、どのバージョンで動かしているかを知ることに依存します。この情報は、devp2p のハンドシェイクなど他の経路でしか得られませんでした。EIP-7636 は、ディスカバリーだけでネットワークの健全性を測れるよう、これを ENR に直接入れることを提案しました。\n\n## 仕組み\n\nこの提案は、任意の ENR キー `\"client\"` を 1 つ追加します。値は ASCII 文字列の RLP リストです。\n\n```text\n[ClientName, Version, (BuildVersion)]\n```\n\n- `ClientName`：スペースを含まない短い名前（例：`Geth`）。\n- `Version`：人が読める形式。セマンティックバージョニングが推奨されます。\n- `BuildVersion`：任意。たとえばコミットハッシュ。\n\nサイズに制限のあるレコードの容量を節約するため、複数の別々のキーではなく、リストを値とする 1 つのキーが選ばれました。このキーを理解しないノードは無視するため、変更は後方互換であり、フォークは不要です。\n\n## サンプルコード\n\nethers v6 の RLP ヘルパーでエントリの値を組み立てる:\n\n```ts\nimport { encodeRlp, decodeRlp, toUtf8Bytes, toUtf8String, hexlify } from \"ethers\";\n\n// [\"Nethermind\", \"1.9.53\", \"7fcb567\"]  (example values from the spec)\nconst value = encodeRlp([\n  hexlify(toUtf8Bytes(\"Nethermind\")),\n  hexlify(toUtf8Bytes(\"1.9.53\")),\n  hexlify(toUtf8Bytes(\"7fcb567\")),\n]);\n\n// Reading it back from a decoded ENR's \"client\" field\nconst [name, version, build] = (decodeRlp(value) as string[]).map((h) =\u003e toUtf8String(h));\nconsole.log(name, version, build); // Nethermind 1.9.53 7fcb567\n```\n\n## 知っておくべきこと\n\n- ステータスは **Withdrawn** です。理由として、利用がないこと、およびその実用性についてクライアント開発者の間で意見が一致しなかったことが挙げられています。クライアントがこのキーを公開することを期待しないでください。\n- データは自己申告です。仕様自体が、信頼性が必要なものには使っては**ならない**と述べています。どのノードも、どのクライアントであるとも名乗れます。\n- 正確なバージョンを告知すると、脆弱なビルドを動かしているノードを攻撃者が狙う助けになりえます。そのためこのフィールドは任意であり、運用者はオプトアウトできることが想定されていました。\n- ENR の形式自体については [EIP-778](/eip-778/) を、ENR を拡張した以前の例については [EIP-868](/eip-868/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"이더리움 노드 레코드(ENR)에 선택적 \"client\" 항목을 추가해 노드가 탐색 중에 소프트웨어 이름과 버전을 알릴 수 있게 하자는 제안(철회됨).","tags":["networking","enr","discovery","p2p","clients"],"related":[778,868],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7636/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 노드는 discv5 탐색 프로토콜로 서로를 찾고, **이더리움 노드 레코드**(ENR, [EIP-778](/eip-778/)에 정의)로 자신을 알립니다. ENR은 노드의 공개키, IP 주소, 포트 같은 정보를 담은 작은 서명된 키/값 레코드입니다.\n\nENR이 알려 주지 않던 것은 노드가 *어떤 소프트웨어*를 실행하는지입니다. 클라이언트 다양성과 버그 분류는 Geth, Nethermind, Besu 등을 각각 몇 개의 노드가 어떤 버전으로 실행하는지 아는 데 달려 있습니다. 이 정보는 devp2p 핸드셰이크 같은 다른 경로로만 얻을 수 있었습니다. EIP-7636은 탐색만으로 네트워크 상태를 측정할 수 있도록 이를 ENR에 직접 넣자고 제안했습니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 선택적 ENR 키 `\"client\"`를 하나 추가하며, 값은 ASCII 문자열의 RLP 리스트입니다.\n\n```text\n[ClientName, Version, (BuildVersion)]\n```\n\n- `ClientName`: 공백 없는 짧은 이름(예: `Geth`).\n- `Version`: 사람이 읽을 수 있는 형식. 시맨틱 버저닝을 권장합니다.\n- `BuildVersion`: 선택 사항. 예: 커밋 해시.\n\n크기가 제한된 레코드의 공간을 아끼기 위해 여러 개의 별도 키 대신 리스트를 값으로 하는 키 하나를 택했습니다. 이 키를 이해하지 못하는 노드는 무시하므로 변경은 하위 호환되며 포크가 필요 없습니다.\n\n## 샘플 코드\n\nethers v6의 RLP 헬퍼로 항목 값 만들기:\n\n```ts\nimport { encodeRlp, decodeRlp, toUtf8Bytes, toUtf8String, hexlify } from \"ethers\";\n\n// [\"Nethermind\", \"1.9.53\", \"7fcb567\"]  (example values from the spec)\nconst value = encodeRlp([\n  hexlify(toUtf8Bytes(\"Nethermind\")),\n  hexlify(toUtf8Bytes(\"1.9.53\")),\n  hexlify(toUtf8Bytes(\"7fcb567\")),\n]);\n\n// Reading it back from a decoded ENR's \"client\" field\nconst [name, version, build] = (decodeRlp(value) as string[]).map((h) =\u003e toUtf8String(h));\nconsole.log(name, version, build); // Nethermind 1.9.53 7fcb567\n```\n\n## 알아둘 점\n\n- 상태는 **Withdrawn**입니다. 명시된 이유는 사용이 없었고 그 실용성에 대해 클라이언트 개발자들 사이에 의견이 갈렸다는 것입니다. 클라이언트가 이 키를 게시하리라 기대하지 마세요.\n- 데이터는 스스로 보고하는 값입니다. 사양 자체가 신뢰성이 필요한 용도에는 사용해서는 **안 된다**고 밝힙니다. 어떤 노드든 어떤 클라이언트라고 주장할 수 있습니다.\n- 정확한 버전을 알리면 취약한 빌드를 실행하는 노드를 공격자가 노리는 데 도움이 될 수 있습니다. 그래서 이 필드는 선택 사항이었고 운영자가 옵트아웃할 수 있어야 했습니다.\n- ENR 형식 자체는 [EIP-778](/eip-778/)을, ENR을 확장한 이전 사례는 [EIP-868](/eip-868/)을 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一项已撤回的提案：在以太坊节点记录（ENR）中添加可选的 \"client\" 条目，让节点在发现过程中公布其软件名称和版本。","tags":["networking","enr","discovery","p2p","clients"],"related":[778,868],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7636/","markdown":"## 它解决什么问题？\n\n以太坊节点通过 discv5 发现协议找到彼此，并用**以太坊节点记录**（ENR，定义于 [EIP-778](/eip-778/)）来公布自己。ENR 是一条带签名的小型键/值记录，包含节点的公钥、IP 地址和端口等信息。\n\nENR 过去没有说明的是节点运行的是*哪个软件*。客户端多样性和缺陷分流都依赖于了解有多少节点在运行 Geth、Nethermind、Besu 等，以及各自的版本。这些信息只能通过其他渠道获得，比如 devp2p 握手。EIP-7636 提议把它直接放进 ENR，这样仅凭发现机制就能衡量网络健康状况。\n\n## 它如何运作\n\n该提案新增一个可选的 ENR 键 `\"client\"`，其值是 ASCII 字符串的 RLP 列表：\n\n```text\n[ClientName, Version, (BuildVersion)]\n```\n\n- `ClientName`：简短，不含空格（例如 `Geth`）。\n- `Version`：便于人阅读，建议使用语义化版本。\n- `BuildVersion`：可选，例如提交哈希。\n\n为了节省大小受限的记录中的空间，选择了单个键加列表的形式，而不是多个独立的键。不理解该键的节点会忽略它，因此这项变更向后兼容，无需分叉。\n\n## 示例代码\n\n使用 ethers v6 的 RLP 辅助函数构造条目的值：\n\n```ts\nimport { encodeRlp, decodeRlp, toUtf8Bytes, toUtf8String, hexlify } from \"ethers\";\n\n// [\"Nethermind\", \"1.9.53\", \"7fcb567\"]  (example values from the spec)\nconst value = encodeRlp([\n  hexlify(toUtf8Bytes(\"Nethermind\")),\n  hexlify(toUtf8Bytes(\"1.9.53\")),\n  hexlify(toUtf8Bytes(\"7fcb567\")),\n]);\n\n// Reading it back from a decoded ENR's \"client\" field\nconst [name, version, build] = (decodeRlp(value) as string[]).map((h) =\u003e toUtf8String(h));\nconsole.log(name, version, build); // Nethermind 1.9.53 7fcb567\n```\n\n## 需要注意\n\n- 状态为 **Withdrawn**。给出的原因是缺乏使用，以及客户端开发者对其实用性存在分歧。不要指望客户端会发布这个键。\n- 数据是自行上报的。规范本身指出，**不得**将其用于任何需要可靠性的场合；任何节点都可以声称自己是任何客户端。\n- 公布确切版本可能帮助攻击者针对运行存在漏洞版本的节点，这就是该字段是可选的、并且运营者应当能够选择不公布的原因。\n- 关于 ENR 格式本身，请参阅 [EIP-778](/eip-778/)；关于此前扩展 ENR 的例子，请参阅 [EIP-868](/eip-868/)。\n"}}}
