pgp_pubkey acts as if it can handle several keys by using an array, but in fact it's impossible for there to be more than one key in the array, as written:
public render = async () => {
Ui.event.protect();
try {
const pubKey = await KeyUtil.parse(this.armoredPubkey);
this.isExpired = KeyUtil.expired(pubKey);
if (pubKey.revoked) {
await ContactStore.saveRevocation(undefined, pubKey);
}
this.parsedPublicKeys = [pubKey];
} catch (e) {
console.error('Unusable key: ' + e);
this.parsedPublicKeys = [];
}
this.firstParsedPublicKey = this.parsedPublicKeys ? this.parsedPublicKeys[0] : undefined;
$('.pubkey').text(this.armoredPubkey);
if (this.compact) {
$('.hide_if_compact').remove();
$('body').css({ border: 'none', padding: 0 });
$('.line').removeClass('line');
}
the array can have maximum of 1 element. It's odd
pgp_pubkey acts as if it can handle several keys by using an array, but in fact it's impossible for there to be more than one key in the array, as written:
the array can have maximum of 1 element. It's odd