From 3686cd7201fb3bbd612d9c03968b8a994bf27b55 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 26 Jul 2018 15:13:44 -0400 Subject: [PATCH] Clarify to_v0_p2wsh docs a bit further --- src/blockdata/script.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blockdata/script.rs b/src/blockdata/script.rs index 211ba62..20eede6 100644 --- a/src/blockdata/script.rs +++ b/src/blockdata/script.rs @@ -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();