<script src="js/bitcoinjs-extensions.js"></script>
<script src="js/segwit-parameters.js"></script>
<script src="js/ripple-util.js"></script>
+ <script src="js/jingtum-util.js"></script>
<script src="js/casinocoin-util.js"></script>
<script src="js/eos-util.js"></script>
<script src="js/sjcl-bip39.js"></script>
privkey = convertRipplePriv(privkey);
address = convertRippleAdrr(address);
}
+ // Jingtum values are different
+ if (networks[DOM.network.val()].name == "SWTC - Jingtum") {
+ privkey = convertJingtumPriv(privkey);
+ address = convertJingtumAdrr(address);
+ }
// CasinoCoin values are different
if (networks[DOM.network.val()].name == "CSC - CasinoCoin") {
privkey = convertCasinoCoinPriv(privkey);
|| (name == "EWT - EnergyWeb")
|| (name == "PIRL - Pirl")
|| (name == "MIX - MIX")
+ || (name == "MOAC - MOAC")
|| (name == "MUSIC - Musicoin")
|| (name == "POA - Poa")
|| (name == "EXP - Expanse")
setHdCoin(214);
},
},
+ {
+ name: "MOAC - MOAC",
+ segwitAvailable: false,
+ onSelect: function() {
+ network = libs.bitcoin.networks.bitcoin;
+ setHdCoin(314);
+ },
+ },
{
name: "MUSIC - Musicoin",
segwitAvailable: false,
setHdCoin(105);
},
},
+ {
+ name: "SWTC - Jingtum",
+ onSelect: function() {
+ network = libs.bitcoin.networks.bitcoin;
+ setHdCoin(315);
+ },
+ },
{
name: "TSTRAT - Stratis Testnet",
onSelect: function() {
--- /dev/null
+function convertJingtumAdrr(address) {
+ return libs.basex('jpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65rkm8oFqi1tuvAxyz').encode(
+ libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(address)
+ )
+ }
+
+function convertJingtumPriv(priv) {
+ return libs.basex('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz').decode(priv).toString("hex").slice(2,66)
+}
+