aboutsummaryrefslogtreecommitdiff
path: root/src/js/bitcoinjs-extensions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/bitcoinjs-extensions.js')
-rw-r--r--src/js/bitcoinjs-extensions.js37
1 files changed, 35 insertions, 2 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js
index 16e9385..f7e708b 100644
--- a/src/js/bitcoinjs-extensions.js
+++ b/src/js/bitcoinjs-extensions.js
@@ -47,14 +47,14 @@ bitcoinjs.bitcoin.networks.crown = {
47 47
48 var addrBytes = b58.decode(oldAddress); 48 var addrBytes = b58.decode(oldAddress);
49 49
50 var hash160 = new Uint16Array(23); 50 var hash160 = new Uint16Array(23);
51 hash160[0]= 0x01; //C 51 hash160[0]= 0x01; //C
52 hash160[1]= 0x75; //R 52 hash160[1]= 0x75; //R
53 hash160[2]= 0x07; //W 53 hash160[2]= 0x07; //W
54 addrBytes.copy(hash160, 3, 1, 21); 54 addrBytes.copy(hash160, 3, 1, 21);
55 55
56 var checksum = bitcoinjs.bitcoin.crypto.hash256(hash160).subarray(0, 4); 56 var checksum = bitcoinjs.bitcoin.crypto.hash256(hash160).subarray(0, 4);
57 var binaryAddr = new Uint16Array(27); 57 var binaryAddr = new Uint16Array(27);
58 binaryAddr.set(hash160,0); 58 binaryAddr.set(hash160,0);
59 checksum.copy(binaryAddr, 23, 0, 4); 59 checksum.copy(binaryAddr, 23, 0, 4);
60 var newAddress = b58.encode(binaryAddr); 60 var newAddress = b58.encode(binaryAddr);
@@ -172,6 +172,17 @@ bitcoinjs.bitcoin.networks.dogecoin = {
172 wif: 0x9e 172 wif: 0x9e
173}; 173};
174 174
175bitcoinjs.bitcoin.networks.dogecointestnet = {
176 messagePrefix: '\x19Dogecoin Signed Message:\n',
177 bip32: {
178 public: 0x043587cf,
179 private: 0x04358394
180 },
181 pubKeyHash: 0x71,
182 scriptHash: 0xc4,
183 wif: 0xf1
184};
185
175bitcoinjs.bitcoin.networks.denarius = { 186bitcoinjs.bitcoin.networks.denarius = {
176 messagePrefix: '\x19Denarius Signed Message:\n', 187 messagePrefix: '\x19Denarius Signed Message:\n',
177 bip32: { 188 bip32: {
@@ -878,6 +889,17 @@ bitcoinjs.bitcoin.networks.linx = {
878 wif: 0xcb, 889 wif: 0xcb,
879}; 890};
880 891
892
893bitcoinjs.bitcoin.networks.litecointestnet = {
894 messagePrefix: '\x18Litecoin Signed Message:\n',
895 bip32: {
896 public: 0x043587cf,
897 private: 0x04358394,
898 },
899 pubKeyHash: 0x6f,
900 scriptHash: 0xc4,
901 wif: 0xef,
902};
881bitcoinjs.bitcoin.networks.litecoincash = { 903bitcoinjs.bitcoin.networks.litecoincash = {
882 messagePrefix: '\x18Litecoin Signed Message:\n', 904 messagePrefix: '\x18Litecoin Signed Message:\n',
883 bip32: { 905 bip32: {
@@ -1549,3 +1571,14 @@ bitcoinjs.bitcoin.networks.deeponion = {
1549 scriptHash: 0x4E, 1571 scriptHash: 0x4E,
1550 wif: 0x9F, 1572 wif: 0x9F,
1551}; 1573};
1574
1575bitcoinjs.bitcoin.networks.monkey = {
1576 messagePrefix: 'x18DarkNet Signed Message:\n',
1577 bip32: {
1578 public: 0x0488B21E,
1579 private: 0x0488ADE4,
1580 },
1581 pubKeyHash: 0x7F,
1582 scriptHash: 0xC4,
1583 wif: 0x3F,
1584};