Skip to content

Conversation

@bluesign
Copy link
Collaborator

Closes #505


For contributor use:

  • Targeted PR against master branch
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work
  • Code follows the standards mentioned here
  • Updated relevant documentation
  • Re-reviewed Files changed in the Github PR explorer
  • Added appropriate labels

Seed string `flag:"seed" info:"Deterministic seed phrase"`
KeySigAlgo string `default:"ECDSA_P256" flag:"sig-algo" info:"Signature algorithm"`
Seed string `flag:"seed" info:"Deterministic seed phrase"`
FromPrivateKey string `flag:"from-private-key" info:"Use user private key instead of random"`
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to also support FromPublicKey which would get private key from public key :D just kidding

@devbugging
Copy link
Contributor

Thank you, this is great. I was just thinking if it makes sense for this to be under the flow keys generate command as it's not really generating a key, but deriving a public key. Maybe a command flow keys derive <private-key> could be better.

@bluesign
Copy link
Collaborator Author

bluesign commented Aug 1, 2022

Sure I will update the PR, it makes more sense like that

@bluesign bluesign changed the title Add --from-private-key option to keys generate command Add command 'keys derive' to derive public key from private key Aug 1, 2022
Copy link
Contributor

@devbugging devbugging left a comment

Choose a reason for hiding this comment

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

🙏 One last thing to add would be documentation for this. You can just copy this page and make some changes to it https://github.com/onflow/flow-cli/blob/master/docs/generate-keys.md

Copy link
Contributor

@devbugging devbugging left a comment

Choose a reason for hiding this comment

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

Thank you! Small comment, but LGTM

Co-authored-by: Gregor G. <75445744+sideninja@users.noreply.github.com>
@devbugging devbugging merged commit 6603f55 into onflow:master Aug 2, 2022
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

Successfully merging this pull request may close these issues.

Conversion of private-key to public-key

2 participants