aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Coleman <ian@iancoleman.io>2017-11-22 09:59:58 +1100
committerIan Coleman <ian@iancoleman.io>2017-11-22 09:59:58 +1100
commit0fd67b5915a08168d31caaa581f55cf86591be73 (patch)
tree886c901959ffc57d42d41d7a7916a4870f0f56bb /src
parent1c2b8c6b2d77cdb0162f040c07d25bbe7cafe7c2 (diff)
downloadBIP39-0fd67b5915a08168d31caaa581f55cf86591be73.tar.gz
BIP39-0fd67b5915a08168d31caaa581f55cf86591be73.tar.zst
BIP39-0fd67b5915a08168d31caaa581f55cf86591be73.zip
Remove segwit from bip32 tab
This option will be added in the future to a bip141 tab
Diffstat (limited to 'src')
-rw-r--r--src/index.html7
-rw-r--r--src/js/index.js107
2 files changed, 49 insertions, 65 deletions
diff --git a/src/index.html b/src/index.html
index 9c126b9..b638b26 100644
--- a/src/index.html
+++ b/src/index.html
@@ -416,13 +416,6 @@
416 </label> 416 </label>
417 </div> 417 </div>
418 <div class="form-group"> 418 <div class="form-group">
419 <div class="col-sm-2"></div>
420 <label class="col-sm-10">
421 <input class="p2wpkh-nested-in-p2sh" type="checkbox">
422 <span>Use SegWit addresses (ie P2WPKH Nested In P2SH)</span>
423 </label>
424 </div>
425 <div class="form-group">
426 <label for="core-path" class="col-sm-2 control-label">Bitcoin Core</label> 419 <label for="core-path" class="col-sm-2 control-label">Bitcoin Core</label>
427 <div class="col-sm-10"> 420 <div class="col-sm-10">
428 <p class="form-control no-border"> 421 <p class="form-control no-border">
diff --git a/src/js/index.js b/src/js/index.js
index e4920ce..b88e9d7 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -74,7 +74,6 @@
74 DOM.bip49change = $("#bip49 .change"); 74 DOM.bip49change = $("#bip49 .change");
75 DOM.generatedStrength = $(".generate-container .strength"); 75 DOM.generatedStrength = $(".generate-container .strength");
76 DOM.hardenedAddresses = $(".hardened-addresses"); 76 DOM.hardenedAddresses = $(".hardened-addresses");
77 DOM.useP2wpkhNestedInP2sh = $(".p2wpkh-nested-in-p2sh");
78 DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container"); 77 DOM.useBitpayAddressesContainer = $(".use-bitpay-addresses-container");
79 DOM.useBitpayAddresses = $(".use-bitpay-addresses"); 78 DOM.useBitpayAddresses = $(".use-bitpay-addresses");
80 DOM.addresses = $(".addresses"); 79 DOM.addresses = $(".addresses");
@@ -114,7 +113,6 @@
114 DOM.bip49change.on("input", calcForDerivationPath); 113 DOM.bip49change.on("input", calcForDerivationPath);
115 DOM.tab.on("shown.bs.tab", tabChanged); 114 DOM.tab.on("shown.bs.tab", tabChanged);
116 DOM.hardenedAddresses.on("change", calcForDerivationPath); 115 DOM.hardenedAddresses.on("change", calcForDerivationPath);
117 DOM.useP2wpkhNestedInP2sh.on("change", calcForDerivationPath);
118 DOM.indexToggle.on("click", toggleIndexes); 116 DOM.indexToggle.on("click", toggleIndexes);
119 DOM.addressToggle.on("click", toggleAddresses); 117 DOM.addressToggle.on("click", toggleAddresses);
120 DOM.publicKeyToggle.on("click", togglePublicKeys); 118 DOM.publicKeyToggle.on("click", togglePublicKeys);
@@ -139,11 +137,11 @@
139 var networkIndex = e.target.value; 137 var networkIndex = e.target.value;
140 var network = networks[networkIndex]; 138 var network = networks[networkIndex];
141 network.onSelect(); 139 network.onSelect();
142 if (network.p2wpkhNestedInP2shAvailable) { 140 if (network.segwitAvailable) {
143 showP2wpkhNestedInP2shAvailable(); 141 showSegwitAvailable();
144 } 142 }
145 else { 143 else {
146 showP2wpkhNestedInP2shUnavailable(); 144 showSegwitUnavailable();
147 } 145 }
148 if (seed != null) { 146 if (seed != null) {
149 phraseChanged(); 147 phraseChanged();
@@ -217,7 +215,7 @@
217 215
218 function tabChanged() { 216 function tabChanged() {
219 showPending(); 217 showPending();
220 adjustNetworkForBip49(); 218 adjustNetworkForSegwit();
221 var phrase = DOM.phrase.val(); 219 var phrase = DOM.phrase.val();
222 if (phrase != "") { 220 if (phrase != "") {
223 // Calculate and display for mnemonic 221 // Calculate and display for mnemonic
@@ -330,8 +328,8 @@
330 clearDerivedKeys(); 328 clearDerivedKeys();
331 clearAddressesList(); 329 clearAddressesList();
332 showPending(); 330 showPending();
333 // Don't show bip49 if it's selected but network doesn't support it 331 // Don't show segwit if it's selected but network doesn't support it
334 if (bip49TabSelected() && !networkHasBip49()) { 332 if (segwitSelected() && !networkHasSegwit()) {
335 return; 333 return;
336 } 334 }
337 // Get the derivation path 335 // Get the derivation path
@@ -674,8 +672,8 @@
674 })()); 672 })());
675 } 673 }
676 674
677 function P2wpkhNestedInP2shSelected() { 675 function segwitSelected() {
678 return bip49TabSelected() || (bip32TabSelected() && useP2wpkhNestedInP2sh()); 676 return bip49TabSelected();
679 } 677 }
680 678
681 function TableRow(index, isLast) { 679 function TableRow(index, isLast) {
@@ -683,8 +681,8 @@
683 var self = this; 681 var self = this;
684 this.shouldGenerate = true; 682 this.shouldGenerate = true;
685 var useHardenedAddresses = DOM.hardenedAddresses.prop("checked"); 683 var useHardenedAddresses = DOM.hardenedAddresses.prop("checked");
686 var isP2wpkhNestedInP2sh = P2wpkhNestedInP2shSelected(); 684 var isSegwit = segwitSelected();
687 var p2wpkhNestedInP2shAvailable = networkHasBip49(); 685 var segwitAvailable = networkHasSegwit();
688 686
689 function init() { 687 function init() {
690 calculateValues(); 688 calculateValues();
@@ -728,9 +726,9 @@
728 privkey = convertRipplePriv(privkey); 726 privkey = convertRipplePriv(privkey);
729 address = convertRippleAdrr(address); 727 address = convertRippleAdrr(address);
730 } 728 }
731 // BIP49 addresses are different 729 // Segwit addresses are different
732 if (isP2wpkhNestedInP2sh) { 730 if (isSegwit) {
733 if (!p2wpkhNestedInP2shAvailable) { 731 if (!segwitAvailable) {
734 return; 732 return;
735 } 733 }
736 var keyhash = bitcoinjs.bitcoin.crypto.hash160(key.getPublicKeyBuffer()); 734 var keyhash = bitcoinjs.bitcoin.crypto.hash160(key.getPublicKeyBuffer());
@@ -1227,12 +1225,8 @@
1227 return DOM.bip32tab.hasClass("active"); 1225 return DOM.bip32tab.hasClass("active");
1228 } 1226 }
1229 1227
1230 function useP2wpkhNestedInP2sh() { 1228 function networkHasSegwit() {
1231 return DOM.useP2wpkhNestedInP2sh.prop("checked"); 1229 return networks[DOM.network.val()].segwitAvailable;
1232 }
1233
1234 function networkHasBip49() {
1235 return networks[DOM.network.val()].p2wpkhNestedInP2shAvailable;
1236 } 1230 }
1237 1231
1238 function bip49TabSelected() { 1232 function bip49TabSelected() {
@@ -1244,17 +1238,14 @@
1244 DOM.bip49coin.val(coinValue); 1238 DOM.bip49coin.val(coinValue);
1245 } 1239 }
1246 1240
1247 function showP2wpkhNestedInP2shAvailable() { 1241 function showSegwitAvailable() {
1248 DOM.bip49unavailable.addClass("hidden"); 1242 DOM.bip49unavailable.addClass("hidden");
1249 DOM.bip49available.removeClass("hidden"); 1243 DOM.bip49available.removeClass("hidden");
1250 DOM.useP2wpkhNestedInP2sh.prop("disabled", false);
1251 } 1244 }
1252 1245
1253 function showP2wpkhNestedInP2shUnavailable() { 1246 function showSegwitUnavailable() {
1254 DOM.bip49available.addClass("hidden"); 1247 DOM.bip49available.addClass("hidden");
1255 DOM.bip49unavailable.removeClass("hidden"); 1248 DOM.bip49unavailable.removeClass("hidden");
1256 DOM.useP2wpkhNestedInP2sh.prop("disabled", true);
1257 DOM.useP2wpkhNestedInP2sh.prop("checked", false);
1258 } 1249 }
1259 1250
1260 function useBitpayAddresses() { 1251 function useBitpayAddresses() {
@@ -1270,12 +1261,12 @@
1270 } 1261 }
1271 } 1262 }
1272 1263
1273 function adjustNetworkForBip49() { 1264 function adjustNetworkForSegwit() {
1274 // If bip49 is selected the xpub/xprv prefixes need to be adjusted 1265 // If segwit is selected the xpub/xprv prefixes need to be adjusted
1275 // to avoid accidentally importing BIP49 xpub to BIP44 watch only 1266 // to avoid accidentally importing BIP49 xpub to BIP44 watch only
1276 // wallet. 1267 // wallet.
1277 // See https://github.com/iancoleman/bip39/issues/125 1268 // See https://github.com/iancoleman/bip39/issues/125
1278 if (P2wpkhNestedInP2shSelected()) { 1269 if (segwitSelected()) {
1279 if (network == bitcoinjs.bitcoin.networks.bitcoin) { 1270 if (network == bitcoinjs.bitcoin.networks.bitcoin) {
1280 network = bitcoinjs.bitcoin.networks.bitcoinBip49; 1271 network = bitcoinjs.bitcoin.networks.bitcoinBip49;
1281 } 1272 }
@@ -1310,7 +1301,7 @@
1310 var networks = [ 1301 var networks = [
1311 { 1302 {
1312 name: "BCH - Bitcoin Cash", 1303 name: "BCH - Bitcoin Cash",
1313 p2wpkhNestedInP2shAvailable: false, 1304 segwitAvailable: false,
1314 onSelect: function() { 1305 onSelect: function() {
1315 DOM.useBitpayAddressesContainer.removeClass("hidden"); 1306 DOM.useBitpayAddressesContainer.removeClass("hidden");
1316 setBitcoinCashNetworkValues(); 1307 setBitcoinCashNetworkValues();
@@ -1319,7 +1310,7 @@
1319 }, 1310 },
1320 { 1311 {
1321 name: "BTC - Bitcoin", 1312 name: "BTC - Bitcoin",
1322 p2wpkhNestedInP2shAvailable: true, 1313 segwitAvailable: true,
1323 onSelect: function() { 1314 onSelect: function() {
1324 network = bitcoinjs.bitcoin.networks.bitcoin; 1315 network = bitcoinjs.bitcoin.networks.bitcoin;
1325 setHdCoin(0); 1316 setHdCoin(0);
@@ -1327,7 +1318,7 @@
1327 }, 1318 },
1328 { 1319 {
1329 name: "BTC - Bitcoin Testnet", 1320 name: "BTC - Bitcoin Testnet",
1330 p2wpkhNestedInP2shAvailable: true, 1321 segwitAvailable: true,
1331 onSelect: function() { 1322 onSelect: function() {
1332 network = bitcoinjs.bitcoin.networks.testnet; 1323 network = bitcoinjs.bitcoin.networks.testnet;
1333 setHdCoin(1); 1324 setHdCoin(1);
@@ -1335,7 +1326,7 @@
1335 }, 1326 },
1336 { 1327 {
1337 name: "BTG - Bitcoin Gold", 1328 name: "BTG - Bitcoin Gold",
1338 p2wpkhNestedInP2shAvailable: true, 1329 segwitAvailable: true,
1339 onSelect: function() { 1330 onSelect: function() {
1340 network = bitcoinjs.bitcoin.networks.bgold; 1331 network = bitcoinjs.bitcoin.networks.bgold;
1341 setHdCoin(0); 1332 setHdCoin(0);
@@ -1343,7 +1334,7 @@
1343 }, 1334 },
1344 { 1335 {
1345 name: "CLAM - Clams", 1336 name: "CLAM - Clams",
1346 p2wpkhNestedInP2shAvailable: false, 1337 segwitAvailable: false,
1347 onSelect: function() { 1338 onSelect: function() {
1348 network = bitcoinjs.bitcoin.networks.clam; 1339 network = bitcoinjs.bitcoin.networks.clam;
1349 setHdCoin(23); 1340 setHdCoin(23);
@@ -1351,7 +1342,7 @@
1351 }, 1342 },
1352 { 1343 {
1353 name: "CRW - Crown", 1344 name: "CRW - Crown",
1354 p2wpkhNestedInP2shAvailable: false, 1345 segwitAvailable: false,
1355 onSelect: function() { 1346 onSelect: function() {
1356 network = bitcoinjs.bitcoin.networks.crown; 1347 network = bitcoinjs.bitcoin.networks.crown;
1357 setHdCoin(72); 1348 setHdCoin(72);
@@ -1359,7 +1350,7 @@
1359 }, 1350 },
1360 { 1351 {
1361 name: "DASH - Dash", 1352 name: "DASH - Dash",
1362 p2wpkhNestedInP2shAvailable: false, 1353 segwitAvailable: false,
1363 onSelect: function() { 1354 onSelect: function() {
1364 network = bitcoinjs.bitcoin.networks.dash; 1355 network = bitcoinjs.bitcoin.networks.dash;
1365 setHdCoin(5); 1356 setHdCoin(5);
@@ -1367,7 +1358,7 @@
1367 }, 1358 },
1368 { 1359 {
1369 name: "DASH - Dash Testnet", 1360 name: "DASH - Dash Testnet",
1370 p2wpkhNestedInP2shAvailable: false, 1361 segwitAvailable: false,
1371 onSelect: function() { 1362 onSelect: function() {
1372 network = bitcoinjs.bitcoin.networks.dashtn; 1363 network = bitcoinjs.bitcoin.networks.dashtn;
1373 setHdCoin(1); 1364 setHdCoin(1);
@@ -1375,7 +1366,7 @@
1375 }, 1366 },
1376 { 1367 {
1377 name: "DOGE - Dogecoin", 1368 name: "DOGE - Dogecoin",
1378 p2wpkhNestedInP2shAvailable: false, 1369 segwitAvailable: false,
1379 onSelect: function() { 1370 onSelect: function() {
1380 network = bitcoinjs.bitcoin.networks.dogecoin; 1371 network = bitcoinjs.bitcoin.networks.dogecoin;
1381 setHdCoin(3); 1372 setHdCoin(3);
@@ -1383,7 +1374,7 @@
1383 }, 1374 },
1384 { 1375 {
1385 name: "ETH - Ethereum", 1376 name: "ETH - Ethereum",
1386 p2wpkhNestedInP2shAvailable: false, 1377 segwitAvailable: false,
1387 onSelect: function() { 1378 onSelect: function() {
1388 network = bitcoinjs.bitcoin.networks.bitcoin; 1379 network = bitcoinjs.bitcoin.networks.bitcoin;
1389 setHdCoin(60); 1380 setHdCoin(60);
@@ -1391,7 +1382,7 @@
1391 }, 1382 },
1392 { 1383 {
1393 name: "FJC - Fujicoin", 1384 name: "FJC - Fujicoin",
1394 p2wpkhNestedInP2shAvailable: false, 1385 segwitAvailable: false,
1395 onSelect: function() { 1386 onSelect: function() {
1396 network = bitcoinjs.bitcoin.networks.fujicoin; 1387 network = bitcoinjs.bitcoin.networks.fujicoin;
1397 setHdCoin(75); 1388 setHdCoin(75);
@@ -1399,7 +1390,7 @@
1399 }, 1390 },
1400 { 1391 {
1401 name: "GAME - GameCredits", 1392 name: "GAME - GameCredits",
1402 p2wpkhNestedInP2shAvailable: false, 1393 segwitAvailable: false,
1403 onSelect: function() { 1394 onSelect: function() {
1404 network = bitcoinjs.bitcoin.networks.game; 1395 network = bitcoinjs.bitcoin.networks.game;
1405 setHdCoin(101); 1396 setHdCoin(101);
@@ -1407,7 +1398,7 @@
1407 }, 1398 },
1408 { 1399 {
1409 name: "JBS - Jumbucks", 1400 name: "JBS - Jumbucks",
1410 p2wpkhNestedInP2shAvailable: false, 1401 segwitAvailable: false,
1411 onSelect: function() { 1402 onSelect: function() {
1412 network = bitcoinjs.bitcoin.networks.jumbucks; 1403 network = bitcoinjs.bitcoin.networks.jumbucks;
1413 setHdCoin(26); 1404 setHdCoin(26);
@@ -1415,7 +1406,7 @@
1415 }, 1406 },
1416 { 1407 {
1417 name: "LTC - Litecoin", 1408 name: "LTC - Litecoin",
1418 p2wpkhNestedInP2shAvailable: true, 1409 segwitAvailable: true,
1419 onSelect: function() { 1410 onSelect: function() {
1420 network = bitcoinjs.bitcoin.networks.litecoin; 1411 network = bitcoinjs.bitcoin.networks.litecoin;
1421 setHdCoin(2); 1412 setHdCoin(2);
@@ -1424,7 +1415,7 @@
1424 }, 1415 },
1425 { 1416 {
1426 name: "MAZA - Maza", 1417 name: "MAZA - Maza",
1427 p2wpkhNestedInP2shAvailable: false, 1418 segwitAvailable: false,
1428 onSelect: function() { 1419 onSelect: function() {
1429 network = bitcoinjs.bitcoin.networks.maza; 1420 network = bitcoinjs.bitcoin.networks.maza;
1430 setHdCoin(13); 1421 setHdCoin(13);
@@ -1432,7 +1423,7 @@
1432 }, 1423 },
1433 { 1424 {
1434 name: "MONA - Monacoin", 1425 name: "MONA - Monacoin",
1435 p2wpkhNestedInP2shAvailable: true, 1426 segwitAvailable: true,
1436 onSelect: function() { 1427 onSelect: function() {
1437 network = bitcoinjs.bitcoin.networks.monacoin, 1428 network = bitcoinjs.bitcoin.networks.monacoin,
1438 setHdCoin(22); 1429 setHdCoin(22);
@@ -1440,7 +1431,7 @@
1440 }, 1431 },
1441 { 1432 {
1442 name: "NMC - Namecoin", 1433 name: "NMC - Namecoin",
1443 p2wpkhNestedInP2shAvailable: false, 1434 segwitAvailable: false,
1444 onSelect: function() { 1435 onSelect: function() {
1445 network = bitcoinjs.bitcoin.networks.namecoin; 1436 network = bitcoinjs.bitcoin.networks.namecoin;
1446 setHdCoin(7); 1437 setHdCoin(7);
@@ -1448,7 +1439,7 @@
1448 }, 1439 },
1449 { 1440 {
1450 name: "PIVX - PIVX", 1441 name: "PIVX - PIVX",
1451 p2wpkhNestedInP2shAvailable: false, 1442 segwitAvailable: false,
1452 onSelect: function() { 1443 onSelect: function() {
1453 network = bitcoinjs.bitcoin.networks.pivx; 1444 network = bitcoinjs.bitcoin.networks.pivx;
1454 setHdCoin(119); 1445 setHdCoin(119);
@@ -1456,7 +1447,7 @@
1456 }, 1447 },
1457 { 1448 {
1458 name: "PIVX - PIVX Testnet", 1449 name: "PIVX - PIVX Testnet",
1459 p2wpkhNestedInP2shAvailable: false, 1450 segwitAvailable: false,
1460 onSelect: function() { 1451 onSelect: function() {
1461 network = bitcoinjs.bitcoin.networks.pivxtestnet; 1452 network = bitcoinjs.bitcoin.networks.pivxtestnet;
1462 setHdCoin(1); 1453 setHdCoin(1);
@@ -1464,7 +1455,7 @@
1464 }, 1455 },
1465 { 1456 {
1466 name: "PPC - Peercoin", 1457 name: "PPC - Peercoin",
1467 p2wpkhNestedInP2shAvailable: false, 1458 segwitAvailable: false,
1468 onSelect: function() { 1459 onSelect: function() {
1469 network = bitcoinjs.bitcoin.networks.peercoin; 1460 network = bitcoinjs.bitcoin.networks.peercoin;
1470 setHdCoin(6); 1461 setHdCoin(6);
@@ -1472,7 +1463,7 @@
1472 }, 1463 },
1473 { 1464 {
1474 name: "SDC - ShadowCash", 1465 name: "SDC - ShadowCash",
1475 p2wpkhNestedInP2shAvailable: false, 1466 segwitAvailable: false,
1476 onSelect: function() { 1467 onSelect: function() {
1477 network = bitcoinjs.bitcoin.networks.shadow; 1468 network = bitcoinjs.bitcoin.networks.shadow;
1478 setHdCoin(35); 1469 setHdCoin(35);
@@ -1480,7 +1471,7 @@
1480 }, 1471 },
1481 { 1472 {
1482 name: "SDC - ShadowCash Testnet", 1473 name: "SDC - ShadowCash Testnet",
1483 p2wpkhNestedInP2shAvailable: false, 1474 segwitAvailable: false,
1484 onSelect: function() { 1475 onSelect: function() {
1485 network = bitcoinjs.bitcoin.networks.shadowtn; 1476 network = bitcoinjs.bitcoin.networks.shadowtn;
1486 setHdCoin(1); 1477 setHdCoin(1);
@@ -1488,7 +1479,7 @@
1488 }, 1479 },
1489 { 1480 {
1490 name: "SLM - Slimcoin", 1481 name: "SLM - Slimcoin",
1491 p2wpkhNestedInP2shAvailable: false, 1482 segwitAvailable: false,
1492 onSelect: function() { 1483 onSelect: function() {
1493 network = bitcoinjs.bitcoin.networks.slimcoin; 1484 network = bitcoinjs.bitcoin.networks.slimcoin;
1494 setHdCoin(63); 1485 setHdCoin(63);
@@ -1496,7 +1487,7 @@
1496 }, 1487 },
1497 { 1488 {
1498 name: "SLM - Slimcoin Testnet", 1489 name: "SLM - Slimcoin Testnet",
1499 p2wpkhNestedInP2shAvailable: false, 1490 segwitAvailable: false,
1500 onSelect: function() { 1491 onSelect: function() {
1501 network = bitcoinjs.bitcoin.networks.slimcointn; 1492 network = bitcoinjs.bitcoin.networks.slimcointn;
1502 setHdCoin(111); 1493 setHdCoin(111);
@@ -1504,7 +1495,7 @@
1504 }, 1495 },
1505 { 1496 {
1506 name: "USNBT - NuBits", 1497 name: "USNBT - NuBits",
1507 p2wpkhNestedInP2shAvailable: false, 1498 segwitAvailable: false,
1508 onSelect: function() { 1499 onSelect: function() {
1509 network = bitcoinjs.bitcoin.networks.nubits; 1500 network = bitcoinjs.bitcoin.networks.nubits;
1510 setHdCoin(12); 1501 setHdCoin(12);
@@ -1512,7 +1503,7 @@
1512 }, 1503 },
1513 { 1504 {
1514 name: "VIA - Viacoin", 1505 name: "VIA - Viacoin",
1515 p2wpkhNestedInP2shAvailable: false, 1506 segwitAvailable: false,
1516 onSelect: function() { 1507 onSelect: function() {
1517 network = bitcoinjs.bitcoin.networks.viacoin; 1508 network = bitcoinjs.bitcoin.networks.viacoin;
1518 setHdCoin(14); 1509 setHdCoin(14);
@@ -1520,7 +1511,7 @@
1520 }, 1511 },
1521 { 1512 {
1522 name: "VIA - Viacoin Testnet", 1513 name: "VIA - Viacoin Testnet",
1523 p2wpkhNestedInP2shAvailable: false, 1514 segwitAvailable: false,
1524 onSelect: function() { 1515 onSelect: function() {
1525 network = bitcoinjs.bitcoin.networks.viacointestnet; 1516 network = bitcoinjs.bitcoin.networks.viacointestnet;
1526 setHdCoin(1); 1517 setHdCoin(1);
@@ -1528,7 +1519,7 @@
1528 }, 1519 },
1529 { 1520 {
1530 name: "XMY - Myriadcoin", 1521 name: "XMY - Myriadcoin",
1531 p2wpkhNestedInP2shAvailable: false, 1522 segwitAvailable: false,
1532 onSelect: function() { 1523 onSelect: function() {
1533 network = bitcoinjs.bitcoin.networks.myriadcoin; 1524 network = bitcoinjs.bitcoin.networks.myriadcoin;
1534 setHdCoin(90); 1525 setHdCoin(90);
@@ -1536,7 +1527,7 @@
1536 }, 1527 },
1537 { 1528 {
1538 name: "XRP - Ripple", 1529 name: "XRP - Ripple",
1539 p2wpkhNestedInP2shAvailable: false, 1530 segwitAvailable: false,
1540 onSelect: function() { 1531 onSelect: function() {
1541 network = bitcoinjs.bitcoin.networks.bitcoin; 1532 network = bitcoinjs.bitcoin.networks.bitcoin;
1542 setHdCoin(144); 1533 setHdCoin(144);