-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Unable to generate delegation transaction with --generate-only without a key in the keybase #3889
Comments
Thanks @joe-bowman. The Namely,
Why? You can have a Keybase that isn't connected to the internet to sign txs (use the |
I think I see the issue: cosmos-sdk/client/context/context.go Line 289 in 6f74095
Even if you are using a bech32 This is unintuitive and not clear at all from the documentation. |
What is exactly unclear? Can you elaborate please? |
That you cannot provide an arbitrary bech32 key in --from - it has to exist in your keystore. So if you want to sign offline, you need to have added it with the --public method of |
Ahhh yes yes. The REST client API doesn't use a Keybase and thus only supports generate only. I believe in the same spirit, the CLI client should also do the same -- not require access to a Keybase. In other words, update @sabau or @fedekunze are either of you interested in picking this up? |
I've run into this issue primarily with delegation. We should make the |
No, not necessarily. I think the main actionable item here is when |
We have come across this issue with a potential delegator, who doesn't own a ledger, so wants to generate a transaction, to sign offline, as per the instructions here:
https://github.com/cosmos/cosmos-sdk/blob/develop/docs/gaia/delegator-guide-cli.md#signing-transactions-from-an-offline-computer
Summary of Bug
The
gaiacli tx staking delegate
takes a--from
param. The problem here is that from (unlike in the docs, which I believe to be incorrect) take the name of a key stored in the keystore, and not a bech32 account key.For someone who doesn;t want to add their account to an Internet connected machine, this poses an issue. Any command with
--generate-only
should not require a--from
key as the two are completely incompatible.There is a workaround, by adding a
pubkey
type to the keybase, and using that - but it seems unintuitive.Steps to Reproduce
Follow the official delegation docs to generate a tx to sign offline.
For Admin Use
The text was updated successfully, but these errors were encountered: