diff --git a/lib/commands/core.js b/lib/commands/core.js index e3ec3469b..f4e6a9f70 100644 --- a/lib/commands/core.js +++ b/lib/commands/core.js @@ -5,10 +5,6 @@ const Util = require("../common-util"); const escapeKeyCharacters = Util.escapeKeyCharacters; //const { fork } = require('child_process'); -/* Use Nacl for checking signatures of messages */ -const Nacl = require("tweetnacl/nacl-fast"); - - Core.DEFAULT_LIMIT = 50 * 1024 * 1024; Core.SESSION_EXPIRATION_TIME = 60 * 1000; diff --git a/lib/workers/check-signature.js b/lib/workers/check-signature.js index 37fca3783..846f41d3b 100644 --- a/lib/workers/check-signature.js +++ b/lib/workers/check-signature.js @@ -66,7 +66,7 @@ const checkDetachedSignature = function (signedMsg, signature, publicKey) { COMMANDS.DETACHED = function (data, cb) { try { - checkDetachedSignature(data.msg, data.sig, data.key) + checkDetachedSignature(data.msg, data.sig, data.key); } catch (err) { return void cb(err && err.message); }