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

Allow users to add account address to the keyring by providing private key instead of mnemonic phrase #1690

Open
ltfschoen opened this issue Dec 8, 2024 · 0 comments

Comments

@ltfschoen
Copy link

I want to add functionality to secretcli, so that users can add a specific account to the keyring on Secret localhost by providing the private key associated with that account. for example, i'd like to be able to do this:

secretcli keys add --recover-privatekey secret-4
  > Enter your bip39 mnemonic
  <ENTER_MNEMONIC_PHRASE>

Where secretcli keys add --help would be updated to include:

--recover-privatekey    Provide private key hex value to recover existing key instead of creating

At the moment it only allows users to provide the mnemonic seed phrase, as shown below, but that doesn't add the correct account address to the keyring. e.g.

secretcli keys add --recover secret-4
  > Enter your bip39 mnemonic
  <ENTER_MNEMONIC_PHRASE>
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

1 participant