public static File getDefaultKeyFile(final Path directory) {
    return directory.resolve("key").toFile();
  }
Gets default key file.

@param directory the directory
@return the default key file
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/KeyPairUtil.java