@@ -55,15 +55,18 @@ pub enum CreateWalletSubCommand {
5555 /// File path of the wallet file
5656 wallet_path : PathBuf ,
5757
58- /// Specifies whether the seed- phrase should be stored in the wallet file or
58+ /// Specifies whether the seed phrase should be stored in the wallet file or
5959 /// only printed on the screen.
6060 ///
61- /// Not storing the seed- phrase can be seen as a security measure
62- /// to ensure sufficient secrecy in case that seed- phrase is reused
61+ /// Not storing the seed phrase can be seen as a security measure
62+ /// to ensure sufficient secrecy in case that the seed phrase is reused
6363 /// elsewhere if this wallet is compromised.
64+ ///
65+ /// Note: if you decide to store the seed phrase, consider encrypting the wallet with
66+ /// the wallet-encrypt-private-keys command, which will also encrypt the seed phrase.
6467 whether_to_store_seed_phrase : CliStoreSeedPhrase ,
6568
66- /// Mnemonic phrase (12, 15, or 24 words as a single quoted argument).
69+ /// Mnemonic (seed) phrase (12, 15, or 24 words as a single quoted argument).
6770 ///
6871 /// If not specified, a new mnemonic phrase will be generated and printed.
6972 mnemonic : Option < String > ,
@@ -129,15 +132,18 @@ pub enum RecoverWalletSubCommand {
129132 /// File path of the wallet file
130133 wallet_path : PathBuf ,
131134
132- /// Specifies whether the seed- phrase should be stored in the wallet file or
135+ /// Specifies whether the seed phrase should be stored in the wallet file or
133136 /// only printed on the screen.
134137 ///
135- /// Not storing the seed- phrase can be seen as a security measure
136- /// to ensure sufficient secrecy in case that seed- phrase is reused
138+ /// Not storing the seed phrase can be seen as a security measure
139+ /// to ensure sufficient secrecy in case that the seed phrase is reused
137140 /// elsewhere if this wallet is compromised.
141+ ///
142+ /// Note: if you decide to store the seed phrase, consider encrypting the wallet with
143+ /// the wallet-encrypt-private-keys command, which will also encrypt the seed phrase.
138144 whether_to_store_seed_phrase : CliStoreSeedPhrase ,
139145
140- /// Mnemonic phrase (12, 15, or 24 words as a single quoted argument).
146+ /// Mnemonic (seed) phrase (12, 15, or 24 words as a single quoted argument).
141147 mnemonic : String ,
142148
143149 /// Passphrase along the mnemonic
@@ -226,18 +232,32 @@ pub enum OpenWalletSubCommand {
226232#[ derive( Debug , Parser ) ]
227233#[ clap( rename_all = "kebab-case" ) ]
228234pub enum WalletManagementCommand {
235+ /// Create a new wallet. This will create a new file without scanning the blockchain.
236+ ///
237+ /// Use this command if the seed phrase is brand new and has no associated transactions.
238+ ///
239+ /// If, on the other hand, the seed phrase has been used in the past and may have
240+ /// associated transactions, use wallet-recover instead.
229241 #[ clap( name = "wallet-create" ) ]
230242 CreateWallet {
231243 #[ command( subcommand) ]
232244 wallet : CreateWalletSubCommand ,
233245 } ,
234246
247+ /// Recover a wallet. This will create a new wallet file and scan the blockchain for associated
248+ /// transactions.
249+ ///
250+ /// Use this command if the seed phrase has been used in the past.
251+ ///
252+ /// If, on the other hand, the seed phrase is brand new, consider using wallet-create,
253+ /// which will save you some time (as scanning the entire blockchain is a lengthy process).
235254 #[ clap( name = "wallet-recover" ) ]
236255 RecoverWallet {
237256 #[ command( subcommand) ]
238257 wallet : RecoverWalletSubCommand ,
239258 } ,
240259
260+ /// Open an exiting wallet file.
241261 #[ clap( name = "wallet-open" ) ]
242262 OpenWallet {
243263 #[ command( subcommand) ]
@@ -997,8 +1017,12 @@ pub enum WalletCommand {
9971017 /// This specifies that instead of a (hex encoded) PartiallySignedTransaction
9981018 /// the result should be a (hex encoded) "simple" transaction.
9991019 ///
1000- /// Note that both variants are accepted by account-sign-raw-transaction,
1001- /// so the presence of this option doesn't matter much.
1020+ /// Producing a "simple" transaction will result in a shorter hex string, but you won't
1021+ /// be able to use it with account-sign-raw-transaction in the cold wallet mode, which
1022+ /// relies on some additional information contained inside PartiallySignedTransaction.
1023+ ///
1024+ /// In general, there is no reason in specifying this option unless you care about the size
1025+ /// of the resulting hex string.
10021026 #[ arg( long = "only-transaction" , default_value_t = false ) ]
10031027 only_transaction : bool ,
10041028 } ,
0 commit comments