public EnodeURL toEnode(final Bytes nodeId) {
    return EnodeURLImpl.builder()
        .nodeId(nodeId)
        .ipAddress(host.orElse(""))
        .listeningPort(tcpPort.orElse(udpPort))
        .discoveryPort(udpPort)
        .build();
  }
Encapsulates the network coordinates of a {@link DiscoveryPeer} as well as serialization logic
used in various Discovery messages.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/Endpoint.java