aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-10 10:42:18 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-10 10:42:18 +0800
commit36dc63bc048e62b5ef0d1b0385e530afdad3fefa (patch)
tree27f882027551792a05c2aa7be992a806e6d38255 /test
parent153b6b73d8244e3e30d25784ad9ef937048e2d1b (diff)
downloadtangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar.gz
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar.bz2
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar.lz
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar.xz
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.tar.zst
tangerine-wallet-browser-36dc63bc048e62b5ef0d1b0385e530afdad3fefa.zip
Add new eth-lightwallet salting to vault.
eth-lightwallet was previously not salting vault passwords, potentially making it easier to crack them once obtained. This branch incorporates the API changes to allow us to take advantage of the new salting logic. This is still throwing deprecation warnings, but that's actually a bug in eth-lightwallet I wrote, [I've submitted a PR for that here](https://github.com/ConsenSys/eth-lightwallet/pull/116). Fixes #555
Diffstat (limited to 'test')
-rw-r--r--test/unit/idStore-test.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/idStore-test.js b/test/unit/idStore-test.js
index ee4613236..cbbec43b5 100644
--- a/test/unit/idStore-test.js
+++ b/test/unit/idStore-test.js
@@ -23,6 +23,7 @@ describe('IdentityStore', function() {
})
idStore.createNewVault(password, entropy, (err, seeds) => {
+ assert.ifError(err, 'createNewVault threw error')
seedWords = seeds
originalKeystore = idStore._idmgmt.keyStore
done()
@@ -59,6 +60,7 @@ describe('IdentityStore', function() {
describe('#recoverFromSeed BIP44 compliance', function() {
let seedWords = 'picnic injury awful upper eagle junk alert toss flower renew silly vague'
let firstAccount = '0x5d8de92c205279c10e5669f797b853ccef4f739a'
+ const salt = 'lightwalletSalt'
let password = 'secret!'
let accounts = []
@@ -70,7 +72,7 @@ describe('IdentityStore', function() {
idStore = new IdentityStore({
configManager: configManagerGen(),
ethStore: {
- addAccount(acct) { accounts.push(acct) },
+ addAccount(acct) { accounts.push('0x' + acct) },
},
})
})