From ea7b89172973fba27cc7a0b63c87289667175145 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Thu, 31 Mar 2016 10:24:39 -0700 Subject: Remove unnecessary abstraction --- app/scripts/lib/idStore.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'app/scripts/lib') 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) -- cgit v1.2.3