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