From 735ec3df74097cdf9563c1f41c671feee8f8e75c Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Sun, 7 Feb 2016 17:36:48 +0700 Subject: [PATCH] Rename openpgp apis: signCleartext --> sign, verifyCleartext --> verify --- src/openpgp.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/openpgp.js b/src/openpgp.js index 4ad1d14d..02f375a9 100644 --- a/src/openpgp.js +++ b/src/openpgp.js @@ -203,11 +203,11 @@ export function decrypt({ message, privateKey, publickeys, sessionKey, password, * @return {Promise} ASCII armored message * @static */ -export function signCleartext({ data, privateKeys }) { +export function sign({ data, privateKeys }) { privateKeys = privateKeys.length ? privateKeys : [privateKeys]; if (asyncProxy) { // use web worker if available - return asyncProxy.signCleartext({ data, privateKeys }); + return asyncProxy.sign({ data, privateKeys }); } return execute(() => { @@ -229,11 +229,11 @@ export function signCleartext({ data, privateKeys }) { * { data:String, signatures: [{ keyid:String, valid:Boolean }] } * @static */ -export function verifyCleartext({ message, publicKeys }) { +export function verify({ message, publicKeys }) { publicKeys = publicKeys.length ? publicKeys : [publicKeys]; if (asyncProxy) { // use web worker if available - return asyncProxy.verifyCleartext({ message, publicKeys }); + return asyncProxy.verify({ message, publicKeys }); } return execute(() => {