]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Merge pull request #188 from dalitsairio/master
authoriancoleman <1281387+iancoleman@users.noreply.github.com>
Mon, 26 Mar 2018 23:22:07 +0000 (10:22 +1100)
committerGitHub <noreply@github.com>
Mon, 26 Mar 2018 23:22:07 +0000 (10:22 +1100)
Add network testnet.p2wpkh

src/js/segwit-parameters.js

index 38cf9e05ad125849a2efea9cf8b96f0df23e80ed..b919d451e7b6b90f0c911da469115f323c95b3bb 100644 (file)
@@ -15,6 +15,19 @@ bitcoinjs.bitcoin.networks.bitcoin.p2wpkh = {
     wif: 0x80
 };
 
+bitcoinjs.bitcoin.networks.testnet.p2wpkh = {
+    baseNetwork: "testnet",
+    messagePrefix: '\x18Bitcoin Signed Message:\n',
+    bech32: 'tb',
+    bip32: {
+        public: 0x045f1cf6,
+        private: 0x045f18bc
+    },
+    pubKeyHash: 0x6f,
+    scriptHash: 0xc4,
+    wif: 0xef
+};
+
 // p2wpkh in p2sh
 
 bitcoinjs.bitcoin.networks.bitcoin.p2wpkhInP2sh = {