X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=bip39-standalone.html;h=0f7d7d08a10bf2759a9683bd2623cf69141908d4;hb=52da415f0385a6a89070498d14259aed980f989b;hp=1d0e1cf747e47a20b2cc9d8d5e5105bf01c45a07;hpb=e00964ccf7a556895784ed05f0fdec954f5558d5;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/bip39-standalone.html b/bip39-standalone.html index 1d0e1cf..0f7d7d0 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -96,8 +96,15 @@ .qr-image { margin: 5px; } - .qr-hint { + .qr-hint, + .qr-warning { padding: 2px; + max-width: 150px; + } + .more-info { + cursor: help; + border-bottom: 1px dashed #000; + text-decoration: none; } @@ -169,7 +176,7 @@
- +
@@ -316,6 +323,36 @@ +
+ +
+

The account extended 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 +384,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 +414,13 @@
- +
- +
@@ -517,6 +533,12 @@

You are not a good source of entropy.

+

License

+

+ Please refer to the software license for more detail. + +

+

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

@@ -605,9 +627,12 @@
@@ -14693,7 +14718,8 @@ sjcl.hash.sha256.prototype = { // //
Test
//
keep em tag
-// +// +// // // Obtain all the phrases to be translated via js debug console: // @@ -14708,7 +14734,8 @@ sjcl.hash.sha256.prototype = { // Translate.loadForeignPhrases("es", { // "Test": "Test in Spanish", // "keep em tag": "keep em tag in Spanish", -// "Example text": "Example text in Spanish" +// "Example placeholder": "Example placeholder in Spanish" +// "Example title": "Example title in Spanish" // }); // // In your UI put a listener for clicking on the Spanish button: @@ -14759,10 +14786,21 @@ Translate = new (function() { }, } + var title = { + selector: "[data-translate-title]", + getKey: function() { + return this.getAttribute("title").trim().replace(/\s+/g, " "); + }, + setPhrase: function(p) { + this.setAttribute("title", p); + }, + } + // Get elements to be translated var allEls = getEls(text) .concat(getEls(html)) - .concat(getEls(placeholder)); + .concat(getEls(placeholder)) + .concat(getEls(title)); // Provides access to phrases from a non-default language. // See phrases_en.js for example usage. @@ -18615,7 +18653,7 @@ window.Entropy = new (function() { var showAddress = true; var showPubKey = true; var showPrivKey = true; - var showQr = true; + var showQr = false; var entropyChangeTimeoutEvent = null; var phraseChangeTimeoutEvent = null; @@ -18653,6 +18691,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"); @@ -18667,6 +18707,7 @@ window.Entropy = new (function() { DOM.privateKeyToggle = $(".private-key-toggle"); DOM.languages = $(".languages a"); DOM.qrContainer = $(".qr-container"); + DOM.qrHider = DOM.qrContainer.find(".qr-hider"); DOM.qrImage = DOM.qrContainer.find(".qr-image"); DOM.qrHint = DOM.qrContainer.find(".qr-hint"); DOM.showQrEls = $("[data-show-qr]"); @@ -18840,7 +18881,10 @@ window.Entropy = new (function() { showValidationError(errorText); return; } - calcBip32ExtendedKey(derivationPath); + bip32ExtendedKey = calcBip32ExtendedKey(derivationPath); + if (bip44TabSelected()) { + displayBip44Info(); + } displayBip32Info(); hidePending(); } @@ -18920,7 +18964,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