Describe the enhancement
Currently there is a sign_psbt function that works great, however, it does not give us fine grained control over which inputs are signed, it just signs everything it can. This can be unsafe for multi-party protocols where they could give us one of our own inputs and we sign it for them. To get around this currently we need to sign the whole psbt and then just take the info from the input we wanted, which is inefficient.
Describe the enhancement
Currently there is a
sign_psbtfunction that works great, however, it does not give us fine grained control over which inputs are signed, it just signs everything it can. This can be unsafe for multi-party protocols where they could give us one of our own inputs and we sign it for them. To get around this currently we need to sign the whole psbt and then just take the info from the input we wanted, which is inefficient.