diff options
author | Potato <38018953+potatohodler@users.noreply.github.com> | 2018-04-18 15:16:19 +0200 |
---|---|---|
committer | Potato <38018953+potatohodler@users.noreply.github.com> | 2018-04-18 15:28:31 +0200 |
commit | f150f0c03a4907d5a7112a08ffaf064b1176ad2e (patch) | |
tree | 280669f82c6e340081f9797cf93125bc7ca6b3f7 | |
parent | e3bed0bfd0f7cda799dfd577f7816cc52922afbf (diff) | |
download | BIP39-f150f0c03a4907d5a7112a08ffaf064b1176ad2e.tar.gz BIP39-f150f0c03a4907d5a7112a08ffaf064b1176ad2e.tar.zst BIP39-f150f0c03a4907d5a7112a08ffaf064b1176ad2e.zip |
Adds Segwit support for Vertcoin.
-rw-r--r-- | src/js/index.js | 2 | ||||
-rw-r--r-- | src/js/segwit-parameters.js | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js index e96f4a9..dcea9a5 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -2350,7 +2350,7 @@ | |||
2350 | }, | 2350 | }, |
2351 | { | 2351 | { |
2352 | name: "VTC - Vertcoin", | 2352 | name: "VTC - Vertcoin", |
2353 | segwitAvailable: false, | 2353 | segwitAvailable: true, |
2354 | onSelect: function() { | 2354 | onSelect: function() { |
2355 | network = bitcoinjs.bitcoin.networks.vertcoin; | 2355 | network = bitcoinjs.bitcoin.networks.vertcoin; |
2356 | setHdCoin(28); | 2356 | setHdCoin(28); |
diff --git a/src/js/segwit-parameters.js b/src/js/segwit-parameters.js index 3cb7a8e..f8b0347 100644 --- a/src/js/segwit-parameters.js +++ b/src/js/segwit-parameters.js | |||
@@ -94,4 +94,29 @@ bitcoinjs.bitcoin.networks.fujicoin.p2wpkhInP2sh = { | |||
94 | wif: 0xa4 | 94 | wif: 0xa4 |
95 | }; | 95 | }; |
96 | 96 | ||
97 | bitcoinjs.bitcoin.networks.vertcoin.p2wpkh = { | ||
98 | baseNetwork: "vertcoin", | ||
99 | messagePrefix: '\x18Vertcoin Signed Message:\n', | ||
100 | bech32: 'vtc', | ||
101 | bip32: { | ||
102 | public: 0x0488b21e, | ||
103 | private: 0x0488ade4 | ||
104 | }, | ||
105 | pubKeyHash: 71, | ||
106 | scriptHash: 5, | ||
107 | wif: 0x80 | ||
108 | }; | ||
109 | |||
110 | bitcoinjs.bitcoin.networks.vertcoin.p2wpkhInP2sh = { | ||
111 | baseNetwork: "vertcoin", | ||
112 | messagePrefix: '\x18Vertcoin Signed Message:\n', | ||
113 | bip32: { | ||
114 | public: 0x0488b21e, | ||
115 | private: 0x0488ade4 | ||
116 | }, | ||
117 | pubKeyHash: 71, | ||
118 | scriptHash: 5, | ||
119 | wif: 0x80 | ||
120 | }; | ||
121 | |||
97 | })(); | 122 | })(); |