this.description="Input: the cleartext you want to sign.\n<br><br>\nArguments: the ASCII-armoured private key of the signer (plus the private key password if necessary)\nand the ASCII-armoured PGP public key of the recipient.\n<br><br>\nThis operation uses PGP to produce 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":"Private key of signer",
"type":"text",
"value":""
},
{
"name":"Private key passphrase",
"type":"string",
"value":""
},
{
"name":"Public key of recipient",
"type":"text",
"value":""
}
];
}
/**
*@param{string}input
*@param{Object[]}args
*@returns{string}
*/
asyncrun(input,args){
constmessage=input,
privateKey=args[0],
passphrase=args[1],
publicKey=args[2];
letsignedMessage;
if(!privateKey)return"Enter the private key of the signer.";
if(!publicKey)return"Enter the public key of the recipient.";