From c3419e5cd07e873a32f18bcd5a1636ad980e58ac Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Tue, 23 Oct 2018 14:15:09 +0200 Subject: [PATCH] Don't return streams in openpgp.reformatKey() --- src/openpgp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openpgp.js b/src/openpgp.js index 4c671583..6da8e839 100644 --- a/src/openpgp.js +++ b/src/openpgp.js @@ -163,14 +163,14 @@ export function reformatKey({privateKey, userIds=[], passphrase="", keyExpiratio const revocationCertificate = await key.getRevocationCertificate(); key.revocationSignatures = []; - return { + return convertStreams({ key: key, privateKeyArmored: key.armor(), publicKeyArmored: key.toPublic().armor(), revocationCertificate: revocationCertificate - }; + }); }).catch(onError.bind(null, 'Error reformatting keypair')); }