Shift some ENR fields to MAY

This commit is contained in:
Age Manning 2020-03-18 18:20:25 +11:00
parent 6fde75be19
commit cf20a7ae3e
No known key found for this signature in database
GPG Key ID: 05EED64B79E06A93
1 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,9 @@ This integration enables the libp2p stack to subsequently form connections and s
The Ethereum Node Record (ENR) for an Ethereum 2.0 client MUST contain the following entries (exclusive of the sequence number and signature, which MUST be present in an ENR): The Ethereum Node Record (ENR) for an Ethereum 2.0 client MUST contain the following entries (exclusive of the sequence number and signature, which MUST be present in an ENR):
- The compressed secp256k1 publickey, 33 bytes (`secp256k1` field). - The compressed secp256k1 publickey, 33 bytes (`secp256k1` field).
The ENR MAY contain the following entries:
- An IPv4 address (`ip` field) and/or IPv6 address (`ip6` field). - An IPv4 address (`ip` field) and/or IPv6 address (`ip6` field).
- A TCP port (`tcp` field) representing the local libp2p listening port. - A TCP port (`tcp` field) representing the local libp2p listening port.
- A UDP port (`udp` field) representing the local discv5 listening port. - A UDP port (`udp` field) representing the local discv5 listening port.