-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wallet menmonic using --interactive flag provides a different wallet in Keplr than in CLI #2674
Comments
we use the default cosmos-sdk keyring sub command, so I think we might want to bubble this up to the sdk. I also don't know how keplr works, should we expect both to handle mnemonics identically? |
i think so, afaik @rootulp asked me that at some point if i remember correctly but this is an issue for sure, especially since without the --interactive flag the address is the same on CLI and Keplr, and if youre using the flag, then it isnt, which might confuse people ideally it should derive the same address on both |
I actually failed to recreate this bug, was there a password added during the interactive portion? |
Yes, the password is not empty, didn't try that though... |
Yes correct, so the flow was like this on 1.0.0:
use --interactive flag
press enter (for mnemonic)
type passphrase
repeat passphrase
V V čet., 12. okt. 2023 ob 21:36 je oseba Evan Forbes <
***@***.***> napisala:
… I actually failed to recreate this bug, was there a password added during
the interactive portion?
—
Reply to this email directly, view it on GitHub
<#2674 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANIP6FRDAAWR4NB6JB3NOMDX7BBCXAVCNFSM6AAAAAA56CAHSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRQGI2TKMJUGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
just going off the promp
if its being combined with the mnenomic, then we should actually expect the address to change. For me at least, when I didn't use a passphrase the address was the same using interactive mode and the latest version of keplr |
Interesting, but for "normal" users it's not clear what this means I guess...
@evan-forbes Are you expecting changing to the SDK will solve this behavior? |
hmm i guess it makes sense but its still weird.. maybe it has something to do with the keyring test? reason is, in no other tendermint chain have we come accross this, and we use custom passphrases on all those.. but if we restore that wallet to keplr it just shows the same address as in the CLI always |
I just think the ideal place to fix bugs is upstream, especially when we're using the stock version and would prefer to keep it that way to avoid any other weird bugs.
could be yeah, we should try. although I don't think this is a bug any longer, so if you agree, please close this 🙂 having a mnemonic and adding a password does actually have its benefits. Mainly that we can store the mnemonic offline (eg on paper) in a safer way, since we're probably not encrypting it if we're writing it on paper. This way, I only have to remember the password and store themnemonic on paper. If someone gets the mnemonic, they still can't get the privkey without also knowing the password. |
Hello! I'm the one that reported this on Discord. I actually happened to put the wallet address that the CLI gave me in the genesis airdrop. Then tried to import this wallet on Keplr/Leap and received a different address (and wasn't prompted for the password when importing). So I thought this was weird and went to Discord. Thanks to everyone that commented. I admit I went full dumb when going for this airdrop. I googled how to create a Celestia wallet and clicked the first link everything gave me, and ended up on this document https://docs.celestia.org/developers/celestia-app-wallet/. When prompted for a password, I thought "why not?" and set one up. I backed up mnemonic phrase + password of course. I think I fully qualify as a "normal" user, I actually work on software but I'm pretty new to crypto, so there's a lot of stuff I don't understand completely. After reading all the comments, let me know if I understood correctly:
The stuff I don't fully understand:
Also let me know if these questions are to be answered in another channel. Maybe this issue is not the one for it. Thanks everyone ❤️ |
@klaus993 those questions would be better for Discord than this issue, but here you go:
@evan-forbes so i did some more testing and the weird thing is, if we go the --interactive rout and we hit enter on first step for mnemonic, then enter again at the step where it asks for a passphrase for mnemonic (not the actualy keyring), it just skips the keyring passphrase, which means the wallet is not protected by a passphrase at all. This seems weird to me, as then there is no way to just protect the keystore with a passphrase without also enrypting the seed, which i have also not seen elsewhere yet.. And yes its not a bug it seems but i guess still better to discuss this here? i am sure people like Klaus above and others will have lots of issues with this. |
I have test again with the same options and it works as expected, giving a passphrase is adding a 25th word for extra security, but Keplr doesn't support this, so best is to use no password or without the |
Ok so my understanding now is this: if you use --interactive flag and add password to it (for the account itself, not the keyring), you will have a 25th word for your mnemonic, which Keplr does not support. I havent checked that in detail on other chains, but it seems in this case, you can at least export the address private key and import that one into Keplr to get the right one. If anyone wants to reopen feel free to do it, closing it for now. |
Summary of Bug
see steps below
Version
v1.0.0
Steps to Reproduce
pops@val01-tia-t:~$ celestia-appd keys add testwallet --interactive
name: testwallet
pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"A4VmeJdqxmqEJ6fYrtAUeNdpQwQqjpkNxTkqMVq4H3e4"}'
type: local
Important write this mnemonic phrase in a safe place.
It is the only way to recover your account if you ever forget your password.
polar window arena rigid cable inch wife slide leave segment fortune shift enlist museum garbage spring price better garbage sketch noise harbor kick inhale
Now if you try to import this seed phrase into keplr, the address you get is: celestia16ncc9l58elkce7nlz3msztlc8xvyczrsaevlnf
I am guessing something is different with the derivation path if --interactive flag is used. If you dont use the flag, the address imported into Keplr is the same.
For Admin Use
The text was updated successfully, but these errors were encountered: