aboutsummaryrefslogtreecommitdiff
path: root/bip39-standalone.html
diff options
context:
space:
mode:
Diffstat (limited to 'bip39-standalone.html')
-rw-r--r--bip39-standalone.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index 99fa529..22d7120 100644
--- a/bip39-standalone.html
+++ b/bip39-standalone.html
@@ -22865,8 +22865,7 @@ WORDLISTS = {
22865 22865
22866 function calcBip32Seed(phrase, passphrase, path) { 22866 function calcBip32Seed(phrase, passphrase, path) {
22867 var seed = mnemonic.toSeed(phrase, passphrase); 22867 var seed = mnemonic.toSeed(phrase, passphrase);
22868 var seedHash = Bitcoin.crypto.sha256(seed).toString("hex"); 22868 bip32RootKey = Bitcoin.HDNode.fromSeedHex(seed, network);
22869 bip32RootKey = Bitcoin.HDNode.fromSeedHex(seedHash, network);
22870 bip32ExtendedKey = bip32RootKey; 22869 bip32ExtendedKey = bip32RootKey;
22871 // Derive the key from the path 22870 // Derive the key from the path
22872 var pathBits = path.split("/"); 22871 var pathBits = path.split("/");