The most important feature of Psbt's is that they have all the information to compute the sighash. Our new APIs for taproot_key_spend_signature_hash and taproot_script_spend_signature_hash require a sighash::Prevouts struct. This is essentially a collection of all utxos the transaction is spending.
It would be great to have the following API:
impl PartialSignedTransaction {
pub fn to_prevouts(&self) -> sighash::Prevouts {
/// Always return the Prevouts::All variant as psbts must have UTXO information
}
}
The most important feature of Psbt's is that they have all the information to compute the sighash. Our new APIs for
taproot_key_spend_signature_hashandtaproot_script_spend_signature_hashrequire asighash::Prevoutsstruct. This is essentially a collection of all utxos the transaction is spending.It would be great to have the following API: