use fast implementations of tweetnacl serverside

pull/1/head
ansuz 5 years ago
parent 252b2729a6
commit 069776e804

@ -4,7 +4,7 @@ var nThen = require("nthen");
var Util = require("../../www/common/common-util"); var Util = require("../../www/common/common-util");
var Nacl = require("tweetnacl"); var Nacl = require("tweetnacl/nacl-fast");
var Client = module.exports; var Client = module.exports;

@ -1,7 +1,7 @@
/*@flow*/ /*@flow*/
/*jshint esversion: 6 */ /*jshint esversion: 6 */
/* Use Nacl for checking signatures of messages */ /* Use Nacl for checking signatures of messages */
var Nacl = require("tweetnacl"); var Nacl = require("tweetnacl/nacl-fast");
/* globals Buffer*/ /* globals Buffer*/
/* globals process */ /* globals process */

@ -3,7 +3,7 @@
var Client = require("../../lib/client/"); var Client = require("../../lib/client/");
var Crypto = require("../../www/bower_components/chainpad-crypto"); var Crypto = require("../../www/bower_components/chainpad-crypto");
var Mailbox = Crypto.Mailbox; var Mailbox = Crypto.Mailbox;
var Nacl = require("tweetnacl"); var Nacl = require("tweetnacl/nacl-fast");
var nThen = require("nthen"); var nThen = require("nthen");
var Pinpad = require("../../www/common/pinpad"); var Pinpad = require("../../www/common/pinpad");
var Rpc = require("../../www/common/rpc"); var Rpc = require("../../www/common/rpc");

@ -1,7 +1,7 @@
var Fs = require("fs"); var Fs = require("fs");
var Fse = require("fs-extra"); var Fse = require("fs-extra");
var Path = require("path"); var Path = require("path");
var nacl = require("tweetnacl"); var nacl = require("tweetnacl/nacl-fast");
var nThen = require("nthen"); var nThen = require("nthen");
var Tasks = module.exports; var Tasks = module.exports;

@ -530,7 +530,7 @@ Version 1
}; };
if (typeof(module) !== 'undefined' && module.exports) { if (typeof(module) !== 'undefined' && module.exports) {
module.exports = factory(require("./common-util"), require("chainpad-crypto"), require("tweetnacl")); module.exports = factory(require("./common-util"), require("chainpad-crypto"), require("tweetnacl/nacl-fast"));
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) { } else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define([ define([
'/common/common-util.js', '/common/common-util.js',

@ -404,7 +404,7 @@ var factory = function (Util, Nacl) {
}; };
if (typeof(module) !== 'undefined' && module.exports) { if (typeof(module) !== 'undefined' && module.exports) {
module.exports = factory(require("./common-util"), require("tweetnacl")); module.exports = factory(require("./common-util"), require("tweetnacl/nacl-fast"));
} else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) { } else if ((typeof(define) !== 'undefined' && define !== null) && (define.amd !== null)) {
define([ define([
'/common/common-util.js', '/common/common-util.js',

Loading…
Cancel
Save