]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Adds Segwit support for Vertcoin.
authorPotato <38018953+potatohodler@users.noreply.github.com>
Wed, 18 Apr 2018 13:16:19 +0000 (15:16 +0200)
committerPotato <38018953+potatohodler@users.noreply.github.com>
Wed, 18 Apr 2018 13:28:31 +0000 (15:28 +0200)
src/js/index.js
src/js/segwit-parameters.js

index e96f4a90fcdd43b132a194cd444e401861da12b8..dcea9a558ad1c5d08fe5f87b03d14526d8e13feb 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
+};
+
 })();