diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-04-01 01:24:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-04-01 01:24:39 +0800 |
commit | ea7b89172973fba27cc7a0b63c87289667175145 (patch) | |
tree | 1a750d2970f7aac9897846bf2b5d820863956892 /app/scripts | |
parent | b81e2ccb7edb1f41470326437ffb3ebd5d3e18fc (diff) | |
download | tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar.gz tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar.bz2 tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar.lz tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar.xz tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.tar.zst tangerine-wallet-browser-ea7b89172973fba27cc7a0b63c87289667175145.zip |
Remove unnecessary abstraction
Diffstat (limited to 'app/scripts')
-rw-r--r-- | app/scripts/lib/idStore.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/scripts/lib/idStore.js b/app/scripts/lib/idStore.js index 911888a5b..f8267f6ca 100644 --- a/app/scripts/lib/idStore.js +++ b/app/scripts/lib/idStore.js @@ -221,7 +221,7 @@ IdentityStore.prototype._createIdmgmt = function(password, seed, entropy, cb){ // returning user, recovering from storage } else if (serializedKeystore) { - keyStore = this.deserializeKeystore(serializedKeystore) + keyStore = LightwalletKeyStore.deserialize(serializedKeystore) var isCorrect = keyStore.isDerivedKeyCorrect(derivedKey) if (!isCorrect) return cb(new Error('Lightwallet - password incorrect')) @@ -252,10 +252,6 @@ IdentityStore.prototype._restoreFromSeed = function(password, seed, derivedKey) return keyStore } -IdentityStore.prototype.deserializeKeystore = function(serializedKeystore) { - return LightwalletKeyStore.deserialize(serializedKeystore) -} - IdentityStore.prototype._createFirstWallet = function(entropy, derivedKey) { var secretSeed = LightwalletKeyStore.generateRandomSeed(entropy) var keyStore = new LightwalletKeyStore(secretSeed, derivedKey, this.hdPathString) |