]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Added support for VeChain, hdcoin 818, same address formats as ETH
authorMatt Robertson <sile16@gmail.com>
Thu, 4 Jul 2019 18:20:14 +0000 (13:20 -0500)
committerMatt Robertson <sile16@gmail.com>
Thu, 4 Jul 2019 18:20:14 +0000 (13:20 -0500)
src/js/index.js

index 9578146ad891b054a3495d8a2583f81737520781..52b0db5d86f4f8ba3ea49dceaaaae6e5f6cbcc0c 100644 (file)
                     || (networks[DOM.network.val()].name == "DXN - DEXON")
                     || (networks[DOM.network.val()].name == "ELLA - Ellaism")
                     || (networks[DOM.network.val()].name == "ESN - Ethersocial Network")
+                    || (networks[DOM.network.val()].name == "VET - VeChain")
                 ) {
                     var privKeyBuffer = keyPair.d.toBuffer(32);
                     privkey = privKeyBuffer.toString('hex');
                 setHdCoin(33);
             },
         },
+        {
+            name: "VET - VeChain",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bitcoin;
+                setHdCoin(818);
+            },
+        },
         {
             name: "VIA - Viacoin",
             onSelect: function() {