diff options
author | iancoleman <coleman.ian@gmail.com> | 2017-10-10 11:48:33 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-10 11:48:33 +1100 |
commit | f2a1a8e67fb2ba69861d4f60ac3dc2fcf8f4ed3f (patch) | |
tree | ae9b9d651cd497b9adc72200440ea0415aa1010b | |
parent | 4b1e5c340ff3283a7bb412c0771e1d4de635bd1d (diff) | |
parent | 8dd28f2cff4e1f673f4aa7adc93a7254de72a297 (diff) | |
download | BIP39-f2a1a8e67fb2ba69861d4f60ac3dc2fcf8f4ed3f.tar.gz BIP39-f2a1a8e67fb2ba69861d4f60ac3dc2fcf8f4ed3f.tar.zst BIP39-f2a1a8e67fb2ba69861d4f60ac3dc2fcf8f4ed3f.zip |
Merge pull request #123 from alkley/master
Add nubits
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 11 | ||||
-rw-r--r-- | src/js/index.js | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index 58a8d77..661e089 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -239,3 +239,14 @@ bitcoinjs.bitcoin.networks.fujicoin = { | |||
239 | scriptHash: 0x10, | 239 | scriptHash: 0x10, |
240 | wif: 0xa4 | 240 | wif: 0xa4 |
241 | }; | 241 | }; |
242 | |||
243 | bitcoinjs.bitcoin.networks.nubits = { | ||
244 | messagePrefix: '\x18Nu Signed Message:\n', | ||
245 | bip32: { | ||
246 | public: 0x0488b21e, | ||
247 | private: 0x0488ade4 | ||
248 | }, | ||
249 | pubKeyHash: 0x19, | ||
250 | scriptHash: 0x1a, | ||
251 | wif: 0x96, | ||
252 | }; | ||
diff --git a/src/js/index.js b/src/js/index.js index f7a1be2..d61c314 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1387,6 +1387,14 @@ | |||
1387 | }, | 1387 | }, |
1388 | }, | 1388 | }, |
1389 | { | 1389 | { |
1390 | name: "USNBT - NuBits", | ||
1391 | p2wpkhNestedInP2shAvailable: false, | ||
1392 | onSelect: function() { | ||
1393 | network = bitcoinjs.bitcoin.networks.nubits; | ||
1394 | setHdCoin(12); | ||
1395 | }, | ||
1396 | }, | ||
1397 | { | ||
1390 | name: "VIA - Viacoin", | 1398 | name: "VIA - Viacoin", |
1391 | p2wpkhNestedInP2shAvailable: false, | 1399 | p2wpkhNestedInP2shAvailable: false, |
1392 | onSelect: function() { | 1400 | onSelect: function() { |