diff options
-rw-r--r-- | bip39-standalone.html | 302 | ||||
-rw-r--r-- | changelog.md | 7 | ||||
-rw-r--r-- | src/index.html | 2 |
3 files changed, 271 insertions, 40 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html index 27b60ef..d5c207f 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html | |||
@@ -6858,6 +6858,14 @@ button.close { | |||
6858 | top: 5px; | 6858 | top: 5px; |
6859 | right: 5px; | 6859 | right: 5px; |
6860 | } | 6860 | } |
6861 | .csv { | ||
6862 | margin-top: 20px; | ||
6863 | margin-bottom: 20px; | ||
6864 | white-space: pre; | ||
6865 | overflow-wrap: normal; | ||
6866 | overflow-x: scroll; | ||
6867 | font-family: monospace; | ||
6868 | } | ||
6861 | </style> | 6869 | </style> |
6862 | <meta content="Mnemonic code for generating deterministic keys" name="description"/> | 6870 | <meta content="Mnemonic code for generating deterministic keys" name="description"/> |
6863 | <meta content="width=device-width, initial-scale=1.0" name="viewport" /> | 6871 | <meta content="width=device-width, initial-scale=1.0" name="viewport" /> |
@@ -6869,7 +6877,7 @@ button.close { | |||
6869 | <div class="container"> | 6877 | <div class="container"> |
6870 | 6878 | ||
6871 | <h1 class="text-center">Mnemonic Code Converter</h1> | 6879 | <h1 class="text-center">Mnemonic Code Converter</h1> |
6872 | <p class="version">v0.3.1</p> | 6880 | <p class="version">v0.3.2</p> |
6873 | <hr> | 6881 | <hr> |
6874 | <div class="row"> | 6882 | <div class="row"> |
6875 | <div class="col-md-12"> | 6883 | <div class="col-md-12"> |
@@ -7058,6 +7066,9 @@ button.close { | |||
7058 | <li id="bip49-tab"> | 7066 | <li id="bip49-tab"> |
7059 | <a href="#bip49" role="tab" data-toggle="tab">BIP49</a> | 7067 | <a href="#bip49" role="tab" data-toggle="tab">BIP49</a> |
7060 | </li> | 7068 | </li> |
7069 | <li id="bip84-tab"> | ||
7070 | <a href="#bip84" role="tab" data-toggle="tab">BIP84</a> | ||
7071 | </li> | ||
7061 | <li id="bip141-tab"> | 7072 | <li id="bip141-tab"> |
7062 | <a href="#bip141" role="tab" data-toggle="tab">BIP141</a> | 7073 | <a href="#bip141" role="tab" data-toggle="tab">BIP141</a> |
7063 | </li> | 7074 | </li> |
@@ -7341,6 +7352,86 @@ button.close { | |||
7341 | </div> | 7352 | </div> |
7342 | </form> | 7353 | </form> |
7343 | </div> | 7354 | </div> |
7355 | <div id="bip84" class="tab-pane"> | ||
7356 | <form class="form-horizontal" role="form"> | ||
7357 | <br> | ||
7358 | <div class="col-sm-2"></div> | ||
7359 | <div class="col-sm-10"> | ||
7360 | <p> | ||
7361 | For more info see the | ||
7362 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki" target="_blank">BIP84 spec</a>. | ||
7363 | </p> | ||
7364 | </div> | ||
7365 | <div class="form-group"> | ||
7366 | <label for="purpose" class="col-sm-2 control-label"> | ||
7367 | Purpose | ||
7368 | </label> | ||
7369 | <div class="col-sm-10"> | ||
7370 | <input id="purpose" type="text" class="purpose form-control" value="84" readonly> | ||
7371 | </div> | ||
7372 | </div> | ||
7373 | <div class="form-group"> | ||
7374 | <label for="coin" class="col-sm-2 control-label"> | ||
7375 | Coin | ||
7376 | </label> | ||
7377 | <div class="col-sm-10"> | ||
7378 | <input id="coin" type="text" class="coin form-control" value="0" readonly> | ||
7379 | </div> | ||
7380 | </div> | ||
7381 | <div class="form-group"> | ||
7382 | <label for="account" class="col-sm-2 control-label"> | ||
7383 | Account | ||
7384 | </label> | ||
7385 | <div class="col-sm-10"> | ||
7386 | <input id="account" type="text" class="account form-control" value="0"> | ||
7387 | </div> | ||
7388 | </div> | ||
7389 | <div class="form-group"> | ||
7390 | <label for="change" class="col-sm-2 control-label"> | ||
7391 | External / Internal | ||
7392 | </label> | ||
7393 | <div class="col-sm-10"> | ||
7394 | <input id="change" type="text" class="change form-control" value="0"> | ||
7395 | </div> | ||
7396 | </div> | ||
7397 | <div class="form-group"> | ||
7398 | <label class="col-sm-2 control-label"> | ||
7399 | </label> | ||
7400 | <div class="col-sm-10"> | ||
7401 | <p>The account extended keys can be used for importing to most BIP84 compatible wallets.</p> | ||
7402 | </div> | ||
7403 | </div> | ||
7404 | <div class="form-group"> | ||
7405 | <label for="account-xprv" class="col-sm-2 control-label"> | ||
7406 | <span>Account Extended Private Key</span> | ||
7407 | </label> | ||
7408 | <div class="col-sm-10"> | ||
7409 | <textarea id="account-xprv" type="text" class="account-xprv form-control" readonly data-show-qr></textarea> | ||
7410 | </div> | ||
7411 | </div> | ||
7412 | <div class="form-group"> | ||
7413 | <label for="account-xpub" class="col-sm-2 control-label"> | ||
7414 | <span>Account Extended Public Key</span> | ||
7415 | </label> | ||
7416 | <div class="col-sm-10"> | ||
7417 | <textarea id="account-xpub" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> | ||
7418 | </div> | ||
7419 | </div> | ||
7420 | <div class="form-group"> | ||
7421 | <label class="col-sm-2 control-label"> | ||
7422 | </label> | ||
7423 | <div class="col-sm-10"> | ||
7424 | <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p> | ||
7425 | </div> | ||
7426 | </div> | ||
7427 | <div class="form-group"> | ||
7428 | <label for="bip84-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | ||
7429 | <div class="col-sm-10"> | ||
7430 | <input id="bip84-path" type="text" class="path form-control" value="m/84'/0'/0'/0" readonly="readonly"> | ||
7431 | </div> | ||
7432 | </div> | ||
7433 | </form> | ||
7434 | </div> | ||
7344 | </div> | 7435 | </div> |
7345 | <form class="form-horizontal" role="form"> | 7436 | <form class="form-horizontal" role="form"> |
7346 | <div class="form-group"> | 7437 | <div class="form-group"> |
@@ -7374,42 +7465,59 @@ button.close { | |||
7374 | </label> | 7465 | </label> |
7375 | </div> | 7466 | </div> |
7376 | </div> | 7467 | </div> |
7377 | <div class="col-md-12"> | 7468 | <ul class="addresses-type nav nav-tabs" role="tablist"> |
7378 | <table class="table table-striped"> | 7469 | <li id="table-tab" class="active"> |
7379 | <thead> | 7470 | <a href="#table" role="tab" data-toggle="tab">Table</a> |
7380 | <th> | 7471 | </li> |
7381 | <div class="input-group"> | 7472 | <li id="csv-tab"> |
7382 | <span>Path</span> | 7473 | <a href="#csv" role="tab" data-toggle="tab">CSV</a> |
7383 | <button class="index-toggle">Toggle</button> | 7474 | </li> |
7384 | </div> | 7475 | </ul> |
7385 | </th> | 7476 | <div class="addresses-type tab-content"> |
7386 | <th> | 7477 | <div id="table" class="tab-pane active"> |
7387 | <div class="input-group"> | 7478 | <div class="col-md-12"> |
7388 | <span>Address</span> | 7479 | <table class="table table-striped"> |
7389 | <button class="address-toggle">Toggle</button> | 7480 | <thead> |
7390 | </div> | 7481 | <th> |
7391 | </th> | 7482 | <div class="input-group"> |
7392 | <th> | 7483 | <span>Path</span> |
7393 | <div class="input-group"> | 7484 | <button class="index-toggle">Toggle</button> |
7394 | <span>Public Key</span> | 7485 | </div> |
7395 | <button class="public-key-toggle">Toggle</button> | 7486 | </th> |
7396 | </div> | 7487 | <th> |
7397 | </th> | 7488 | <div class="input-group"> |
7398 | <th> | 7489 | <span>Address</span> |
7399 | <div class="input-group"> | 7490 | <button class="address-toggle">Toggle</button> |
7400 | <span>Private Key</span> | 7491 | </div> |
7401 | <button class="private-key-toggle">Toggle</button> | 7492 | </th> |
7402 | </div> | 7493 | <th> |
7403 | </th> | 7494 | <div class="input-group"> |
7404 | </thead> | 7495 | <span>Public Key</span> |
7405 | <tbody class="addresses monospace"> | 7496 | <button class="public-key-toggle">Toggle</button> |
7406 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | 7497 | </div> |
7407 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | 7498 | </th> |
7408 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | 7499 | <th> |
7409 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | 7500 | <div class="input-group"> |
7410 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | 7501 | <span>Private Key</span> |
7411 | </tbody> | 7502 | <button class="private-key-toggle">Toggle</button> |
7412 | </table> | 7503 | </div> |
7504 | </th> | ||
7505 | </thead> | ||
7506 | <tbody class="addresses monospace"> | ||
7507 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | ||
7508 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | ||
7509 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | ||
7510 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | ||
7511 | <tr><td> </td><td> </td><td> </td><td> </td></tr> | ||
7512 | </tbody> | ||
7513 | </table> | ||
7514 | </div> | ||
7515 | </div> | ||
7516 | <div id="csv" class="tab-pane"> | ||
7517 | <div class="col-md-12"> | ||
7518 | <textarea class="csv form-control" rows="25" readonly></textarea> | ||
7519 | </div> | ||
7520 | </div> | ||
7413 | </div> | 7521 | </div> |
7414 | </div> | 7522 | </div> |
7415 | <span>Show</span> | 7523 | <span>Show</span> |
@@ -50855,6 +50963,18 @@ bitcoinjs.bitcoin.networks.myriadcoin = { | |||
50855 | wif: 0xb2 | 50963 | wif: 0xb2 |
50856 | }; | 50964 | }; |
50857 | 50965 | ||
50966 | |||
50967 | bitcoinjs.bitcoin.networks.onixcoin = { | ||
50968 | messagePrefix: 'unused', | ||
50969 | bip32: { | ||
50970 | public: 0x049d7cb2, | ||
50971 | private: 0x049d7878 | ||
50972 | }, | ||
50973 | pubKeyHash: 0x4B, | ||
50974 | scriptHash: 0x05, | ||
50975 | wif: 0x80 | ||
50976 | }; | ||
50977 | |||
50858 | bitcoinjs.bitcoin.networks.pivx = { | 50978 | bitcoinjs.bitcoin.networks.pivx = { |
50859 | messagePrefix: 'unused', | 50979 | messagePrefix: 'unused', |
50860 | bip32: { | 50980 | bip32: { |
@@ -50942,6 +51062,17 @@ bitcoinjs.bitcoin.networks.litecoinXprv = { | |||
50942 | scriptHash: 0x32, | 51062 | scriptHash: 0x32, |
50943 | wif: 0xb0 | 51063 | wif: 0xb0 |
50944 | }; | 51064 | }; |
51065 | |||
51066 | bitcoinjs.bitcoin.networks.komodo = { | ||
51067 | messagePrefix: '\x18Komodo Signed Message:\n', | ||
51068 | bip32: { | ||
51069 | public: 0x0488B21E, | ||
51070 | private: 0x0488ADE4 | ||
51071 | }, | ||
51072 | pubKeyHash: 0x3c, | ||
51073 | scriptHash: 0x55, | ||
51074 | wif: 0xbc | ||
51075 | }; | ||
50945 | </script> | 51076 | </script> |
50946 | <script>(function() { | 51077 | <script>(function() { |
50947 | 51078 | ||
@@ -74567,6 +74698,7 @@ window.Entropy = new (function() { | |||
74567 | DOM.bip32tab = $("#bip32-tab"); | 74698 | DOM.bip32tab = $("#bip32-tab"); |
74568 | DOM.bip44tab = $("#bip44-tab"); | 74699 | DOM.bip44tab = $("#bip44-tab"); |
74569 | DOM.bip49tab = $("#bip49-tab"); | 74700 | DOM.bip49tab = $("#bip49-tab"); |
74701 | DOM.bip84tab = $("#bip84-tab"); | ||
74570 | DOM.bip141tab = $("#bip141-tab"); | 74702 | DOM.bip141tab = $("#bip141-tab"); |
74571 | DOM.bip32panel = $("#bip32"); | 74703 | DOM.bip32panel = $("#bip32"); |
74572 | DOM.bip44panel = $("#bip44"); | 74704 | DOM.bip44panel = $("#bip44"); |
@@ -74588,6 +74720,13 @@ window.Entropy = new (function() { | |||
74588 | DOM.bip49accountXprv = $("#bip49 .account-xprv"); | 74720 | DOM.bip49accountXprv = $("#bip49 .account-xprv"); |
74589 | DOM.bip49accountXpub = $("#bip49 .account-xpub"); | 74721 | DOM.bip49accountXpub = $("#bip49 .account-xpub"); |
74590 | DOM.bip49change = $("#bip49 .change"); | 74722 | DOM.bip49change = $("#bip49 .change"); |
74723 | DOM.bip84path = $("#bip84-path"); | ||
74724 | DOM.bip84purpose = $("#bip84 .purpose"); | ||
74725 | DOM.bip84coin = $("#bip84 .coin"); | ||
74726 | DOM.bip84account = $("#bip84 .account"); | ||
74727 | DOM.bip84accountXprv = $("#bip84 .account-xprv"); | ||
74728 | DOM.bip84accountXpub = $("#bip84 .account-xpub"); | ||
74729 | DOM.bip84change = $("#bip84 .change"); | ||
74591 | DOM.bip141unavailable = $("#bip141 .unavailable"); | 74730 | DOM.bip141unavailable = $("#bip141 .unavailable"); |
74592 | DOM.bip141available = $("#bip141 .available"); | 74731 | DOM.bip141available = $("#bip141 .available"); |
74593 | DOM.bip141path = $("#bip141-path"); | 74732 | DOM.bip141path = $("#bip141-path"); |
@@ -74597,6 +74736,8 @@ window.Entropy = new (function() { | |||
74597 | DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container"); | 74736 | DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container"); |
74598 | DOM.useBitpayAddresses = $(".use-bitpay-addresses"); | 74737 | DOM.useBitpayAddresses = $(".use-bitpay-addresses"); |
74599 | DOM.addresses = $(".addresses"); | 74738 | DOM.addresses = $(".addresses"); |
74739 | DOM.csvTab = $("#csv-tab a"); | ||
74740 | DOM.csv = $(".csv"); | ||
74600 | DOM.rowsToAdd = $(".rows-to-add"); | 74741 | DOM.rowsToAdd = $(".rows-to-add"); |
74601 | DOM.more = $(".more"); | 74742 | DOM.more = $(".more"); |
74602 | DOM.moreRowsStartIndex = $(".more-rows-start-index"); | 74743 | DOM.moreRowsStartIndex = $(".more-rows-start-index"); |
@@ -74631,6 +74772,8 @@ window.Entropy = new (function() { | |||
74631 | DOM.bip44change.on("input", calcForDerivationPath); | 74772 | DOM.bip44change.on("input", calcForDerivationPath); |
74632 | DOM.bip49account.on("input", calcForDerivationPath); | 74773 | DOM.bip49account.on("input", calcForDerivationPath); |
74633 | DOM.bip49change.on("input", calcForDerivationPath); | 74774 | DOM.bip49change.on("input", calcForDerivationPath); |
74775 | DOM.bip84account.on("input", calcForDerivationPath); | ||
74776 | DOM.bip84change.on("input", calcForDerivationPath); | ||
74634 | DOM.bip141path.on("input", calcForDerivationPath); | 74777 | DOM.bip141path.on("input", calcForDerivationPath); |
74635 | DOM.bip141semantics.on("change", tabChanged); | 74778 | DOM.bip141semantics.on("change", tabChanged); |
74636 | DOM.tab.on("shown.bs.tab", tabChanged); | 74779 | DOM.tab.on("shown.bs.tab", tabChanged); |
@@ -74639,6 +74782,7 @@ window.Entropy = new (function() { | |||
74639 | DOM.addressToggle.on("click", toggleAddresses); | 74782 | DOM.addressToggle.on("click", toggleAddresses); |
74640 | DOM.publicKeyToggle.on("click", togglePublicKeys); | 74783 | DOM.publicKeyToggle.on("click", togglePublicKeys); |
74641 | DOM.privateKeyToggle.on("click", togglePrivateKeys); | 74784 | DOM.privateKeyToggle.on("click", togglePrivateKeys); |
74785 | DOM.csvTab.on("click", updateCsv); | ||
74642 | DOM.languages.on("click", languageChanged); | 74786 | DOM.languages.on("click", languageChanged); |
74643 | DOM.useBitpayAddresses.on("change", useBitpayAddressesChange); | 74787 | DOM.useBitpayAddresses.on("change", useBitpayAddressesChange); |
74644 | setQrEvents(DOM.showQrEls); | 74788 | setQrEvents(DOM.showQrEls); |
@@ -74871,6 +75015,9 @@ window.Entropy = new (function() { | |||
74871 | else if (bip49TabSelected()) { | 75015 | else if (bip49TabSelected()) { |
74872 | displayBip49Info(); | 75016 | displayBip49Info(); |
74873 | } | 75017 | } |
75018 | else if (bip84TabSelected()) { | ||
75019 | displayBip84Info(); | ||
75020 | } | ||
74874 | displayBip32Info(); | 75021 | displayBip32Info(); |
74875 | } | 75022 | } |
74876 | 75023 | ||
@@ -75073,6 +75220,21 @@ window.Entropy = new (function() { | |||
75073 | console.log("Using derivation path from BIP49 tab: " + derivationPath); | 75220 | console.log("Using derivation path from BIP49 tab: " + derivationPath); |
75074 | return derivationPath; | 75221 | return derivationPath; |
75075 | } | 75222 | } |
75223 | else if (bip84TabSelected()) { | ||
75224 | var purpose = parseIntNoNaN(DOM.bip84purpose.val(), 84); | ||
75225 | var coin = parseIntNoNaN(DOM.bip84coin.val(), 0); | ||
75226 | var account = parseIntNoNaN(DOM.bip84account.val(), 0); | ||
75227 | var change = parseIntNoNaN(DOM.bip84change.val(), 0); | ||
75228 | var path = "m/"; | ||
75229 | path += purpose + "'/"; | ||
75230 | path += coin + "'/"; | ||
75231 | path += account + "'/"; | ||
75232 | path += change; | ||
75233 | DOM.bip84path.val(path); | ||
75234 | var derivationPath = DOM.bip84path.val(); | ||
75235 | console.log("Using derivation path from BIP84 tab: " + derivationPath); | ||
75236 | return derivationPath; | ||
75237 | } | ||
75076 | else if (bip32TabSelected()) { | 75238 | else if (bip32TabSelected()) { |
75077 | var derivationPath = DOM.bip32path.val(); | 75239 | var derivationPath = DOM.bip32path.val(); |
75078 | console.log("Using derivation path from BIP32 tab: " + derivationPath); | 75240 | console.log("Using derivation path from BIP32 tab: " + derivationPath); |
@@ -75173,6 +75335,24 @@ window.Entropy = new (function() { | |||
75173 | DOM.bip49accountXpub.val(accountXpub); | 75335 | DOM.bip49accountXpub.val(accountXpub); |
75174 | } | 75336 | } |
75175 | 75337 | ||
75338 | function displayBip84Info() { | ||
75339 | // Get the derivation path for the account | ||
75340 | var purpose = parseIntNoNaN(DOM.bip84purpose.val(), 84); | ||
75341 | var coin = parseIntNoNaN(DOM.bip84coin.val(), 0); | ||
75342 | var account = parseIntNoNaN(DOM.bip84account.val(), 0); | ||
75343 | var path = "m/"; | ||
75344 | path += purpose + "'/"; | ||
75345 | path += coin + "'/"; | ||
75346 | path += account + "'/"; | ||
75347 | // Calculate the account extended keys | ||
75348 | var accountExtendedKey = calcBip32ExtendedKey(path); | ||
75349 | var accountXprv = accountExtendedKey.toBase58(); | ||
75350 | var accountXpub = accountExtendedKey.neutered().toBase58(); | ||
75351 | // Display the extended keys | ||
75352 | DOM.bip84accountXprv.val(accountXprv); | ||
75353 | DOM.bip84accountXpub.val(accountXpub); | ||
75354 | } | ||
75355 | |||
75176 | function displayBip32Info() { | 75356 | function displayBip32Info() { |
75177 | // Display the key | 75357 | // Display the key |
75178 | DOM.seed.val(seed); | 75358 | DOM.seed.val(seed); |
@@ -75213,11 +75393,12 @@ window.Entropy = new (function() { | |||
75213 | } | 75393 | } |
75214 | 75394 | ||
75215 | function segwitSelected() { | 75395 | function segwitSelected() { |
75216 | return bip49TabSelected() || bip141TabSelected(); | 75396 | return bip49TabSelected() || bip84TabSelected() || bip141TabSelected(); |
75217 | } | 75397 | } |
75218 | 75398 | ||
75219 | function p2wpkhSelected() { | 75399 | function p2wpkhSelected() { |
75220 | return bip141TabSelected() && DOM.bip141semantics.val() == "p2wpkh"; | 75400 | return bip84TabSelected() || |
75401 | bip141TabSelected() && DOM.bip141semantics.val() == "p2wpkh"; | ||
75221 | } | 75402 | } |
75222 | 75403 | ||
75223 | function p2wpkhInP2shSelected() { | 75404 | function p2wpkhInP2shSelected() { |
@@ -75298,6 +75479,7 @@ window.Entropy = new (function() { | |||
75298 | addAddressToList(indexText, address, pubkey, privkey); | 75479 | addAddressToList(indexText, address, pubkey, privkey); |
75299 | if (isLast) { | 75480 | if (isLast) { |
75300 | hidePending(); | 75481 | hidePending(); |
75482 | updateCsv(); | ||
75301 | } | 75483 | } |
75302 | }, 50) | 75484 | }, 50) |
75303 | } | 75485 | } |
@@ -75338,6 +75520,7 @@ window.Entropy = new (function() { | |||
75338 | 75520 | ||
75339 | function clearAddressesList() { | 75521 | function clearAddressesList() { |
75340 | DOM.addresses.empty(); | 75522 | DOM.addresses.empty(); |
75523 | DOM.csv.val(""); | ||
75341 | stopGenerating(); | 75524 | stopGenerating(); |
75342 | } | 75525 | } |
75343 | 75526 | ||
@@ -75798,6 +75981,10 @@ window.Entropy = new (function() { | |||
75798 | return DOM.bip49tab.hasClass("active"); | 75981 | return DOM.bip49tab.hasClass("active"); |
75799 | } | 75982 | } |
75800 | 75983 | ||
75984 | function bip84TabSelected() { | ||
75985 | return DOM.bip84tab.hasClass("active"); | ||
75986 | } | ||
75987 | |||
75801 | function bip141TabSelected() { | 75988 | function bip141TabSelected() { |
75802 | return DOM.bip141tab.hasClass("active"); | 75989 | return DOM.bip141tab.hasClass("active"); |
75803 | } | 75990 | } |
@@ -75805,6 +75992,7 @@ window.Entropy = new (function() { | |||
75805 | function setHdCoin(coinValue) { | 75992 | function setHdCoin(coinValue) { |
75806 | DOM.bip44coin.val(coinValue); | 75993 | DOM.bip44coin.val(coinValue); |
75807 | DOM.bip49coin.val(coinValue); | 75994 | DOM.bip49coin.val(coinValue); |
75995 | DOM.bip84coin.val(coinValue); | ||
75808 | } | 75996 | } |
75809 | 75997 | ||
75810 | function showSegwitAvailable() { | 75998 | function showSegwitAvailable() { |
@@ -75888,6 +76076,26 @@ window.Entropy = new (function() { | |||
75888 | DOM.entropyWordIndexes.text(wordIndexesStr); | 76076 | DOM.entropyWordIndexes.text(wordIndexesStr); |
75889 | } | 76077 | } |
75890 | 76078 | ||
76079 | function updateCsv() { | ||
76080 | var tableCsv = "path,address,public key,private key\n"; | ||
76081 | var rows = DOM.addresses.find("tr"); | ||
76082 | for (var i=0; i<rows.length; i++) { | ||
76083 | var row = $(rows[i]); | ||
76084 | var cells = row.find("td"); | ||
76085 | for (var j=0; j<cells.length; j++) { | ||
76086 | var cell = $(cells[j]); | ||
76087 | if (!cell.children().hasClass("invisible")) { | ||
76088 | tableCsv = tableCsv + cell.text(); | ||
76089 | } | ||
76090 | if (j != cells.length - 1) { | ||
76091 | tableCsv = tableCsv + ","; | ||
76092 | } | ||
76093 | } | ||
76094 | tableCsv = tableCsv + "\n"; | ||
76095 | } | ||
76096 | DOM.csv.val(tableCsv); | ||
76097 | } | ||
76098 | |||
75891 | var networks = [ | 76099 | var networks = [ |
75892 | { | 76100 | { |
75893 | name: "BCH - Bitcoin Cash", | 76101 | name: "BCH - Bitcoin Cash", |
@@ -75995,6 +76203,14 @@ window.Entropy = new (function() { | |||
75995 | }, | 76203 | }, |
75996 | }, | 76204 | }, |
75997 | { | 76205 | { |
76206 | name: "KMD - Komodo", | ||
76207 | bip49available: false, | ||
76208 | onSelect: function() { | ||
76209 | network = bitcoinjs.bitcoin.networks.komodo; | ||
76210 | setHdCoin(141); | ||
76211 | }, | ||
76212 | }, | ||
76213 | { | ||
75998 | name: "LTC - Litecoin", | 76214 | name: "LTC - Litecoin", |
75999 | segwitAvailable: true, | 76215 | segwitAvailable: true, |
76000 | onSelect: function() { | 76216 | onSelect: function() { |
@@ -76028,6 +76244,14 @@ window.Entropy = new (function() { | |||
76028 | }, | 76244 | }, |
76029 | }, | 76245 | }, |
76030 | { | 76246 | { |
76247 | name: "ONX - Onixcoin", | ||
76248 | segwitAvailable: false, | ||
76249 | onSelect: function() { | ||
76250 | network = bitcoinjs.bitcoin.networks.onixcoin; | ||
76251 | setHdCoin(174); | ||
76252 | }, | ||
76253 | }, | ||
76254 | { | ||
76031 | name: "PIVX - PIVX", | 76255 | name: "PIVX - PIVX", |
76032 | segwitAvailable: false, | 76256 | segwitAvailable: false, |
76033 | onSelect: function() { | 76257 | onSelect: function() { |
diff --git a/changelog.md b/changelog.md index cf69151..19049b0 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -1,3 +1,10 @@ | |||
1 | # 0.3.2 | ||
2 | |||
3 | * Add Onixcoin | ||
4 | * Add Komodo | ||
5 | * BIP84 tab for derivation path | ||
6 | * CSV tab for derived addresses | ||
7 | |||
1 | # 0.3.1 | 8 | # 0.3.1 |
2 | 9 | ||
3 | * Populate entropy field with hex value used from PRNG | 10 | * Populate entropy field with hex value used from PRNG |
diff --git a/src/index.html b/src/index.html index 0f47c38..b3f2d33 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -15,7 +15,7 @@ | |||
15 | <div class="container"> | 15 | <div class="container"> |
16 | 16 | ||
17 | <h1 class="text-center">Mnemonic Code Converter</h1> | 17 | <h1 class="text-center">Mnemonic Code Converter</h1> |
18 | <p class="version">v0.3.1</p> | 18 | <p class="version">v0.3.2</p> |
19 | <hr> | 19 | <hr> |
20 | <div class="row"> | 20 | <div class="row"> |
21 | <div class="col-md-12"> | 21 | <div class="col-md-12"> |