this.description="Input: the ASCII-armoured encrypted PGP message you want to verify.\n<br><br>\nArguments: the ASCII-armoured PGP public key of the signer, \nthe ASCII-armoured private key of the recipient (and the private key password if necessary).\n<br><br>\nThis operation uses PGP to decrypt and verify an encrypted digital signature.\n<br><br>\nPretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.\n<br><br>\nThis function uses the Keybase implementation of PGP.";
this.inputType="string";
this.outputType="string";
this.args=[
{
"name":"Public key of signer",
"type":"text",
"value":""
},
{
"name":"Private key of recipient",
"type":"text",
"value":""
},
{
"name":"Private key password",
"type":"string",
"value":""
}
];
}
/**
*@param{string}input
*@param{Object[]}args
*@returns{string}
*/
asyncrun(input,args){
constsignedMessage=input,
publicKey=args[0],
privateKey=args[1],
passphrase=args[2],
keyring=newkbpgp.keyring.KeyRing();
letunboxedLiterals;
if(!publicKey)return"Enter the public key of the signer.";
if(!privateKey)return"Enter the private key of the recipient.";