Skip to content

Commit

Permalink
Release v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Coleman committed Aug 16, 2017
1 parent 0eda54f commit f128bd5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 9 deletions.
59 changes: 51 additions & 8 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.1</p>
<p class="version">v0.2.2</p>
<hr>
<div class="row">
<div class="col-md-12">
Expand Down Expand Up @@ -22302,6 +22302,28 @@ <h3 data-translate>Libraries</h3>
scriptHash: 0x00, // TODO set this correctly
wif: 0xb2,
};

bitcoinjs.bitcoin.networks.pivx = {
messagePrefix: "unused",
bip32: {
public: 0x022d2533,
private: 0x0221312b
},
pubKeyHash: 0x1e,
scriptHash: 0x0d,
wif: 0xd4,
};

bitcoinjs.bitcoin.networks.pivxtestnet = {
messagePrefix: "unused",
bip32: {
public: 0x3a8061a0,
private: 0x3a805837
},
pubKeyHash: 0x8b,
scriptHash: 0x13,
wif: 0xef,
};
</script>
<script>(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ethUtil = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
Expand Down Expand Up @@ -46239,6 +46261,10 @@ <h3 data-translate>Libraries</h3>

function delayedPhraseChanged() {
hideValidationError();
seed = null;
bip32RootKey = null;
bip32ExtendedKey = null;
clearAddressesList();
showPending();
if (phraseChangeTimeoutEvent != null) {
clearTimeout(phraseChangeTimeoutEvent);
Expand All @@ -46248,7 +46274,6 @@ <h3 data-translate>Libraries</h3>

function phraseChanged() {
showPending();
hideValidationError();
setMnemonicLanguage();
// Get the mnemonic phrase
var phrase = DOM.phrase.val();
Expand All @@ -46261,7 +46286,6 @@ <h3 data-translate>Libraries</h3>
var passphrase = DOM.passphrase.val();
calcBip32RootKeyFromSeed(phrase, passphrase);
calcForDerivationPath();
hidePending();
}

function delayedEntropyChanged() {
Expand Down Expand Up @@ -46337,10 +46361,9 @@ <h3 data-translate>Libraries</h3>
}

function calcForDerivationPath() {
showPending();
clearDerivedKeys();
clearAddressesList();
hideValidationError();
showPending();
// Don't show bip49 if it's selected but network doesn't support it
if (bip49TabSelected() && !networkHasBip49()) {
return;
Expand All @@ -46360,7 +46383,6 @@ <h3 data-translate>Libraries</h3>
displayBip49Info();
}
displayBip32Info();
hidePending();
}

function generateClicked() {
Expand Down Expand Up @@ -46667,17 +46689,19 @@ <h3 data-translate>Libraries</h3>
for (var i=0; i<rows.length; i++) {
rows[i].shouldGenerate = false;
}
hidePending();
}

for (var i=0; i<total; i++) {
var index = i + start;
rows.push(new TableRow(index));
var isLast = i == total - 1;
rows.push(new TableRow(index, isLast));
}

})());
}

function TableRow(index) {
function TableRow(index, isLast) {

var self = this;
this.shouldGenerate = true;
Expand Down Expand Up @@ -46739,6 +46763,9 @@ <h3 data-translate>Libraries</h3>
address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network)
}
addAddressToList(indexText, address, pubkey, privkey);
if (isLast) {
hidePending();
}
}, 50)
}

Expand Down Expand Up @@ -47334,6 +47361,22 @@ <h3 data-translate>Libraries</h3>
setHdCoin(7);
},
},
{
name: "PIVX - PIVX",
bip49available: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.pivx;
setHdCoin(119);
},
},
{
name: "PIVX - PIVX Testnet",
bip49available: false,
onSelect: function() {
network = bitcoinjs.bitcoin.networks.pivxtestnet;
setHdCoin(1);
},
},
{
name: "PPC - Peercoin",
bip49available: false,
Expand Down
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 0.2.2

* Improve showing feedback for pending calculations
* Bugfix: Clear old seed when mnemonic is changed
* Add PIVX network

# 0.2.1

* BTC is the default coin
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.1</p>
<p class="version">v0.2.2</p>
<hr>
<div class="row">
<div class="col-md-12">
Expand Down

0 comments on commit f128bd5

Please sign in to comment.