From 924727ed26c9baf2a1f1a919900ea9bbc9c76028 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Tue, 21 Nov 2017 12:17:28 +1100 Subject: Release v0.2.9 --- bip39-standalone.html | 47 ++++++++++++++++++++++++++++++++++++++++++----- changelog.md | 8 ++++++++ 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 @@

Mnemonic Code Converter

-

v0.2.8

+

v0.2.9


@@ -626,9 +626,12 @@
- Show more rows: + Show - + + starting from index + + (leave blank to generate from next index)
@@ -22444,6 +22447,17 @@ bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = { wif: 0x80 }; +bitcoinjs.bitcoin.networks.monacoin = { + messagePrefix: '\x18Monacoin Signed Message:\n', + bip32: { + public: 0x0488b21e, + private: 0x0488ade4 + }, + pubKeyHash: 0x32, + scriptHash: 0x37, + wif: 0xb0 +}; + bitcoinjs.bitcoin.networks.bitcoinBip49 = { messagePrefix: '\x18Bitcoin Signed Message:\n', bip32: { @@ -46069,6 +46083,7 @@ window.Entropy = new (function() { DOM.addresses = $(".addresses"); DOM.rowsToAdd = $(".rows-to-add"); DOM.more = $(".more"); + DOM.moreRowsStartIndex = $(".more-rows-start-index"); DOM.feedback = $(".feedback"); DOM.tab = $(".derivation-type a"); DOM.indexToggle = $(".index-toggle"); @@ -46739,12 +46754,19 @@ window.Entropy = new (function() { } function showMore() { - var start = DOM.addresses.children().length; var rowsToAdd = parseInt(DOM.rowsToAdd.val()); if (isNaN(rowsToAdd)) { rowsToAdd = 20; DOM.rowsToAdd.val("20"); } + var start = parseInt(DOM.moreRowsStartIndex.val()) + if (isNaN(start)) { + start = lastIndexInTable() + 1; + } + else { + var newStart = start + rowsToAdd; + DOM.moreRowsStartIndex.val(newStart); + } if (rowsToAdd > 200) { var msg = "Generating " + rowsToAdd + " rows could take a while. "; msg += "Do you want to continue?"; @@ -47280,6 +47302,14 @@ window.Entropy = new (function() { } } + function lastIndexInTable() { + var pathText = DOM.addresses.find(".index").last().text(); + var pathBits = pathText.split("/"); + var lastBit = pathBits[pathBits.length-1]; + var lastBitClean = lastBit.replace("'", ""); + return parseInt(lastBitClean); + } + var networks = [ { name: "BCH - Bitcoin Cash", @@ -47403,7 +47433,14 @@ window.Entropy = new (function() { setHdCoin(13); }, }, - + { + name: "MONA - Monacoin", + p2wpkhNestedInP2shAvailable: true, + onSelect: function() { + network = bitcoinjs.bitcoin.networks.monacoin, + setHdCoin(22); + }, + }, { name: "NMC - Namecoin", p2wpkhNestedInP2shAvailable: false, diff --git a/changelog.md b/changelog.md index fa98802..e6a0cb7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +# 0.2.9 + +* Update links from old site to new site +* Add Monacoin +* Add Bitcoin Gold +* Port test suite to selenium +* Allow more rows to be generated starting from a custom index + # 0.2.8 * 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 @@

Mnemonic Code Converter

-

v0.2.8

+

v0.2.9


-- cgit v1.2.3