Merge pull request #112 from TheBlueMatt/2018-07-p2wsh-name

Clarify to_v0_p2wsh docs a bit further
This commit is contained in:
Andrew Poelstra 2018-07-28 18:28:00 +00:00 committed by GitHub
commit 45c699f005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();