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

feat: Add --export to account to export account's private key #40

Merged
merged 2 commits into from
Sep 10, 2022

Conversation

kayagokalp
Copy link
Member

closes #39.

This PR adds --export to forc-wallet account so that people can get their private key from their accounts managed by forc-wallet and use import and use them in SDKs. To not leak any private key in the terminal history it is shown in an alternate screen just like the seed phrase.

@kayagokalp kayagokalp added the enhancement New feature or request label Sep 6, 2022
@kayagokalp kayagokalp self-assigned this Sep 6, 2022
@kayagokalp kayagokalp marked this pull request as ready for review September 6, 2022 00:48
mitchmindtree
mitchmindtree previously approved these changes Sep 7, 2022
@@ -44,6 +44,9 @@ enum Command {
/// Get the address of an acccount from account index
Account {
account_index: usize,
#[clap(long)]
export: bool,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should have a separate command for this, just like we do for import? If so, we should also ensure the command is well documented.

Happy to approve for now so that it's at least possible to export in the meantime 👍

@kayagokalp kayagokalp enabled auto-merge (squash) September 7, 2022 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Get private key of a wallet created with forc wallet
2 participants