From 648980ad50d07e5c728c604465214aed2339adeb Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 27 Sep 2019 13:32:57 +0200 Subject: [PATCH] a few more slow nacl imports that I missed --- scripts/check-account-deletion.js | 2 +- scripts/generate-admin-keys.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-account-deletion.js b/scripts/check-account-deletion.js index 020e3c254..cf271a1da 100644 --- a/scripts/check-account-deletion.js +++ b/scripts/check-account-deletion.js @@ -2,7 +2,7 @@ const Fs = require('fs'); const nThen = require('nthen'); const Pinned = require('./pinned'); -const Nacl = require('tweetnacl'); +const Nacl = require('tweetnacl/nacl-fast'); const Path = require('path'); const Pins = require('../lib/pins'); const Config = require('../lib/load-config'); diff --git a/scripts/generate-admin-keys.js b/scripts/generate-admin-keys.js index 26d26537e..f99c756d7 100644 --- a/scripts/generate-admin-keys.js +++ b/scripts/generate-admin-keys.js @@ -1,6 +1,6 @@ /* jshint esversion: 6, node: true */ -const Nacl = require('tweetnacl'); +const Nacl = require('tweetnacl/nacl-fast'); const keyPair = Nacl.box.keyPair(); console.log("You've just generated a new key pair for your support mailbox.");