Skip to content
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

Error "Ciphertext decryption failed" while run cli send #1497

Closed
TanNgocDo opened this issue Jul 2, 2018 · 8 comments
Closed

Error "Ciphertext decryption failed" while run cli send #1497

TanNgocDo opened this issue Jul 2, 2018 · 8 comments

Comments

@TanNgocDo
Copy link

TanNgocDo commented Jul 2, 2018

To reproduce :
gaiacli send --amount=10TanToken --to=cosmosaccaddr14ese34yn3m8tfx6sx2a5sm684j5cw44gmv9hwv --name=Tan --chain-id=test-chain-2BbRvm
Defaulting to account number: 0 Defaulting to next sequence number: 0 Password to sign with 'Tan': ERROR: Error signing transaction: Ciphertext decryption failed
Problem occurs with local gaia test-net. I guess the problem occurs with inconsistence of bech32 address

@ValarDragon
Copy link
Contributor

I've gotten this same error message when I type an incorrect password for the key. Are you sure that isn't it? But we also need to change our incorrect password error message to be more helpful

@TanNgocDo
Copy link
Author

I use a very simple password: "12345678". I don't think I mistype it :(

@ValarDragon
Copy link
Contributor

Can you provide the list of commands you ran, so that this can be reproduced? i.e. gaiad init --name=<x>, gaiad start, , then the send which you listed? I'm unable to reproduce except with password errors.

Are you using the account that the testnet was generated with? I'm not sure what the password for that is, right now I'm just using gaiacli keys add foo --recover, and recovering the privkey from the secret provided at gaiad init.

Also can you list your gaiad version?

@ValarDragon
Copy link
Contributor

ValarDragon commented Jul 2, 2018

Actually can you try reproducing the error on this branch: dev/change_privkey_decode_msg ?

To do that, just do git checkout dev/change_privkey_decode_msg, make get_vendor_deps, make install, and then the series of commands you ran before to get that error

The reason I think this may be an invalid passphrase issue (though perhaps related to #1488 -- where the passphrase is unclear), is because I can't find that error message anywhere in our codebase, except for invalid password decryption.

@TanNgocDo
Copy link
Author

Thank you. I checkout your brand and see this error:
ERROR: Error signing transaction: decoding privatekey failed, are you sure you have the right password?
It seems I typed the wrong password. But it's weird, I only use "12345678". It's hard to be wrong

@TanNgocDo
Copy link
Author

More detail on reproduce :
gaiacli keys add Tan
gaiacli keys add Thu -> get Thu_address
gaiad init --name Tan --owk
gaiacli send --amount=10TanToken --to=Thu_address --name=Tan --chain-id=test-chain-2BbRvm
I only use one password: "12345678"

@ValarDragon
Copy link
Contributor

ValarDragon commented Jul 6, 2018

Closing in favor of #1488. The PR to improve this error message has been merged into develop though. Thanks for the report! (Hopefully we'll find out what the default password for gaiad init is soon, I don't know either)

For now just use gaiacli keys add <newKeyName> --recover with the seed outputted by gaiad to get access to the Tan account.

@TanNgocDo
Copy link
Author

Yeah, I use gaiad init and create an account with password default is: "1234567890" and It works. It seems to be a problem because We only need 8 characters password. Anyway, thanks for your support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants