cosmos / ledger-cosmos-obsolete

Ledger Nano S support for Tendermint/Cosmos
Apache License 2.0
42 stars 29 forks source link

What is "index" and "account" in the cosmos ledger app? #163

Closed shunjizhan closed 4 years ago

shunjizhan commented 4 years ago

I am a little bit confused about the addresses in the app, can someone help me?

When I open the cosmos app on ledger, there is a "show address" option that has a lot of addresses. However, when I use the Lunie wallet it seems to always connect to the address associated with "Account 0 and Index 0". Is the only actual address that is generated from the ledger 24-word mnemonic phrase? And what are the other addresses for? Thanks!

jleni commented 4 years ago

Lunie decides to query a single address with that specific path 44'/118'/0'/0/0

The app/device can derive any path that starts with 44'/118'/.... so you actually have an almost unlimited amount of addresses in the device. It is just a matter of the applications that you are using to access them. For example, the CLI can access most of them.

jleni commented 4 years ago

I am closing this because it is not an issue but feel free to answer after that.

shunjizhan commented 4 years ago

Thanks for the answer, that makes things much clear!

I have a follow up question: for bitcoin or other coins, a 24-word mnemonic phrase => a private key => a single address saved in ledger nano s. So how can cosmos have so many address based on one private key? Thanks a for your help : )