diff options
author | David B <david.bergen@gmx.net> | 2018-09-19 17:37:54 +0200 |
---|---|---|
committer | David B <david.bergen@mx.net> | 2018-09-20 19:49:00 +0000 |
commit | 5ed5f6612d5b0bb75b783f758dd1ae8eea4f20d7 (patch) | |
tree | f797fc21232b44eae37117035fd788ca6d887750 /src/js | |
parent | 2575538b2500a192bfbc48f6bedc20985fa74565 (diff) | |
download | BIP39-5ed5f6612d5b0bb75b783f758dd1ae8eea4f20d7.tar.gz BIP39-5ed5f6612d5b0bb75b783f758dd1ae8eea4f20d7.tar.zst BIP39-5ed5f6612d5b0bb75b783f758dd1ae8eea4f20d7.zip |
Add BitCloud and Megacoin
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 22 | ||||
-rw-r--r-- | src/js/index.js | 14 |
2 files changed, 36 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 054dd24..069c8d9 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -440,6 +440,17 @@ bitcoinjs.bitcoin.networks.bitcoinplus = { | |||
440 | wif: 0x99, | 440 | wif: 0x99, |
441 | }; | 441 | }; |
442 | 442 | ||
443 | bitcoinjs.bitcoin.networks.bitcloud = { | ||
444 | messagePrefix: '\x18BitCloud Signed Message:\n', | ||
445 | bip32: { | ||
446 | public: 0x0488B21E, | ||
447 | private: 0x0488ADE4, | ||
448 | }, | ||
449 | pubKeyHash: 0x19, | ||
450 | scriptHash: 0x05, | ||
451 | wif: 0x99, | ||
452 | }; | ||
453 | |||
443 | bitcoinjs.bitcoin.networks.bitcore = { | 454 | bitcoinjs.bitcoin.networks.bitcore = { |
444 | messagePrefix: '\x18BitCore Signed Message:\n', | 455 | messagePrefix: '\x18BitCore Signed Message:\n', |
445 | bip32: { | 456 | bip32: { |
@@ -847,6 +858,17 @@ bitcoinjs.bitcoin.networks.lynx = { | |||
847 | wif: 0xad, | 858 | wif: 0xad, |
848 | }; | 859 | }; |
849 | 860 | ||
861 | bitcoinjs.bitcoin.networks.megacoin = { | ||
862 | messagePrefix: '\x18Megacoin Signed Message:\n', | ||
863 | bip32: { | ||
864 | public: 0x0488B21E, | ||
865 | private: 0x0488ADE4, | ||
866 | }, | ||
867 | pubKeyHash: 0x32, | ||
868 | scriptHash: 0x05, | ||
869 | wif: 0xB2, | ||
870 | }; | ||
871 | |||
850 | bitcoinjs.bitcoin.networks.minexcoin = { | 872 | bitcoinjs.bitcoin.networks.minexcoin = { |
851 | messagePrefix: '\x18Bitcoin Signed Message:\n', | 873 | messagePrefix: '\x18Bitcoin Signed Message:\n', |
852 | bip32: { | 874 | bip32: { |
diff --git a/src/js/index.js b/src/js/index.js index d969c67..b5d2366 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1745,6 +1745,13 @@ | |||
1745 | }, | 1745 | }, |
1746 | }, | 1746 | }, |
1747 | { | 1747 | { |
1748 | name: "BTDX - BitCloud", | ||
1749 | onSelect: function() { | ||
1750 | network = bitcoinjs.bitcoin.networks.bitcloud; | ||
1751 | setHdCoin(218); | ||
1752 | }, | ||
1753 | }, | ||
1754 | { | ||
1748 | name: "BTG - Bitcoin Gold", | 1755 | name: "BTG - Bitcoin Gold", |
1749 | onSelect: function() { | 1756 | onSelect: function() { |
1750 | network = bitcoinjs.bitcoin.networks.bgold; | 1757 | network = bitcoinjs.bitcoin.networks.bgold; |
@@ -2115,6 +2122,13 @@ | |||
2115 | }, | 2122 | }, |
2116 | }, | 2123 | }, |
2117 | { | 2124 | { |
2125 | name: "MEC - Megacoin", | ||
2126 | onSelect: function() { | ||
2127 | network = bitcoinjs.bitcoin.networks.megacoin; | ||
2128 | setHdCoin(217); | ||
2129 | }, | ||
2130 | }, | ||
2131 | { | ||
2118 | name: "MIX - MIX", | 2132 | name: "MIX - MIX", |
2119 | segwitAvailable: false, | 2133 | segwitAvailable: false, |
2120 | onSelect: function() { | 2134 | onSelect: function() { |