sighash: Document witness_script in p2wsh

This commit is contained in:
Jose Storopoli 2025-02-23 08:57:02 -03:00
parent d1171381bc
commit 82a8aefc53
No known key found for this signature in database
1 changed files with 3 additions and 0 deletions

View File

@ -886,6 +886,9 @@ impl<R: Borrow<Transaction>> SighashCache<R> {
} }
/// Computes the BIP143 sighash to spend a p2wsh transaction for any flag type. /// Computes the BIP143 sighash to spend a p2wsh transaction for any flag type.
///
/// `witness_script` is the script that goes into the [`Witness`],
/// not the one that goes into `script_pubkey` of a [`TxOut`].
pub fn p2wsh_signature_hash( pub fn p2wsh_signature_hash(
&mut self, &mut self,
input_index: usize, input_index: usize,