Repository navigation
rpc: encryptwallet help, mention HD seed rotation and backup requirement - #28980
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
6739760 to
40a5117
Compare
pablomartin4btc
left a comment
There was a problem hiding this comment.
ACK 40a5117c020e6ecfc5b57909900eb7afb8a486d9
40a5117 to
30983e4
Compare
pablomartin4btc
left a comment
There was a problem hiding this comment.
re ACK 30983e4e30a136ce7d2efc3639f0c17ed89ea38b
30983e4 to
e26c4aa
Compare
|
Updated per feedback. Thanks everyone. |
|
utACK |
5f2ff09 to
e6b9a6d
Compare
furszy
left a comment
There was a problem hiding this comment.
Updated per feedback. Thanks.
Applied #28980 (comment) suggestions.
pablomartin4btc
left a comment
There was a problem hiding this comment.
reACK e6b9a6dba79144cbe77c59515541f9019d1db4b5
There was a problem hiding this comment.
ACK e6b9a6dba79144cbe77c59515541f9019d1db4b5
This change would result in the following help:
$ ./src/bitcoin-cli -signet help encryptwallet
encryptwallet "passphrase"
Encrypts the wallet with 'passphrase'. This is for first time encryption.
After this, any calls that interact with private keys such as sending or signing
will require the passphrase to be set prior the making these calls.
Use the walletpassphrase call for this, and then walletlock call.
If the wallet is already encrypted, use the walletpassphrasechange call.
** IMPORTANT **
For security reasons, the encryption process will generate a new HD seed, resulting in the creation of a fresh set of active descriptors. Therefore, it is crucial to securely back up the newly generated wallet file using the backupwallet RPC.
If you agree and/or need to retouch, maybe do
- "For security reasons, the encryption process will generate a new HD seed, resulting in the creation of a fresh set of active descriptors. "
- "Therefore, it is crucial to securely back up the newly generated wallet file using the backupwallet RPC.\n",
+ "For security reasons, the encryption process will generate a new HD seed, resulting\n"
+ "in the creation of a fresh set of active descriptors. Therefore, it is crucial to\n"
+ "securely back up the newly generated wallet file using the backupwallet RPC.\n",for a more harmonious output
$ ./src/bitcoin-cli -signet help encryptwallet
encryptwallet "passphrase"
Encrypts the wallet with 'passphrase'. This is for first time encryption.
After this, any calls that interact with private keys such as sending or signing
will require the passphrase to be set prior the making these calls.
Use the walletpassphrase call for this, and then walletlock call.
If the wallet is already encrypted, use the walletpassphrasechange call.
** IMPORTANT **
For security reasons, the encryption process will generate a new HD seed, resulting
in the creation of a fresh set of active descriptors. Therefore, it is crucial to
securely back up the newly generated wallet file using the backupwallet RPC.Also, should we change this as well?
},
@@ -271,7 +272,7 @@ RPCHelpMan encryptwallet()
throw JSONRPCError(RPC_WALLET_ENCRYPTION_FAILED, "Error: Failed to encrypt the wallet.");
}
- return "wallet encrypted; The keypool has been flushed and a new HD seed was generated (if you are using HD). You need to make a new backup.";
+ return "wallet encrypted; The keypool has been flushed and a new HD seed was generated. You need to make a new backup with the backupwallet RPC.";e6b9a6d to
477c51f
Compare
Better to notify users about the HD seed rotation and the new backup requirement before executing the encryption process. Ensuring they are prepared to update previous backups and securely safeguard the updated wallet file. Co-authored-by: jonatack <[email protected]>
477c51f to
ca09415
Compare
|
Tackled both points. Thanks @jonatack. |
|
ACK ca09415 |
|
ack ca09415 |
|
ACK ca09415 |
|
Post-merge ACK |
Small and simple PR, updating the
encryptwallethelp message.Better to notify users about the HD seed rotation and the new
backup requirement before executing the encryption process.
Ensuring they are prepared to update previous backups and
securely safeguard the updated wallet file.