]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #210 from potatohodler/patch/vertcoin
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Thu, 19 Apr 2018 23:45:39 +0000 (09:45 +1000)
committerGitHub <noreply@github.com>
Thu, 19 Apr 2018 23:45:39 +0000 (09:45 +1000)
Improve Vertcoin support

src/js/bitcoinjs-extensions.js
src/js/index.js
src/js/segwit-parameters.js

index 80dcc8941164b9dabb4b196fcadd7fba3a4d3703..b556f424432b3fc329ff1b3a74f4d0db92e2a01c 100644 (file)
@@ -1142,7 +1142,7 @@ bitcoinjs.bitcoin.networks.vertcoin = {
   },
   pubKeyHash: 0x47,
   scriptHash: 0x05,
-  wif: 0xc7,
+  wif: 0x80,
 };
 
 bitcoinjs.bitcoin.networks.vivo = {
index 5433bc3ece8ffb84ddf5043a36257426739e75f1..758b8402b3ddd8983e0eaf5089a6452d990bd3b6 100644 (file)
         },
         {
             name: "VTC - Vertcoin",
-            segwitAvailable: false,
+            segwitAvailable: true,
             onSelect: function() {
                 network = bitcoinjs.bitcoin.networks.vertcoin;
                 setHdCoin(28);
index 3cb7a8edeb9deea00ede6645b6dbb90650cffd20..f8b03474a5b3839ca460ff2b8cddb85001a58366 100644 (file)
@@ -94,4 +94,29 @@ bitcoinjs.bitcoin.networks.fujicoin.p2wpkhInP2sh = {
     wif: 0xa4
 };
 
+bitcoinjs.bitcoin.networks.vertcoin.p2wpkh = {
+    baseNetwork: "vertcoin",
+    messagePrefix: '\x18Vertcoin Signed Message:\n',
+    bech32: 'vtc',
+    bip32: {
+        public: 0x0488b21e,
+        private: 0x0488ade4
+    },
+    pubKeyHash: 71,
+    scriptHash: 5,
+    wif: 0x80
+};
+
+bitcoinjs.bitcoin.networks.vertcoin.p2wpkhInP2sh = {
+    baseNetwork: "vertcoin",
+    messagePrefix: '\x18Vertcoin Signed Message:\n',
+    bip32: {
+        public: 0x0488b21e,
+        private: 0x0488ade4
+    },
+    pubKeyHash: 71,
+    scriptHash: 5,
+    wif: 0x80
+};
+
 })();