public static String loadResourceFile(final String resourcePath) {
    try {
      URL path = KeyPairUtil.class.getClassLoader().getResource(resourcePath);
      return Resources.toString(path, StandardCharsets.UTF_8).trim();
    } catch (Exception e) {
      throw new RuntimeException("Unable to load resource: " + resourcePath, e);
    }
  }
Load resource file string.

@param resourcePath the resource path
@return the string
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/KeyPairUtil.java