address = bchaddr.toBitpayAddress(address);
}
}
+ // Bitcoin Cash address format may vary
+ if (networks[DOM.network.val()].name == "SLP - Simple Ledger Protocol") {
+ var bchAddrType = DOM.bitcoinCashAddressType.filter(":checked").val();
+ if (bchAddrType == "cashaddr") {
+ address = bchaddr.toSlpAddress(address);
+ }
+ }
// Segwit addresses are different
if (isSegwit) {
if (!segwitAvailable) {
address = bitcoinjs.bitcoin.address.fromOutputScript(scriptpubkey, network)
}
}
+
+ if ((networks[DOM.network.val()].name == "CRW - Crown")) {
+ address = bitcoinjs.bitcoin.networks.crown.toNewAddress(address);
+ }
+
addAddressToList(indexText, address, pubkey, privkey);
if (isLast) {
hidePending();
network = bitcoinjs.bitcoin.networks.blocknode;
setHdCoin(2941);
},
- },
+ },
{
name: "tBND - Blocknode Testnet",
onSelect: function() {
setHdCoin(186);
},
},
+ {
+ name: "CRW - Crown (Legacy)",
+ onSelect: function() {
+ network = bitcoinjs.bitcoin.networks.crown;
+ setHdCoin(72);
+ },
+ },
{
name: "CRW - Crown",
onSelect: function() {
setHdCoin(111);
},
},
+ {
+ name: "SLP - Simple Ledger Protocol",
+ onSelect: function() {
+ DOM.bitcoinCashAddressTypeContainer.removeClass("hidden");
+ setHdCoin(245);
+ },
+ },
{
name: "SLR - Solarcoin",
onSelect: function() {