Skip to content

Commit

Permalink
Release v0.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
iancoleman committed Nov 21, 2017
1 parent 9183f9f commit 924727e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 6 deletions.
47 changes: 42 additions & 5 deletions bip39-standalone.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
<div class="container">

<h1 class="text-center">Mnemonic Code Converter</h1>
<p class="version">v0.2.8</p>
<p class="version">v0.2.9</p>
<hr>
<div class="row">
<div class="col-md-12">
Expand Down Expand Up @@ -626,9 +626,12 @@ <h2>Derived Addresses</h2>
</table>
</div>
</div>
<span>Show more rows</span>:
<span>Show</span>
<input type="number" class="rows-to-add" value="20">
<button class="more">Show</button>
<button class="more">more rows</button>
<span>starting from index</span>
<input type="number" class="more-rows-start-index">
<span>(leave blank to generate from next index)</span>

<hr>

Expand Down Expand Up @@ -22444,6 +22447,17 @@ <h3>Libraries</h3>
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: {
Expand Down Expand Up @@ -46069,6 +46083,7 @@ <h3>Libraries</h3>
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");
Expand Down Expand Up @@ -46739,12 +46754,19 @@ <h3>Libraries</h3>
}

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?";
Expand Down Expand Up @@ -47280,6 +47302,14 @@ <h3>Libraries</h3>
}
}

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",
Expand Down Expand Up @@ -47403,7 +47433,14 @@ <h3>Libraries</h3>
setHdCoin(13);
},
},

{
name: "MONA - Monacoin",
p2wpkhNestedInP2shAvailable: true,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.monacoin,
setHdCoin(22);
},
},
{
name: "NMC - Namecoin",
p2wpkhNestedInP2shAvailable: false,
Expand Down
8 changes: 8 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
<div class="container">

<h1 class="text-center">Mnemonic Code Converter</h1>
<p class="version">v0.2.8</p>
<p class="version">v0.2.9</p>
<hr>
<div class="row">
<div class="col-md-12">
Expand Down

0 comments on commit 924727e

Please sign in to comment.