From 13e7008f00b77802481733eb74daf38f48a2faef Mon Sep 17 00:00:00 2001 From: valued mammal Date: Tue, 13 Aug 2024 22:14:28 -0400 Subject: [PATCH] doc(wallet): clarify docs for `Wallet::load` --- crates/wallet/src/wallet/mod.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 /// -- 2.49.0