-
Notifications
You must be signed in to change notification settings - Fork 606
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
Integrate new wallet address manager package #138
Conversation
@@ -54,6 +56,7 @@ var ( | |||
|
|||
type config struct { | |||
ShowVersion bool `short:"V" long:"version" description:"Display version information and exit"` | |||
Create bool `long:"create" description:"Create initial wallet"` |
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.
Don't think "initial" is the word we want here. That almost makes it sound like we support having many wallets open at a time.
Perhaps the description should also mention how this option prevents normal operation by exiting once the wallet is created.
We also need to update the README.md to remove references to Armory and (ideally) describe that btcwallet is now a HD wallet / BIP0032 compatible. |
Couple other things:
|
|
||
} else if !fileExists(mgrPath) { | ||
err := fmt.Errorf("The wallet does not exist. Run with the " + | ||
"--create option to initialize and create it.") |
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.
As discussed on IRC, we can indicate that '--create' also imports legacy keystore. Maybe update it to:
The wallet does not exist. Run with the --create option to initialize, create it and automatically import any existing legacy wallet.
8f623f1
to
66bc769
Compare
66bc769
to
ec8a5bc
Compare
This pull request converts the wallet to use the new secure hierarchical deterministic wallet address manager package.
The following is an overview of modified functionality:
--create
has been added to create the new wallet using wizard style question and answer prompts--create
--create
flag with an existing wallet will simply show an error and return--create
flag will prompt you for the old private passphrase and automatic convert all old addresses to the new wallet being created