aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bip39-standalone.html59
-rw-r--r--changelog.md6
-rw-r--r--src/index.html2
3 files changed, 58 insertions, 9 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html
index df3a460..8c2c6a4 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.1</p> 121 <p class="version">v0.2.2</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">
@@ -22302,6 +22302,28 @@ bitcoinjs.bitcoin.networks.myriadcoin = {
22302 scriptHash: 0x00, // TODO set this correctly 22302 scriptHash: 0x00, // TODO set this correctly
22303 wif: 0xb2, 22303 wif: 0xb2,
22304}; 22304};
22305
22306bitcoinjs.bitcoin.networks.pivx = {
22307 messagePrefix: "unused",
22308 bip32: {
22309 public: 0x022d2533,
22310 private: 0x0221312b
22311 },
22312 pubKeyHash: 0x1e,
22313 scriptHash: 0x0d,
22314 wif: 0xd4,
22315};
22316
22317bitcoinjs.bitcoin.networks.pivxtestnet = {
22318 messagePrefix: "unused",
22319 bip32: {
22320 public: 0x3a8061a0,
22321 private: 0x3a805837
22322 },
22323 pubKeyHash: 0x8b,
22324 scriptHash: 0x13,
22325 wif: 0xef,
22326};
22305</script> 22327</script>
22306 <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){ 22328 <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){
22307(function (global){ 22329(function (global){
@@ -46239,6 +46261,10 @@ window.Entropy = new (function() {
46239 46261
46240 function delayedPhraseChanged() { 46262 function delayedPhraseChanged() {
46241 hideValidationError(); 46263 hideValidationError();
46264 seed = null;
46265 bip32RootKey = null;
46266 bip32ExtendedKey = null;
46267 clearAddressesList();
46242 showPending(); 46268 showPending();
46243 if (phraseChangeTimeoutEvent != null) { 46269 if (phraseChangeTimeoutEvent != null) {
46244 clearTimeout(phraseChangeTimeoutEvent); 46270 clearTimeout(phraseChangeTimeoutEvent);
@@ -46248,7 +46274,6 @@ window.Entropy = new (function() {
46248 46274
46249 function phraseChanged() { 46275 function phraseChanged() {
46250 showPending(); 46276 showPending();
46251 hideValidationError();
46252 setMnemonicLanguage(); 46277 setMnemonicLanguage();
46253 // Get the mnemonic phrase 46278 // Get the mnemonic phrase
46254 var phrase = DOM.phrase.val(); 46279 var phrase = DOM.phrase.val();
@@ -46261,7 +46286,6 @@ window.Entropy = new (function() {
46261 var passphrase = DOM.passphrase.val(); 46286 var passphrase = DOM.passphrase.val();
46262 calcBip32RootKeyFromSeed(phrase, passphrase); 46287 calcBip32RootKeyFromSeed(phrase, passphrase);
46263 calcForDerivationPath(); 46288 calcForDerivationPath();
46264 hidePending();
46265 } 46289 }
46266 46290
46267 function delayedEntropyChanged() { 46291 function delayedEntropyChanged() {
@@ -46337,10 +46361,9 @@ window.Entropy = new (function() {
46337 } 46361 }
46338 46362
46339 function calcForDerivationPath() { 46363 function calcForDerivationPath() {
46340 showPending();
46341 clearDerivedKeys(); 46364 clearDerivedKeys();
46342 clearAddressesList(); 46365 clearAddressesList();
46343 hideValidationError(); 46366 showPending();
46344 // Don't show bip49 if it's selected but network doesn't support it 46367 // Don't show bip49 if it's selected but network doesn't support it
46345 if (bip49TabSelected() && !networkHasBip49()) { 46368 if (bip49TabSelected() && !networkHasBip49()) {
46346 return; 46369 return;
@@ -46360,7 +46383,6 @@ window.Entropy = new (function() {
46360 displayBip49Info(); 46383 displayBip49Info();
46361 } 46384 }
46362 displayBip32Info(); 46385 displayBip32Info();
46363 hidePending();
46364 } 46386 }
46365 46387
46366 function generateClicked() { 46388 function generateClicked() {
@@ -46667,17 +46689,19 @@ window.Entropy = new (function() {
46667 for (var i=0; i<rows.length; i++) { 46689 for (var i=0; i<rows.length; i++) {
46668 rows[i].shouldGenerate = false; 46690 rows[i].shouldGenerate = false;
46669 } 46691 }
46692 hidePending();
46670 } 46693 }
46671 46694
46672 for (var i=0; i<total; i++) { 46695 for (var i=0; i<total; i++) {
46673 var index = i + start; 46696 var index = i + start;
46674 rows.push(new TableRow(index)); 46697 var isLast = i == total - 1;
46698 rows.push(new TableRow(index, isLast));
46675 } 46699 }
46676 46700
46677 })()); 46701 })());
46678 } 46702 }
46679 46703
46680 function TableRow(index) { 46704 function TableRow(index, isLast) {
46681 46705
46682 var self = this; 46706 var self = this;
46683 this.shouldGenerate = true; 46707 this.shouldGenerate = true;
@@ -46739,6 +46763,9 @@ window.Entropy = new (function() {
46739 address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network) 46763 address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network)
46740 } 46764 }
46741 addAddressToList(indexText, address, pubkey, privkey); 46765 addAddressToList(indexText, address, pubkey, privkey);
46766 if (isLast) {
46767 hidePending();
46768 }
46742 }, 50) 46769 }, 50)
46743 } 46770 }
46744 46771
@@ -47335,6 +47362,22 @@ window.Entropy = new (function() {
47335 }, 47362 },
47336 }, 47363 },
47337 { 47364 {
47365 name: "PIVX - PIVX",
47366 bip49available: false,
47367 onSelect: function() {
47368 network = bitcoinjs.bitcoin.networks.pivx;
47369 setHdCoin(119);
47370 },
47371 },
47372 {
47373 name: "PIVX - PIVX Testnet",
47374 bip49available: false,
47375 onSelect: function() {
47376 network = bitcoinjs.bitcoin.networks.pivxtestnet;
47377 setHdCoin(1);
47378 },
47379 },
47380 {
47338 name: "PPC - Peercoin", 47381 name: "PPC - Peercoin",
47339 bip49available: false, 47382 bip49available: false,
47340 onSelect: function() { 47383 onSelect: function() {
diff --git a/changelog.md b/changelog.md
index be83e3c..8079261 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,9 @@
1# 0.2.2
2
3* Improve showing feedback for pending calculations
4* Bugfix: Clear old seed when mnemonic is changed
5* Add PIVX network
6
1# 0.2.1 7# 0.2.1
2 8
3* BTC is the default coin 9* BTC is the default coin
diff --git a/src/index.html b/src/index.html
index f39ad14..5b1e223 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.1</p> 117 <p class="version">v0.2.2</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">