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

[Feature] - add prompt #21

Merged
merged 7 commits into from
Dec 12, 2024
Merged

[Feature] - add prompt #21

merged 7 commits into from
Dec 12, 2024

Conversation

tanut32039
Copy link
Contributor

@tanut32039 tanut32039 commented Dec 6, 2024

Fixed: #XXXX

Implementation details

Add options for user in command prompt when call falcon keys add ...
image
If inserting private key
image

If inserting mnemonic
image

If generating new address
image

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@RogerKSI RogerKSI requested review from nkitlabs and RogerKSI December 6, 2024 07:05
cmd/keys.go Outdated
Comment on lines 60 to 62
huh.NewOption(privateKeyLabel, privateKeyLabel),
huh.NewOption(mnemonicLabel, mnemonicLabel),
huh.NewOption(defaultLabel, defaultLabel),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should key and value be the same (long string)?

cmd/keys.go Outdated
Comment on lines 130 to 131
cmd.Flags().Int32(flagCoinType, -1, "Coin type number for HD derivation")
cmd.Flags().Uint(flagAccount, 0, "Account number within the HD derivation path")
Copy link
Collaborator

Choose a reason for hiding this comment

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

these are used only in creating new keys? should we add it in the default section instead of flag; ask @RogerKSI

@nkitlabs nkitlabs merged commit 97c6db4 into main Dec 12, 2024
2 checks passed
@nkitlabs nkitlabs deleted the add-key/mnemonic-with-prompt branch December 12, 2024 06:07
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.

3 participants