diff options
author | Robert Johnson <sk8boy189@gmail.com> | 2014-09-29 22:47:01 -0500 |
---|---|---|
committer | Robert Johnson <sk8boy189@gmail.com> | 2014-09-29 22:47:01 -0500 |
commit | ddc8e877473f60233f3d80bf19decdd31175b07f (patch) | |
tree | c21d403fe7e54da5942afa3217e0b2b83e052c29 /src | |
parent | d6cedc9405e5f5751c8635f59ed3ff6876460776 (diff) | |
download | BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.tar.gz BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.tar.zst BIP39-ddc8e877473f60233f3d80bf19decdd31175b07f.zip |
allow for address change, while still allowing use of BIP44.
Diffstat (limited to 'src')
-rw-r--r-- | src/index.html | 11 | ||||
-rw-r--r-- | src/js/index.js | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/src/index.html b/src/index.html index 837c735..695570f 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -205,6 +205,17 @@ | |||
205 | <div class="col-md-12"> | 205 | <div class="col-md-12"> |
206 | <h2>Derived Addresses</h2> | 206 | <h2>Derived Addresses</h2> |
207 | <p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p> | 207 | <p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p> |
208 | <div class="form-group"> | ||
209 | <label for="network-address-type" class="col-sm-2 control-label">Coin</label> | ||
210 | <div class="col-sm-10"> | ||
211 | <select id="network-address-type" class="network form-control"> | ||
212 | <option value="bitcoin">Bitcoin</option> | ||
213 | <option value="bitcoin-testnet">Bitcoin Testnet</option> | ||
214 | <option value="litecoin">Litecoin</option> | ||
215 | <option value="dogecoin">Dogecoin</option> | ||
216 | </select> | ||
217 | </div> | ||
218 | </div> | ||
208 | <table class="table table-striped"> | 219 | <table class="table table-striped"> |
209 | <thead> | 220 | <thead> |
210 | <th> | 221 | <th> |
diff --git a/src/js/index.js b/src/js/index.js index 09bcdd9..24456bb 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -16,6 +16,7 @@ | |||
16 | DOM.network = $(".network"); | 16 | DOM.network = $(".network"); |
17 | DOM.phraseNetwork = $("#network-phrase"); | 17 | DOM.phraseNetwork = $("#network-phrase"); |
18 | DOM.bip44Network = $("#network-bip44"); | 18 | DOM.bip44Network = $("#network-bip44"); |
19 | DOM.addressNetwork = $("#network-address-type"); | ||
19 | DOM.phrase = $(".phrase"); | 20 | DOM.phrase = $(".phrase"); |
20 | DOM.passphrase = $(".passphrase"); | 21 | DOM.passphrase = $(".passphrase"); |
21 | DOM.generate = $(".generate"); | 22 | DOM.generate = $(".generate"); |
@@ -89,10 +90,13 @@ | |||
89 | } | 90 | } |
90 | else if (n == "dogecoin") { | 91 | else if (n == "dogecoin") { |
91 | network = Bitcoin.networks.dogecoin; | 92 | network = Bitcoin.networks.dogecoin; |
92 | disableBip44Tab(); | 93 | //disableBip44Tab(); |
93 | } | 94 | } |
94 | DOM.phraseNetwork.val(n); | 95 | DOM.phraseNetwork.val(n); |
95 | DOM.bip44Network.val(n); | 96 | DOM.bip44Network.val(n); |
97 | if(e.target != DOM.addressNetwork.dom){ | ||
98 | DOM.addressNetwork.val(n); | ||
99 | } | ||
96 | delayedPhraseChanged(); | 100 | delayedPhraseChanged(); |
97 | } | 101 | } |
98 | 102 | ||