diff options
author | alkley <github@alkley.com> | 2017-08-11 15:08:53 +0200 |
---|---|---|
committer | alkley <github@alkley.com> | 2017-08-11 15:08:53 +0200 |
commit | c0df01895dcd462fe595d99bb27cbab84b7dba41 (patch) | |
tree | 23f9a0d9d321cb7472b5be41b574ecb2b8414d24 /src/js | |
parent | b3cc3930d0ceba42b6e0add887524f23e74db3d3 (diff) | |
download | BIP39-c0df01895dcd462fe595d99bb27cbab84b7dba41.tar.gz BIP39-c0df01895dcd462fe595d99bb27cbab84b7dba41.tar.zst BIP39-c0df01895dcd462fe595d99bb27cbab84b7dba41.zip |
Added PIVX
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 22 | ||||
-rw-r--r-- | src/js/index.js | 16 |
2 files changed, 38 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index bf5fae8..c40c743 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -195,3 +195,25 @@ bitcoinjs.bitcoin.networks.myriadcoin = { | |||
195 | scriptHash: 0x00, // TODO set this correctly | 195 | scriptHash: 0x00, // TODO set this correctly |
196 | wif: 0xb2, | 196 | wif: 0xb2, |
197 | }; | 197 | }; |
198 | |||
199 | bitcoinjs.bitcoin.networks.pivx = { | ||
200 | messagePrefix: "unused", | ||
201 | bip32: { | ||
202 | public: 0x022d2533, | ||
203 | private: 0x0221312b | ||
204 | }, | ||
205 | pubKeyHash: 0x1e, | ||
206 | scriptHash: 0x0d, | ||
207 | wif: 0xd4, | ||
208 | }; | ||
209 | |||
210 | bitcoinjs.bitcoin.networks.pivxtestnet = { | ||
211 | messagePrefix: "unused", | ||
212 | bip32: { | ||
213 | public: 0x3a8061a0, | ||
214 | private: 0x3a805837 | ||
215 | }, | ||
216 | pubKeyHash: 0x8b, | ||
217 | scriptHash: 0x13, | ||
218 | wif: 0xef, | ||
219 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index 6af33d7..1f37d38 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1271,6 +1271,22 @@ | |||
1271 | }, | 1271 | }, |
1272 | }, | 1272 | }, |
1273 | { | 1273 | { |
1274 | name: "PIVX - PIVX", | ||
1275 | bip49available: false, | ||
1276 | onSelect: function() { | ||
1277 | network = bitcoinjs.bitcoin.networks.pivx; | ||
1278 | setHdCoin(119); | ||
1279 | }, | ||
1280 | }, | ||
1281 | { | ||
1282 | name: "PIVX - PIVX Testnet", | ||
1283 | bip49available: false, | ||
1284 | onSelect: function() { | ||
1285 | network = bitcoinjs.bitcoin.networks.pivxtestnet; | ||
1286 | setHdCoin(1); | ||
1287 | }, | ||
1288 | }, | ||
1289 | { | ||
1274 | name: "PPC - Peercoin", | 1290 | name: "PPC - Peercoin", |
1275 | bip49available: false, | 1291 | bip49available: false, |
1276 | onSelect: function() { | 1292 | onSelect: function() { |