Skip to content

Command to add a key to a configured chain in the relayer #363

Closed
@andynog

Description

@andynog

Crate

relayer-cli
relayer

Summary

This feature will implement a command to the relayer that will allow users to add keys to a chain configured on the relayer.

Problem Definition

Right now to test a transaction command (e.g. tx raw) the user needs to specify a flag (-k) which is the key_seed.json file every time a transaction is submitted. When this feature implemented, this flag will not be needed anymore. The users would have to run a keys add command once and that will add the key to the relayer home folder.

Proposal

  • Implement command to the relayer to add keys
  • Remove the key flag (-k) from the tx raw commands
  • The added key specified in the config should be used to sign transactions
  • Keys are stored in the relayer home folder (unencrypted)
  • Perform regression and integration test
  • Bonus: Added keys list command
  • Add instructions to add keys on README

Assumptions

  • This will not implement a keychain or keyring.
  • The keys to be imported should be generated with gaiad and exported (e.g. key_seed.json).
  • The key file will be stored in the relayer home folder exactly like they were exported.
  • The key name should be specified in the relayer config file (.toml)

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

I: CLIInternal: related to the relayer's CLII: logicInternal: related to the relaying logic

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions