public static ENRNode fromAttrs(final Map<String, String> attrs) {
      if (attrs == null) {
        throw new IllegalArgumentException("ENRNode attributes cannot be null");
      }
      return Optional.ofNullable(attrs.get("enr"))
          .map(ENRNode::decodeValue)
          .map(EthereumNodeRecord::fromRLP)
          .map(ENRNode::new)
          .orElse(null);
    }
Create an ENRNode with the given attributes.

@param attrs the attributes of the node
@return created ENRNode
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSEntry.java