]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/commitdiff
use dummyNetwork for stellar
authorSuat Özgür <s.oezguer@gmail.com>
Wed, 12 Jun 2019 09:47:01 +0000 (11:47 +0200)
committerSuat Özgür <s.oezguer@gmail.com>
Wed, 12 Jun 2019 09:47:01 +0000 (11:47 +0200)
libs/stellar-util/stellar-util.js
src/js/index.js
src/js/stellar-util.js

index a95d78d0478f9186359a99a353ef00294d15f28e..008dfe614361a6fccb037a79c2660fa702f47252 100644 (file)
@@ -5,5 +5,12 @@ window.stellarUtil = {
     getKeypair: function (path, seed) {
         const result = edHd.derivePath(path, seed);
         return StellarBase.Keypair.fromRawEd25519Seed(result.key);
-    }
+    },
+    dummyNetwork: {
+        bip32: {public: 0, private: 0},
+        messagePrefix: '',
+        pubKeyHash: 0,
+        scriptHash: 0,
+        wif: 0,
+    },
 }
index 3aa78e02e210d3b217512690f5215b2a235099ea..64075d3cfa1cebda032b11b1c3e7985345e2602f 100644 (file)
         {
             name: "XLM - Stellar",
             onSelect: function() {
-                network = '';  // doesn't apply, using stellar-lib
+                network = stellarUtil.dummyNetwork;
                 setHdCoin(148);
             },
         },
index a7032df331cc0e98b7067576e844690a03162122..8722fbfffdc2cf88b48bf96b3a9f1203a3a2cb7b 100644 (file)
@@ -42503,7 +42503,14 @@ window.stellarUtil = {
     getKeypair: function (path, seed) {
         const result = edHd.derivePath(path, seed);
         return StellarBase.Keypair.fromRawEd25519Seed(result.key);
-    }
+    },
+    dummyNetwork: {
+        bip32: {public: 0, private: 0},
+        messagePrefix: '',
+        pubKeyHash: 0,
+        scriptHash: 0,
+        wif: 0,
+    },
 }
 
 },{"ed25519-hd-key":84,"stellar-base":412}]},{},[445]);