-
Notifications
You must be signed in to change notification settings - Fork 1
Create password encrypted wallet.json instead of privileged private.key #102
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
base: main
Are you sure you want to change the base?
Conversation
Other commands would need to be updated as a result of this since they use the private.key file still. Let me know if I'm barking up the wrong tree, just trying to make sure the format is consistent between |
}, nil | ||
|
||
} | ||
|
||
// readPassword reads a password from stdin if piped, or interactively if in a terminal | ||
func readPassword() (string, error) { |
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.
aren't CreatePassword
and this the same thing?
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.
CreatePassword
confirms the password and checks that they match when you are creating a new account, readPassword
does not
Uses the geth account keystore module to generate a new key and store it in a wallet.json file, encrypting it with a passphrase, instead of storing a private key in a privileged key file.