[wallet] Add a flag to fill-in PSBT_GLOBAL_XPUB

This commit is contained in:
Alekos Filini
2020-11-30 15:13:33 +01:00
parent e1a59336f8
commit ebfe5db0c3
5 changed files with 89 additions and 12 deletions

View File

@@ -54,6 +54,12 @@ pub enum Error {
FeeTooLow {
required: u64,
},
/// In order to use the [`TxBuilder::add_global_xpubs`] option every extended
/// key in the descriptor must either be a master key itself (having depth = 0) or have an
/// explicit origin provided
///
/// [`TxBuilder::add_global_xpubs`]: crate::wallet::tx_builder::TxBuilder::add_global_xpubs
MissingKeyOrigin(String),
Key(crate::keys::KeyError),