diff options
author | iancoleman <1281387+iancoleman@users.noreply.github.com> | 2019-04-30 11:08:13 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 11:08:13 +1000 |
commit | 32b5b0363fdd42df78be4b0f5064a7fb9e86b1ac (patch) | |
tree | 2dffae39507c87d022e4e95da03348cb7f7cff45 | |
parent | c69e40942e3e0f7cfd076ea03daf256b77d1f951 (diff) | |
parent | 3e7b1ac938135a479f3ba145df0be6dd32d2a12e (diff) | |
download | BIP39-32b5b0363fdd42df78be4b0f5064a7fb9e86b1ac.tar.gz BIP39-32b5b0363fdd42df78be4b0f5064a7fb9e86b1ac.tar.zst BIP39-32b5b0363fdd42df78be4b0f5064a7fb9e86b1ac.zip |
Merge pull request #324 from jestevez/master
Add Bolivarcoin (BOLI)
-rw-r--r-- | src/js/bitcoinjs-extensions.js | 10 | ||||
-rw-r--r-- | src/js/index.js | 7 | ||||
-rw-r--r-- | tests/spec/tests.js | 7 |
3 files changed, 24 insertions, 0 deletions
diff --git a/src/js/bitcoinjs-extensions.js b/src/js/bitcoinjs-extensions.js index e4eef0c..d0151db 100644 --- a/src/js/bitcoinjs-extensions.js +++ b/src/js/bitcoinjs-extensions.js | |||
@@ -260,6 +260,16 @@ bitcoinjs.bitcoin.networks.myriadcoin = { | |||
260 | wif: 0xb2 | 260 | wif: 0xb2 |
261 | }; | 261 | }; |
262 | 262 | ||
263 | bitcoinjs.bitcoin.networks.bolivarcoin = { | ||
264 | messagePrefix: 'Bolivarcoin Signed Message:\n', | ||
265 | bip32: { | ||
266 | public: 0x0488b21e, | ||
267 | private: 0x0488ade4 | ||
268 | }, | ||
269 | pubKeyHash: 0x55, | ||
270 | scriptHash: 0x05, | ||
271 | wif: 0xD5 | ||
272 | }; | ||
263 | 273 | ||
264 | bitcoinjs.bitcoin.networks.onixcoin = { | 274 | bitcoinjs.bitcoin.networks.onixcoin = { |
265 | messagePrefix: 'ONIX Signed Message:\n', | 275 | messagePrefix: 'ONIX Signed Message:\n', |
diff --git a/src/js/index.js b/src/js/index.js index 8dd553d..6085f1b 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -1693,6 +1693,13 @@ | |||
1693 | }, | 1693 | }, |
1694 | }, | 1694 | }, |
1695 | { | 1695 | { |
1696 | name: "BOLI - Bolivarcoin", | ||
1697 | onSelect: function() { | ||
1698 | network = bitcoinjs.bitcoin.networks.bolivarcoin; | ||
1699 | setHdCoin(278); | ||
1700 | }, | ||
1701 | }, | ||
1702 | { | ||
1696 | name: "BCA - Bitcoin Atom", | 1703 | name: "BCA - Bitcoin Atom", |
1697 | onSelect: function() { | 1704 | onSelect: function() { |
1698 | network = bitcoinjs.bitcoin.networks.atom; | 1705 | network = bitcoinjs.bitcoin.networks.atom; |
diff --git a/tests/spec/tests.js b/tests/spec/tests.js index 88c91a3..f24b4ac 100644 --- a/tests/spec/tests.js +++ b/tests/spec/tests.js | |||
@@ -535,6 +535,13 @@ it('Allows selection of lkrcoin', function(done) { | |||
535 | }; | 535 | }; |
536 | testNetwork(done, params); | 536 | testNetwork(done, params); |
537 | }); | 537 | }); |
538 | it('Allows selection of bolivarcoin', function(done) { | ||
539 | var params = { | ||
540 | selectText: "BOLI - Bolivarcoin", | ||
541 | firstAddress: "bc378wfZiuPpnXuUnhhwpXnLHqiGDQspju", | ||
542 | }; | ||
543 | testNetwork(done, params); | ||
544 | }); | ||
538 | it('Allows selection of peercoin', function(done) { | 545 | it('Allows selection of peercoin', function(done) { |
539 | var params = { | 546 | var params = { |
540 | selectText: "PPC - Peercoin", | 547 | selectText: "PPC - Peercoin", |