Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 489cdbb

Browse files
authored
Merge pull request #114 from kumavis/v0.6.x
v0.6.x back patch: add node v12 support
2 parents c04b80e + 5c1b7cf commit 489cdbb

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

.travis.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ node_js:
33
- "6"
44
- "8"
55
- "10"
6+
- "12"
7+
- "14"
68
env:
79
- CXX=g++-4.8
810
addons:
@@ -11,20 +13,12 @@ addons:
1113
- ubuntu-toolchain-r-test
1214
packages:
1315
- g++-4.8
14-
branches:
15-
# We need to whitelist the branches which we want to have "push" automation.
16-
# Pull request automation is not constrained to this set of branches.
17-
only:
18-
- master
1916
env:
2017
matrix:
2118
- CXX=g++-4.8 TEST_SUITE=test
2219
matrix:
2320
fast_finish: true
2421
include:
25-
- os: linux
26-
node_js: "8"
27-
env: CXX=g++-4.8 TEST_SUITE=coveralls
2822
- os: linux
2923
node_js: "8"
3024
env: CXX=g++-4.8 TEST_SUITE=lint

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
},
3838
"homepage": "https://github.com/ethereumjs/ethereumjs-wallet",
3939
"dependencies": {
40+
"scryptsy": "^1.2.1",
4041
"aes-js": "^3.1.1",
4142
"bs58check": "^2.1.2",
4243
"ethereumjs-util": "^6.0.0",
4344
"hdkey": "^1.1.1",
4445
"randombytes": "^2.0.6",
4546
"safe-buffer": "^5.1.2",
46-
"scrypt.js": "^0.3.0",
4747
"utf8": "^3.0.0",
4848
"uuid": "^3.3.2"
4949
},

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var Buffer = require('safe-buffer').Buffer
22
var ethUtil = require('ethereumjs-util')
33
var crypto = require('crypto')
44
var randomBytes = require('randombytes')
5-
var scryptsy = require('scrypt.js')
5+
var scryptsy = require('scryptsy')
66
var uuidv4 = require('uuid/v4')
77
var bs58check = require('bs58check')
88

src/thirdparty.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var Wallet = require('./index.js')
22
var ethUtil = require('ethereumjs-util')
33
var crypto = require('crypto')
4-
var scryptsy = require('scrypt.js')
4+
var scryptsy = require('scryptsy')
55
var utf8 = require('utf8')
66
var aesjs = require('aes-js')
77
var Buffer = require('safe-buffer').Buffer
@@ -176,7 +176,7 @@ Thirdparty.fromKryptoKit = function (entropy, password) {
176176

177177
var privKey
178178
if (type === 'd') {
179-
privKey = ethUtil.sha256(entropy)
179+
privKey = ethUtil.sha256(Buffer.from(entropy))
180180
} else if (type === 'q') {
181181
if (typeof password !== 'string') {
182182
throw new Error('Password required')

0 commit comments

Comments
 (0)