use dummyNetwork for stellar

This commit is contained in:
Suat Özgür
2019-06-12 11:47:01 +02:00
parent 562ece8004
commit ad59508d7c
3 changed files with 17 additions and 3 deletions

View 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,
},
}

View File

@@ -2694,7 +2694,7 @@
{
name: "XLM - Stellar",
onSelect: function() {
network = ''; // doesn't apply, using stellar-lib
network = stellarUtil.dummyNetwork;
setHdCoin(148);
},
},

View 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]);