public static KeyPair loadKeyPair(final Path directory) {
    return loadKeyPair(getDefaultKeyFile(directory));
  }
Load key pair.

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