From 20083ab9e9ae519400447fc97c3cd1b86ffcad57 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Mon, 12 Dec 2016 11:05:56 +1100 Subject: [PATCH] BIP44 account extended keys compiled to standalone --- bip39-standalone.html | 99 ++++++++++++++++++++++++++++++------------- 1 file changed, 70 insertions(+), 29 deletions(-) diff --git a/bip39-standalone.html b/bip39-standalone.html index 1d0e1cf..45380a3 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -316,6 +316,36 @@ +
+ +
+

The account extendend keys can be used for importing to most BIP44 compatible wallets, such as mycelium or electrum.

+
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+

The BIP32 derivation path and extended keys are the basis for the derived addresses.

+
+
@@ -347,27 +377,6 @@ Use hardened addresses
-
- -
-

- m/44'/0'/0' generates extended keys for import / export -

-

- m/44'/0'/1' for the next account. Continue incrementing for more accounts (most use a single account). -

-

- m/44'/0'/0'/0 generates public addresses -

-

- m/44'/0'/0'/1 generates change addresses -

-

- For more info see the - Mycelium Wallet homepage -

-
-
@@ -398,13 +407,13 @@
- +
- +
@@ -18653,6 +18662,8 @@ window.Entropy = new (function() { DOM.bip44purpose = $("#bip44 .purpose"); DOM.bip44coin = $("#bip44 .coin"); DOM.bip44account = $("#bip44 .account"); + DOM.bip44accountXprv = $("#bip44 .account-xprv"); + DOM.bip44accountXpub = $("#bip44 .account-xpub"); DOM.bip44change = $("#bip44 .change"); DOM.generatedStrength = $(".generate-container .strength"); DOM.hardenedAddresses = $(".hardened-addresses"); @@ -18840,7 +18851,10 @@ window.Entropy = new (function() { showValidationError(errorText); return; } - calcBip32ExtendedKey(derivationPath); + bip32ExtendedKey = calcBip32ExtendedKey(derivationPath); + if (bip44TabSelected()) { + displayBip44Info(); + } displayBip32Info(); hidePending(); } @@ -18920,7 +18934,7 @@ window.Entropy = new (function() { } function calcBip32ExtendedKey(path) { - bip32ExtendedKey = bip32RootKey; + var extendedKey = bip32RootKey; // Derive the key from the path var pathBits = path.split("/"); for (var i=0; i