-
Notifications
You must be signed in to change notification settings - Fork 503
goal: non-interactive wallet creation with "wallet new --unencrypted --no-display-seed" #6160
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
goal: non-interactive wallet creation with "wallet new --unencrypted --no-display-seed" #6160
Conversation
I don't quite understand what this is doing, so I assume users will be in the same boat. Does it create a account that can be used without a password? Or with the empty password? Is there a distinction between those two things? Or perhaps it creates an account that kmd can't use, and the seed phrase must be used to recover it? (a few minutes pass) Having read some kmd source code, I think it makes an unencrypted wallet. I think the argument and the help text should be directed at telling the user that, rather than simply saying "skip password". Something like |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6160 +/- ##
==========================================
- Coverage 56.29% 56.26% -0.03%
==========================================
Files 494 494
Lines 69958 69964 +6
==========================================
- Hits 39381 39366 -15
- Misses 27907 27921 +14
- Partials 2670 2677 +7 ☔ View full report in Codecov by Sentry. |
Correct, the idea is to create a wallet without prompting for password. I agree that Will also split the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with JJ - use --unencrypted
for suppressing the password prompt only. This should not affect the mnemonic output since a master key used for account key generation and orthogonal to wallet passwords.
Removed shorthand options |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested some UI wording changes, but otherwise happy to approve.
Co-authored-by: John Jannotti <jannotti@gmail.com>
Applied suggestions |
Fixed formatter |
Adds this option to
goal wallet new
:Skipping the password prompt is useful in scripted KMD creation.
The password prompt method for
goal wallet new
, which hides the input from the console, doesn't work with piping (unlikegoal account import
, which acceptsecho apple apple apple ... | goal account import
)