aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
authorSuat Özgür <s.oezguer@gmail.com>2019-06-12 11:47:01 +0200
committerSuat Özgür <s.oezguer@gmail.com>2019-06-12 11:47:01 +0200
commitad59508d7c4ecb487182d0d3306f01ffb4e48fb8 (patch)
tree7d833f2343d6f7290d0c95b229944d2a39622ee9 /src/js
parent562ece8004ffa37a215f9cd0c5d365227a0b8d08 (diff)
downloadBIP39-ad59508d7c4ecb487182d0d3306f01ffb4e48fb8.tar.gz
BIP39-ad59508d7c4ecb487182d0d3306f01ffb4e48fb8.tar.zst
BIP39-ad59508d7c4ecb487182d0d3306f01ffb4e48fb8.zip
use dummyNetwork for stellar
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js2
-rw-r--r--src/js/stellar-util.js9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 3aa78e0..64075d3 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -2694,7 +2694,7 @@
2694 { 2694 {
2695 name: "XLM - Stellar", 2695 name: "XLM - Stellar",
2696 onSelect: function() { 2696 onSelect: function() {
2697 network = ''; // doesn't apply, using stellar-lib 2697 network = stellarUtil.dummyNetwork;
2698 setHdCoin(148); 2698 setHdCoin(148);
2699 }, 2699 },
2700 }, 2700 },
diff --git a/src/js/stellar-util.js b/src/js/stellar-util.js
index a7032df..8722fbf 100644
--- a/src/js/stellar-util.js
+++ b/src/js/stellar-util.js
@@ -42503,7 +42503,14 @@ window.stellarUtil = {
42503 getKeypair: function (path, seed) { 42503 getKeypair: function (path, seed) {
42504 const result = edHd.derivePath(path, seed); 42504 const result = edHd.derivePath(path, seed);
42505 return StellarBase.Keypair.fromRawEd25519Seed(result.key); 42505 return StellarBase.Keypair.fromRawEd25519Seed(result.key);
42506 } 42506 },
42507 dummyNetwork: {
42508 bip32: {public: 0, private: 0},
42509 messagePrefix: '',
42510 pubKeyHash: 0,
42511 scriptHash: 0,
42512 wif: 0,
42513 },
42507} 42514}
42508 42515
42509},{"ed25519-hd-key":84,"stellar-base":412}]},{},[445]); 42516},{"ed25519-hd-key":84,"stellar-base":412}]},{},[445]);