From: valued mammal Date: Wed, 14 Aug 2024 02:14:28 +0000 (-0400) Subject: doc(wallet): clarify docs for `Wallet::load` X-Git-Tag: v1.0.0-beta.2~11^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.EncoderStringWriter.html?a=commitdiff_plain;h=13e7008f00b77802481733eb74daf38f48a2faef;p=bdk doc(wallet): clarify docs for `Wallet::load` --- diff --git a/crates/wallet/src/wallet/mod.rs b/crates/wallet/src/wallet/mod.rs index 11e547b2..4303ad29 100644 --- a/crates/wallet/src/wallet/mod.rs +++ b/crates/wallet/src/wallet/mod.rs @@ -443,10 +443,11 @@ impl Wallet { /// Build [`Wallet`] by loading from persistence or [`ChangeSet`]. /// - /// Note that the descriptor secret keys are not persisted to the db. You can either add - /// signers after-the-fact with [`Wallet::add_signer`] or [`Wallet::set_keymap`]. Or you can - /// add keys when building the wallet using [`LoadParams::keymap`] and/or - /// [`LoadParams::descriptor`]. + /// Note that the descriptor secret keys are not persisted to the db. You can add + /// signers after-the-fact with [`Wallet::add_signer`] or [`Wallet::set_keymap`]. You + /// can also add keys when building the wallet by using [`LoadParams::keymap`]. Finally + /// you can check the wallet's descriptors are what you expect with [`LoadParams::descriptor`] + /// which will try to populate signers if [`LoadParams::extract_keys`] is enabled. /// /// # Synopsis ///