diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/index.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js index 7f39ad2..cd3a506 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -164,8 +164,7 @@ | |||
164 | 164 | ||
165 | function calcBip32Seed(phrase, passphrase, path) { | 165 | function calcBip32Seed(phrase, passphrase, path) { |
166 | var seed = mnemonic.toSeed(phrase, passphrase); | 166 | var seed = mnemonic.toSeed(phrase, passphrase); |
167 | var seedHash = Bitcoin.crypto.sha256(seed).toString("hex"); | 167 | bip32RootKey = Bitcoin.HDNode.fromSeedHex(seed, network); |
168 | bip32RootKey = Bitcoin.HDNode.fromSeedHex(seedHash, network); | ||
169 | bip32ExtendedKey = bip32RootKey; | 168 | bip32ExtendedKey = bip32RootKey; |
170 | // Derive the key from the path | 169 | // Derive the key from the path |
171 | var pathBits = path.split("/"); | 170 | var pathBits = path.split("/"); |