Reformat parameters.
Parameters for reformatting an existing OpenPGP key.
Creation date to set on the reformatted key.
New email address for the reformatted key's user ID.
Seconds until the reformatted key expires (0 for no expiration).
New display name for the reformatted key's user ID.
Passphrase to unlock (and re-encrypt) the private key.
Armored public key to reformat.
openpgp.reformatKey.
reformat
Reformats signature packets for the shipped key and persists the reformatted material. The previous implementation called
.toString()on aWriteStream, writing the literal string"[object Object]"to disk — the actual reformatted key was never persisted.