-
Notifications
You must be signed in to change notification settings - Fork 341
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
feat: add support for private key exports #432
Conversation
Hello @zivkovicmilos, this is Blake from Onbloc, building Adena wallet. We're trying to implement import/export functionality in our wallet that's compatible with gnokey (and furthermore another wallet like Keplr & Metamask) However we notice that this pr inlcudes only encrypted export functionality, and isn't compatible with the existing wallets so it'll be inconvenient for users to import/export keys. So my question is, do you have plan to add something like |
Hey @r3v4-onbloc, The only reason we kept the encrypted armor functionality is to keep up with existing keybase code (it expects to work with encrypted keys). I honestly see no issue with adding unencrypted export / import functionality for keys (if the user asks for it explicitly) - it should be pretty straightforward to do. I'll open up a PR and link you as soon as I have it up. Just to confirm - you need unencrypted private key armor export / import? |
Yes we do. Thank you for your comment and future implementation. |
No problem, I'll ping you once it's up and ready for viewing |
@r3v4-onbloc PR is out 🚀 |
Description
This PR adds support for exporting private keys from the key-base, using the
gnokey export
command.The private key armor that is saved is encrypted using a passphrase that the user sets.
Changes include
Checklist (for contributors)
Testing
Manual tests
Tested manually by invoking the command:
gnokey export --key MyKey --output-path ./mykey.asc
Additionally, a new unit test has been added for covering this functionality.
Additional comments
There should be an
import
command also available, that knows how to do the opposite of export.I'll add this functionality in a separate PR.