]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Add nubits
authoralkley <github@alkley.com>
Mon, 9 Oct 2017 13:34:39 +0000 (15:34 +0200)
committeralkley <github@alkley.com>
Mon, 9 Oct 2017 13:34:39 +0000 (15:34 +0200)
src/js/bitcoinjs-extensions.js
src/js/index.js

index 58a8d776f74f3673241af6a8ae58d5d5346b5213..661e089b79a7c5a24169ed259160bcc3ac806e2d 100644 (file)
@@ -239,3 +239,14 @@ bitcoinjs.bitcoin.networks.fujicoin = {
   scriptHash: 0x10,
   wif: 0xa4
 };
+
+bitcoinjs.bitcoin.networks.nubits = {
+  messagePrefix: '\x18Nu Signed Message:\n',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488ade4
+  },
+  pubKeyHash: 0x19,
+  scriptHash: 0x1a,
+  wif: 0x96,
+};
index f7a1be29712c89f98f9241a5145ae4f152cc880d..d61c31487d6b70b0b5ee22937ee7c620c21f1fa6 100644 (file)
                 setHdCoin(111);
             },
         },
+        {
+            name: "USNBT - NuBits",
+            p2wpkhNestedInP2shAvailable: false,
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.nubits;
+                setHdCoin(12);
+            },
+        },
         {
             name: "VIA - Viacoin",
             p2wpkhNestedInP2shAvailable: false,