aboutsummaryrefslogtreecommitdiff
path: root/bip39-standalone.html
diff options
context:
space:
mode:
authorIan Coleman <coleman.ian@gmail.com>2014-09-26 20:05:11 +1000
committerIan Coleman <coleman.ian@gmail.com>2014-09-26 20:05:56 +1000
commitbade150497a0459a8cb3b4a5cde315117b8430a7 (patch)
tree7cffde85028eec8f777b71ee40509dec8c6597e6 /bip39-standalone.html
parentd4779799ca468dcd7e99ebb0e1067a32a8435c03 (diff)
downloadBIP39-bade150497a0459a8cb3b4a5cde315117b8430a7.tar.gz
BIP39-bade150497a0459a8cb3b4a5cde315117b8430a7.tar.zst
BIP39-bade150497a0459a8cb3b4a5cde315117b8430a7.zip
bip32.org format not used for seed
ie put the bip39 seed directly into bip32 without hashing it first like bip32.org does with passphrases.
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("/");