]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add Bolivarcoin (BOLI)
authorJose Luis Estevez <jose.estevez.prieto@gmail.com>
Thu, 25 Apr 2019 20:17:31 +0000 (22:17 +0200)
committerJose Luis Estevez <jose.estevez.prieto@gmail.com>
Thu, 25 Apr 2019 20:17:31 +0000 (22:17 +0200)
src/js/bitcoinjs-extensions.js
src/js/index.js
tests/spec/tests.js

index e4eef0c1a7b9c59aba4db296599e5437ab4ebafd..d0151db3eeb45848efe0fee020dea00ca47ed1a2 100644 (file)
@@ -260,6 +260,16 @@ bitcoinjs.bitcoin.networks.myriadcoin = {
   wif: 0xb2
 };
 
+bitcoinjs.bitcoin.networks.bolivarcoin = {
+  messagePrefix: 'Bolivarcoin Signed Message:\n',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488ade4
+  },
+  pubKeyHash: 0x55,
+  scriptHash: 0x05,
+  wif: 0xD5
+};
 
 bitcoinjs.bitcoin.networks.onixcoin = {
     messagePrefix: 'ONIX Signed Message:\n',
index 8262947a64aa82a967566e6549370dcbef5a83c8..e0d0b44452f1a5b4ad795d9e9724d4b59e4d396b 100644 (file)
                 setHdCoin(220);
             },
         },
+        {
+            name: "BOLI - Bolivarcoin",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bolivarcoin;
+                setHdCoin(278);
+            },
+        },
         {
             name: "BCA - Bitcoin Atom",
             onSelect: function() {
index a22d749e7ab05b1180a51a8e1ec18e218de7f339..1449c009227254cdcc3824d273eeb0b38c99e9e4 100644 (file)
@@ -535,6 +535,13 @@ it('Allows selection of lkrcoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of bolivarcoin', function(done) {
+    var params = {
+        selectText: "BOLI - Bolivarcoin",
+        firstAddress: "bc378wfZiuPpnXuUnhhwpXnLHqiGDQspju",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of peercoin', function(done) {
     var params = {
         selectText: "PPC - Peercoin",