From 21364305f82d19a23ac94f0311d450e134c0631e Mon Sep 17 00:00:00 2001 From: pbca26 Date: Sun, 15 Apr 2018 20:46:18 +0300 Subject: [PATCH] bip39 global --- main.js | 3 ++- package.json | 3 ++- version | 4 ++-- version_build | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 01a5ba4..6fdef55 100644 --- a/main.js +++ b/main.js @@ -20,6 +20,7 @@ const fsnode = require('fs'); const fs = require('fs-extra'); const Promise = require('bluebird'); const arch = require('arch'); +const bip39 = require('bip39'); if (osPlatform === 'linux') { process.env.ELECTRON_RUN_AS_NODE = true; @@ -292,7 +293,7 @@ function createWindow(status, hideLoadingWindow) { mainWindow.nnVoteChain = 'VOTE2018'; mainWindow.checkStringEntropy = shepherd.checkStringEntropy; mainWindow.pinAccess = false; - mainWindow.randomBytes = randomBytes; + mainWindow.bip39 = bip39; /*for (let i = 0; i < process.argv.length; i++) { if (process.argv[i].indexOf('nvote') > -1) { diff --git a/package.json b/package.json index e35c79f..2739f76 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "arch": "^2.1.0", "async": "^2.6.0", "bigi": "^1.4.2", - "bip39": "^2.4.0", + "bip39": "^2.5.0", "bitcoinforksjs-lib": "git://github.com/SuperNETorg/bitcoinjs-lib#opt-in-bitcoincash-sighash", "bitcoinjs-lib": "git://github.com/SuperNETorg/bitcoinjs-lib", "bitcoinjs-lib-pos": "git://github.com/KomodoPlatform/bitcoinjs-lib-pos", @@ -46,6 +46,7 @@ "fs-extra": "^4.0.2", "graceful-fs": "^4.1.11", "js-sha256": "^0.7.1", + "lz-string": "^1.4.4", "marketmaker": "git://github.com/pbca26/marketmaker", "nodejs-aes256": "^1.0.1", "passwd-strength": "git+https://github.com/pbca26/passwd-strength.git", diff --git a/version b/version index 6499e09..caa51d0 100644 --- a/version +++ b/version @@ -1,3 +1,3 @@ -version=0.2.33 +version=0.2.34 type=beta -minversion=0.2.33 \ No newline at end of file +minversion=0.2.34 \ No newline at end of file diff --git a/version_build b/version_build index 4c75342..bde8668 100644 --- a/version_build +++ b/version_build @@ -1 +1 @@ -0.2.33-beta \ No newline at end of file +0.2.34-beta \ No newline at end of file