]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
Added - NIX Platform
authorrobiiinos <dyrda.robin@outlook.fr>
Mon, 25 Feb 2019 18:08:08 +0000 (03:08 +0900)
committerrobiiinos <dyrda.robin@outlook.fr>
Mon, 25 Feb 2019 18:08:08 +0000 (03:08 +0900)
src/js/bitcoinjs-extensions.js
src/js/index.js
src/js/segwit-parameters.js
tests/spec/tests.js

index c2f278205fde5141c3aab0d7d7ba1e30c9b1538d..d711fac18b9665f1dee949d9f3e52223a99d770c 100644 (file)
@@ -914,6 +914,17 @@ bitcoinjs.bitcoin.networks.neoscoin = {
   wif: 0xb1,
 };
 
+bitcoinjs.bitcoin.networks.nix = {
+  messagePrefix: '\x18Nix Signed Message:\n',
+  bip32: {
+    public: 0x0488b21e,
+    private: 0x0488ade4,
+  },
+  pubKeyHash: 0x26,
+  scriptHash: 0x35,
+  wif: 0x80,
+};
+
 bitcoinjs.bitcoin.networks.neurocoin = {
   messagePrefix: '\x18PPCoin Signed Message:\n',
   bip32: {
index affcc61c9541ce67c0473cc5b604cd6e46c52905..9e955aed22b8d4e0cef16ed25da25c43bc9db869 100644 (file)
                 setHdCoin(25);
             },
         },
+        {
+            name: "NIX - NIX Platform",
+            onSelect: function() {
+                network = bitcoinjs.bitcoin.networks.nix;
+                setHdCoin(400);
+            },
+        },
         {
             name: "NLG - Gulden",
             onSelect: function() {
index e52869eca2bee2405ec797e7a82e26a15e2912d1..a9bdcbc7f5e79baaa261975c89593510e45fd84c 100644 (file)
@@ -210,4 +210,30 @@ bitcoinjs.bitcoin.networks.blockstamp.p2wpkhInP2sh = {
     scriptHash: 0x05,
     wif:  0x80,
 };
+
+bitcoinjs.bitcoin.networks.nix.p2wpkh = {
+    baseNetwork: "nix",
+    messagePrefix: '\x18Nix Signed Message:\n',
+    bech32: 'nix',
+    bip32: {
+        public: 0x0488b21e,
+        private: 0x0488ade4,
+      },
+      pubKeyHash: 0x26,
+      scriptHash: 0x35,
+      wif: 0x80,
+};
+
+bitcoinjs.bitcoin.networks.nix.p2wpkhInP2sh = {
+    baseNetwork: "nix",        
+    messagePrefix: '\x18Nix Signed Message:\n',
+    bech32: 'nix',
+    bip32: {
+        public: 0x0488b21e,
+        private: 0x0488ade4,
+      },
+      pubKeyHash: 0x26,
+      scriptHash: 0x35,
+      wif: 0x80,
+};
 })();
index 9c4b97206874fd84aa6e3b6187618a8f591551c5..ad40b953cb51535af99f0f5c0d4596f4ec0dc504 100644 (file)
@@ -998,6 +998,13 @@ it('Allows selection of Neoscoin', function(done) {
     };
     testNetwork(done, params);
 });
+it('Allows selection of Nix', function(done) {
+    var params = {
+        selectText: "NIX - NIX Platform",
+        firstAddress: "GgcNW2SQQXB4LWHRQTHKkQF3GzXNSLqS8u",
+    };
+    testNetwork(done, params);
+});
 it('Allows selection of Neurocoin', function(done) {
     var params = {
         selectText: "NRO - Neurocoin",