]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add SegWit spec for Bitcoin Gold
authorh4x3rotab <h4x3rotab@gmail.com>
Tue, 31 Jul 2018 09:55:34 +0000 (17:55 +0800)
committerGitHub <noreply@github.com>
Tue, 31 Jul 2018 09:55:34 +0000 (17:55 +0800)
src/js/segwit-parameters.js

index b4530d55588dc508dc283737ee1ee6cb68fecfde..55acb9c3aaa0a3c6227442cf0f16e3b90809a8bb 100644 (file)
@@ -133,4 +133,30 @@ bitcoinjs.bitcoin.networks.vertcoin.p2wpkhInP2sh = {
     wif: 0x80
 };
 
+bitcoinjs.bitcoin.networks.bgold.p2wpkh = {
+    baseNetwork: "bgold",
+    messagePrefix: '\x1DBitcoin Gold Signed Message:\n',
+    bech32: 'btg',
+    bip32: {
+        public: 0x04b24746,
+        private: 0x04b2430c
+    },
+    pubKeyHash: 0x26,
+    scriptHash: 0x17,
+    wif: 0x80,
+};
+
+bitcoinjs.bitcoin.networks.bgold.p2wpkhInP2sh = {
+    baseNetwork: "bgold",
+    messagePrefix: '\x1DBitcoin Gold Signed Message:\n',
+    bech32: 'btg',
+    bip32: {
+        public: 0x049d7cb2,
+        private: 0x049d7878
+    },
+    pubKeyHash: 0x26,
+    scriptHash: 0x17,
+    wif: 0x80,
+};
+
 })();