sighash: Document witness_script in p2wsh
This commit is contained in:
parent
d1171381bc
commit
82a8aefc53
|
@ -886,6 +886,9 @@ impl<R: Borrow<Transaction>> SighashCache<R> {
|
|||
}
|
||||
|
||||
/// 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(
|
||||
&mut self,
|
||||
input_index: usize,
|
||||
|
|
Loading…
Reference in New Issue