chore: fix incorrect comment in sign-tx-taproot.rs
What changed, and why it matters
This commit only fixes a wrong word in a code comment. The example file's comment incorrectly said it constructs a 'p2wpkh' output and referred to a 'wpkh' variable, but the actual code builds a Taproot (p2tr) output using an 'internal_key' variable. No program code was changed, so there is no security impact.
No action needed; this is a non-security documentation cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
A single-line documentation comment in bitcoin/examples/sign-tx-taproot.rs was corrected from ‘Constructs a new p2wpkh output locked to the key associated with wpkh’ to ‘Constructs a new p2tr output locked to the key associated with internal_key’. The diff contains no executable code changes.
Changed components
bitcoin/examples/sign-tx-taproot.rs (comment only)Inspect captured patch +1 / −1
diff --git a/bitcoin/examples/sign-tx-taproot.rs b/bitcoin/examples/sign-tx-taproot.rs
index 00b1bb35..9c5b6017 100644
--- a/bitcoin/examples/sign-tx-taproot.rs
+++ b/bitcoin/examples/sign-tx-taproot.rs
@@ -103,7 +103,7 @@ fn receivers_address() -> Address {
.expect("valid address for mainnet")
}
-/// Constructs a new p2wpkh output locked to the key associated with `wpkh`.
+/// Constructs a new p2tr output locked to the key associated with `internal_key`.
///
/// An utxo is described by the `OutPoint` (txid and index within the transaction that it was
/// created). Using the out point one can get the transaction by `txid` and using the `vout` get the
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.