private boolean checkSignature(
      final ENRTreeRoot root, final SECP256K1.PublicKey pubKey, final SECP256K1.Signature sig) {
    final Bytes32 hash =
        Hash.keccak256(Bytes.wrap(root.signedContent().getBytes(StandardCharsets.UTF_8)));
    return SECP256K1.verifyHashed(hash, sig, pubKey);
  }
Resolves the first TXT record for a domain name and returns it.

@param domainName the name of the DNS domain to query
@return the first TXT entry of the DNS record. Empty if no record is found.
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/dns/DNSResolver.java