]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blobdiff - bip39-standalone.html
bip32.org format not used for seed
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / bip39-standalone.html
index 99fa5290f5fe4cd5b5a9b99607bf28a68bb9ca21..22d712009740d7fb8ccd6b464df136be63dee6a4 100644 (file)
@@ -22865,8 +22865,7 @@ WORDLISTS = {
 
     function calcBip32Seed(phrase, passphrase, path) {
         var seed = mnemonic.toSeed(phrase, passphrase);
-        var seedHash = Bitcoin.crypto.sha256(seed).toString("hex");
-        bip32RootKey = Bitcoin.HDNode.fromSeedHex(seedHash, network);
+        bip32RootKey = Bitcoin.HDNode.fromSeedHex(seed, network);
         bip32ExtendedKey = bip32RootKey;
         // Derive the key from the path
         var pathBits = path.split("/");