sS pki_signatureForText(S s, PKIKeyPair keyPair) { ret base64encode(PKI.sign(toUtf8(s), keyPair.privateKey)); }