Skip to content

Unable to generate delegation transaction with --generate-only without a key in the keybase #3889

@joe-bowman

Description

@joe-bowman

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

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions