]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
add BTG (Bitcoin Gold/bgold)
authorRik Snel <rik@snel.it>
Tue, 14 Nov 2017 08:05:50 +0000 (09:05 +0100)
committerRik Snel <rik@snel.it>
Tue, 14 Nov 2017 08:05:50 +0000 (09:05 +0100)
bip39-standalone.html
src/js/bitcoinjs-extensions.js
src/js/index.js

index f287e139a31ae7ed60d44c2ab672b2784a4f4b97..333f264449442caa796c21fce3a7dab06fc830ab 100644 (file)
@@ -22422,6 +22422,17 @@ bitcoinjs.bitcoin.networks.nubits = {
   wif: 0x96,
 };
 
+bitcoinjs.bitcoin.networks.bgold = {
+  messagePrefix: 'unused',
+    bip32: {
+      public: 0x0488b21e,
+      private: 0x0488ade4
+    },
+    pubKeyHash: 38,
+    scriptHash: 23,
+    wif: 128
+};
+
 bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = {
     messagePrefix: '\x18Bitcoin Signed Message:\n',
     bip32: {
@@ -47295,6 +47306,14 @@ window.Entropy = new (function() {
                 setHdCoin(1);
             },
         },
+        {
+            name: "BTG - Bitcoin Gold",
+            p2wpkhNestedInP2shAvailable: true,
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bgold;
+                setHdCoin(0);
+            },
+        },
         {
             name: "CLAM - Clams",
             p2wpkhNestedInP2shAvailable: false,
index 388dd0bf66d42d66be7d4d849c025390ee08d77f..fb34441a895a55cec8578c59e8b766c78dee37e0 100644 (file)
@@ -251,6 +251,17 @@ bitcoinjs.bitcoin.networks.nubits = {
   wif: 0x96,
 };
 
+bitcoinjs.bitcoin.networks.bgold = {
+  messagePrefix: 'unused',
+    bip32: {
+      public: 0x0488b21e,
+      private: 0x0488ade4
+    },
+    pubKeyHash: 38,
+    scriptHash: 23,
+    wif: 128
+};
+
 bitcoinjs.bitcoin.networks.bitcoinCashBitbpay = {
     messagePrefix: '\x18Bitcoin Signed Message:\n',
     bip32: {
index f38aa3ce3bcaf537441ba5bc5dc3b1b891963505..391f40b88049acd1053aed0be293a13d46577dbf 100644 (file)
                 setHdCoin(1);
             },
         },
+        {
+            name: "BTG - Bitcoin Gold",
+            p2wpkhNestedInP2shAvailable: true,
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.bgold;
+                setHdCoin(0);
+            },
+        },
         {
             name: "CLAM - Clams",
             p2wpkhNestedInP2shAvailable: false,