Trait psbt::sign::SignAll [−][src]
pub trait SignAll {
fn sign_all<C>(
&mut self,
provider: &impl SecretProvider<C>
) -> Result<usize, SignError>
where
C: Signing + Verification;
}
Expand description
Extension trait for signing complete PSBT
Required methods
Signs all PSBT inputs using all known keys provided by
SecretProvider
. This includes signing legacy, segwit and taproot
inputs; including inputs coming from P2PK, P2PKH, P2WPKH,
P2WPKH-in-P2SH, bare scripts, P2SH, P2WSH, P2WSH-in-P2SH and P2TR
outputs with both key- and script- spending paths. Supports all
consensus sighash types.
Returns
Number of created signatures or error. The number of signatures includes individual signatures created for different P2TR script spending paths, i.e. a transaction with one P2TR input having a single key may result in multiple signatures, one per each listed spending P2TR leaf.