mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Don't return streams in openpgp.reformatKey()
This commit is contained in:
parent
3c1d89bbb5
commit
c3419e5cd0
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user