What changed, and why it matters
This commit fixes a one-letter typo in a documentation comment. The comment incorrectly said 'P2WPSH' and now correctly says 'P2WSH' (Pay-to-Witness-Script-Hash), matching the function name it describes. There is no code change and no security impact.
No action needed. This is a cosmetic documentation typo fix with no security or functional relevance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A single documentation comment in bitcoin/src/blockdata/script/witness_program.rs was corrected from ‘P2WPSH’ to ‘P2WSH’ for the is_p2wsh() method. The diff changes one character in a comment; no executable code, logic, or API behavior is modified.
Changed components
bitcoin/src/blockdata/script/witness_program.rs documentation commentInspect captured patch +1 / −1
diff --git a/bitcoin/src/blockdata/script/witness_program.rs b/bitcoin/src/blockdata/script/witness_program.rs
index e43e12c3..89f2f854 100644
--- a/bitcoin/src/blockdata/script/witness_program.rs
+++ b/bitcoin/src/blockdata/script/witness_program.rs
@@ -133,7 +133,7 @@ impl WitnessProgram {
self.version == WitnessVersion::V0 && self.program.len() == 20
}
- /// Returns true if this witness program is for a P2WPSH output.
+ /// Returns true if this witness program is for a P2WSH output.
pub fn is_p2wsh(&self) -> bool {
self.version == WitnessVersion::V0 && self.program.len() == 32
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.