diff options
author | Ian Coleman <ian@iancoleman.io> | 2017-11-21 12:17:28 +1100 |
---|---|---|
committer | Ian Coleman <ian@iancoleman.io> | 2017-11-21 12:17:28 +1100 |
commit | 924727ed26c9baf2a1f1a919900ea9bbc9c76028 (patch) | |
tree | 836615eb6a2bbefa738fb2085f17b3bb993cc176 | |
parent | 9183f9f658222dc3a24c8b4794887b6ecd80ba1e (diff) | |
download | BIP39-924727ed26c9baf2a1f1a919900ea9bbc9c76028.tar.gz BIP39-924727ed26c9baf2a1f1a919900ea9bbc9c76028.tar.zst BIP39-924727ed26c9baf2a1f1a919900ea9bbc9c76028.zip |
Release v0.2.9
-rw-r--r-- | bip39-standalone.html | 47 | ||||
-rw-r--r-- | changelog.md | 8 | ||||
-rw-r--r-- | src/index.html | 2 |
3 files changed, 51 insertions, 6 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html index 333f264..1df8fde 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html | |||
@@ -118,7 +118,7 @@ | |||
118 | <div class="container"> | 118 | <div class="container"> |
119 | 119 | ||
120 | <h1 class="text-center">Mnemonic Code Converter</h1> | 120 | <h1 class="text-center">Mnemonic Code Converter</h1> |
121 | <p class="version">v0.2.8</p> | 121 | <p class="version">v0.2.9</p> |
122 | <hr> | 122 | <hr> |
123 | <div class="row"> | 123 | <div class="row"> |
124 | <div class="col-md-12"> | 124 | <div class="col-md-12"> |
@@ -626,9 +626,12 @@ | |||
626 | </table> | 626 | </table> |
627 | </div> | 627 | </div> |
628 | </div> | 628 | </div> |
629 | <span>Show more rows</span>: | 629 | <span>Show</span> |
630 | <input type="number" class="rows-to-add" value="20"> | 630 | <input type="number" class="rows-to-add" value="20"> |
631 | <button class="more">Show</button> | 631 | <button class="more">more rows</button> |
632 | <span>starting from index</span> | ||
633 | <input type="number" class="more-rows-start-index"> | ||
634 | <span>(leave blank to generate from next index)</span> | ||
632 | 635 | ||
633 | <hr> | 636 | <hr> |
634 | 637 | ||
@@ -22444,6 +22447,17 @@ bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = { | |||
22444 | wif: 0x80 | 22447 | wif: 0x80 |
22445 | }; | 22448 | }; |
22446 | 22449 | ||
22450 | bitcoinjs.bitcoin.networks.monacoin = { | ||
22451 | messagePrefix: '\x18Monacoin Signed Message:\n', | ||
22452 | bip32: { | ||
22453 | public: 0x0488b21e, | ||
22454 | private: 0x0488ade4 | ||
22455 | }, | ||
22456 | pubKeyHash: 0x32, | ||
22457 | scriptHash: 0x37, | ||
22458 | wif: 0xb0 | ||
22459 | }; | ||
22460 | |||
22447 | bitcoinjs.bitcoin.networks.bitcoinBip49 = { | 22461 | bitcoinjs.bitcoin.networks.bitcoinBip49 = { |
22448 | messagePrefix: '\x18Bitcoin Signed Message:\n', | 22462 | messagePrefix: '\x18Bitcoin Signed Message:\n', |
22449 | bip32: { | 22463 | bip32: { |
@@ -46069,6 +46083,7 @@ window.Entropy = new (function() { | |||
46069 | DOM.addresses = $(".addresses"); | 46083 | DOM.addresses = $(".addresses"); |
46070 | DOM.rowsToAdd = $(".rows-to-add"); | 46084 | DOM.rowsToAdd = $(".rows-to-add"); |
46071 | DOM.more = $(".more"); | 46085 | DOM.more = $(".more"); |
46086 | DOM.moreRowsStartIndex = $(".more-rows-start-index"); | ||
46072 | DOM.feedback = $(".feedback"); | 46087 | DOM.feedback = $(".feedback"); |
46073 | DOM.tab = $(".derivation-type a"); | 46088 | DOM.tab = $(".derivation-type a"); |
46074 | DOM.indexToggle = $(".index-toggle"); | 46089 | DOM.indexToggle = $(".index-toggle"); |
@@ -46739,12 +46754,19 @@ window.Entropy = new (function() { | |||
46739 | } | 46754 | } |
46740 | 46755 | ||
46741 | function showMore() { | 46756 | function showMore() { |
46742 | var start = DOM.addresses.children().length; | ||
46743 | var rowsToAdd = parseInt(DOM.rowsToAdd.val()); | 46757 | var rowsToAdd = parseInt(DOM.rowsToAdd.val()); |
46744 | if (isNaN(rowsToAdd)) { | 46758 | if (isNaN(rowsToAdd)) { |
46745 | rowsToAdd = 20; | 46759 | rowsToAdd = 20; |
46746 | DOM.rowsToAdd.val("20"); | 46760 | DOM.rowsToAdd.val("20"); |
46747 | } | 46761 | } |
46762 | var start = parseInt(DOM.moreRowsStartIndex.val()) | ||
46763 | if (isNaN(start)) { | ||
46764 | start = lastIndexInTable() + 1; | ||
46765 | } | ||
46766 | else { | ||
46767 | var newStart = start + rowsToAdd; | ||
46768 | DOM.moreRowsStartIndex.val(newStart); | ||
46769 | } | ||
46748 | if (rowsToAdd > 200) { | 46770 | if (rowsToAdd > 200) { |
46749 | var msg = "Generating " + rowsToAdd + " rows could take a while. "; | 46771 | var msg = "Generating " + rowsToAdd + " rows could take a while. "; |
46750 | msg += "Do you want to continue?"; | 46772 | msg += "Do you want to continue?"; |
@@ -47280,6 +47302,14 @@ window.Entropy = new (function() { | |||
47280 | } | 47302 | } |
47281 | } | 47303 | } |
47282 | 47304 | ||
47305 | function lastIndexInTable() { | ||
47306 | var pathText = DOM.addresses.find(".index").last().text(); | ||
47307 | var pathBits = pathText.split("/"); | ||
47308 | var lastBit = pathBits[pathBits.length-1]; | ||
47309 | var lastBitClean = lastBit.replace("'", ""); | ||
47310 | return parseInt(lastBitClean); | ||
47311 | } | ||
47312 | |||
47283 | var networks = [ | 47313 | var networks = [ |
47284 | { | 47314 | { |
47285 | name: "BCH - Bitcoin Cash", | 47315 | name: "BCH - Bitcoin Cash", |
@@ -47403,7 +47433,14 @@ window.Entropy = new (function() { | |||
47403 | setHdCoin(13); | 47433 | setHdCoin(13); |
47404 | }, | 47434 | }, |
47405 | }, | 47435 | }, |
47406 | 47436 | { | |
47437 | name: "MONA - Monacoin", | ||
47438 | p2wpkhNestedInP2shAvailable: true, | ||
47439 | onSelect: function() { | ||
47440 | network = bitcoinjs.bitcoin.networks.monacoin, | ||
47441 | setHdCoin(22); | ||
47442 | }, | ||
47443 | }, | ||
47407 | { | 47444 | { |
47408 | name: "NMC - Namecoin", | 47445 | name: "NMC - Namecoin", |
47409 | p2wpkhNestedInP2shAvailable: false, | 47446 | p2wpkhNestedInP2shAvailable: false, |
diff --git a/changelog.md b/changelog.md index fa98802..e6a0cb7 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -1,3 +1,11 @@ | |||
1 | # 0.2.9 | ||
2 | |||
3 | * Update links from old site to new site | ||
4 | * Add Monacoin | ||
5 | * Add Bitcoin Gold | ||
6 | * Port test suite to selenium | ||
7 | * Allow more rows to be generated starting from a custom index | ||
8 | |||
1 | # 0.2.8 | 9 | # 0.2.8 |
2 | 10 | ||
3 | * Enable segwit for Litecoin | 11 | * Enable segwit for Litecoin |
diff --git a/src/index.html b/src/index.html index 63533a9..084b1c1 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -114,7 +114,7 @@ | |||
114 | <div class="container"> | 114 | <div class="container"> |
115 | 115 | ||
116 | <h1 class="text-center">Mnemonic Code Converter</h1> | 116 | <h1 class="text-center">Mnemonic Code Converter</h1> |
117 | <p class="version">v0.2.8</p> | 117 | <p class="version">v0.2.9</p> |
118 | <hr> | 118 | <hr> |
119 | <div class="row"> | 119 | <div class="row"> |
120 | <div class="col-md-12"> | 120 | <div class="col-md-12"> |