-
Notifications
You must be signed in to change notification settings - Fork 38.7k
wallet: Restore -usehd=0 option #11582
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
Conversation
Simply avoiding setting a master key is sufficient to have a non-HD wallet, with the latest wallet version (ie, no-default-key)
|
Why are non-hd wallets needed for #9662? |
|
Because the goal of #9662 is to not have the internal wallet generating ANY keys. It's to watch specific addresses only. |
|
Please no. We really don't need a combinatoric blowup in the number of supported wallet options and setups. How about instead support having a public-only HD seed (and if none is provided generate one, who cares, you're just watching a few extra addresses that will never be used). |
|
@TheBlueMatt That assumes all wallets are HD. Additionally, using public derivation is contentious. Finally, watching addresses not part of the real wallet has risks - someone could gain read access to your wallet and send to those addresses, and you'd mistakenly think they were safe on your hardware wallet. |
|
All newly-created wallets will be HD, though, and supporting a matrix of HD, Segwit, Watch-Only, etc, etc and all combinations thereof blows up maintinence complexity a ton. In any case, a watch-only wallet is going to need a mode that forces it to never generate new addresses, so having an HD seed or not having an HD seed wont matter - you still wont get new addresses. |
|
Since #9662 should be disabling all forms of key generation, I don't see why you need to have |
|
@TheBlueMatt Watchonly-only wallets aren't HD. Maintenance complexity isn't affected, because we still need to support non-HD wallets regardless. I see no value in writing an ignored HD seed - it only creates the risk that we accidentally use it rather than crash or fail. @achow101 I suppose that's a possibility, but I don't see the harm in having the option... |
|
From a user perspective, if we don't support creating new non-HD wallets, then it makes no sense to provide a |
|
Agree with @achow101. There is really no need to set hd/nohd when key generation is turned off completely. |
|
Closing for now. |
Simply avoiding setting a master key is sufficient to have a non-HD wallet, with the latest wallet version (ie, no-default-key)
Motivation: I intend to rebase #9662 on top of this, and from there add support for generic external wallet interfaces (such as HD wallets).