Clarify to_v0_p2wsh docs a bit further

This commit is contained in:
Matt Corallo 2018-07-26 15:13:44 -04:00
parent f7ab3241a7
commit 3686cd7201
1 changed files with 2 additions and 1 deletions

View File

@ -302,7 +302,8 @@ impl Script {
.into_script()
}
/// Compute the P2WSH output corresponding to this witness script
/// Compute the P2WSH output corresponding to this witnessScript (aka the "witness redeem
/// script")
pub fn to_v0_p2wsh(&self) -> Script {
let mut tmp = [0; 32];
let mut sha2 = Sha256::new();