public function importPublicKeyCommand()
{
$keyData = '';
// no file_get_contents here because it does not work on php://stdin
$fp = fopen('php://stdin', 'rb');
while (!feof($fp)) {
$keyData .= fgets($fp, 4096);
}
fclose($fp);
$fingerprint = $this->rsaWalletService->registerPublicKeyFromString($keyData);
$this->outputLine('The public key has been successfully imported. Use the following fingerprint to refer to it in the RSAWalletService: ' . PHP_EOL . PHP_EOL . $fingerprint . PHP_EOL);
}