We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e7d479 commit 35d0b7aCopy full SHA for 35d0b7a
lightning/src/ln/script.rs
@@ -86,7 +86,10 @@ impl ShutdownScript {
86
Self(ShutdownScriptImpl::Bolt2(Script::new_v0_wsh(script_hash)))
87
}
88
89
- /// Generates a P2WSH script pubkey from the given segwit version and program.
+ /// Generates a witness script pubkey from the given segwit version and program.
90
+ ///
91
+ /// Note for version-zero witness scripts you must use [`ShutdownScript::new_p2wpkh`] or
92
+ /// [`ShutdownScript::new_p2wsh`] instead.
93
///
94
/// # Errors
95
0 commit comments