diff --git a/src/openpgp.js b/src/openpgp.js index 6da8e839..abf03ab6 100644 --- a/src/openpgp.js +++ b/src/openpgp.js @@ -204,7 +204,8 @@ export function revokeKey({ } else { return key.revoke(reasonForRevocation); } - }).then(key => { + }).then(async key => { + await convertStreams(key); if (key.isPrivate()) { const publicKey = key.toPublic(); return {