diff options
author | Suat Özgür <s.oezguer@gmail.com> | 2018-12-17 01:21:17 +0100 |
---|---|---|
committer | Suat Özgür <s.oezguer@gmail.com> | 2018-12-17 01:21:17 +0100 |
commit | 22c443df83bae9c25e80f497cb1a3695c6da5707 (patch) | |
tree | 3ff4d3d537d06e7caa3bea6fd3829af88cd56428 /src/js/index.js | |
parent | 8ffa333bc94699ce1945cf58b24838e73295b028 (diff) | |
download | BIP39-22c443df83bae9c25e80f497cb1a3695c6da5707.tar.gz BIP39-22c443df83bae9c25e80f497cb1a3695c6da5707.tar.zst BIP39-22c443df83bae9c25e80f497cb1a3695c6da5707.zip |
adding xlm stellar
Diffstat (limited to 'src/js/index.js')
-rw-r--r-- | src/js/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js index 9fbdca3..b887a67 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -810,8 +810,12 @@ | |||
810 | } | 810 | } |
811 | // Stellar is different | 811 | // Stellar is different |
812 | if (networks[DOM.network.val()].name == "XLM - Stellar") { | 812 | if (networks[DOM.network.val()].name == "XLM - Stellar") { |
813 | const path = "m/44'/148'/" + index + "'"; | 813 | var purpose = parseIntNoNaN(DOM.bip44purpose.val(), 44); |
814 | const keypair = stellarUtil.derivePath(path, seed); | 814 | var coin = parseIntNoNaN(DOM.bip44coin.val(), 0); |
815 | var path = "m/"; | ||
816 | path += purpose + "'/"; | ||
817 | path += coin + "'/" + index + "'"; | ||
818 | var keypair = stellarUtil.getKeypair(path, seed); | ||
815 | indexText = path; | 819 | indexText = path; |
816 | privkey = keypair.secret(); | 820 | privkey = keypair.secret(); |
817 | pubkey = address = keypair.publicKey(); | 821 | pubkey = address = keypair.publicKey(); |