@Override
    public void run() {
      configureEcCurve(ecCurve, parentCommand.spec.commandLine());
      run(publicKeyExportFile, keyPair -> keyPair.getPublicKey().toString());
    }
Public key export sub-command

<p>Export of the public key is writing the key to the standard output by default. An option
enables to write it in a file. Indeed, a direct output of the value to standard out is not
always recommended as reading can be made difficult as the value can be mixed with other
information like logs that are in KeyPairUtil that is inevitable.
app/src/main/java/org/hyperledger/besu/cli/subcommands/PublicKeySubCommand.java