fix: improve comment accuracy in ecdsa-psbt example
What changed, and why it matters
This commit fixes two typos in code comments within an example file. One misspelled word ('scep' instead of 'secp') and one grammar issue ('an watch-only' instead of 'a watch-only') were corrected. There are no code behavior changes, no security fixes, and no functional impact.
No security action needed. This is a documentation/comment-only cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies only comments in bitcoin/examples/ecdsa-psbt.rs. It corrects ‘scep context’ to ‘secp context’ and ‘an watch-only online wallet’ to ‘a watch-only online wallet’. No executable code, APIs, cryptography, or logic changed.
Changed components
bitcoin/examples/ecdsa-psbt.rsInspect captured patch +2 / −2
diff --git a/bitcoin/examples/ecdsa-psbt.rs b/bitcoin/examples/ecdsa-psbt.rs
index d67d194c..db11c582 100644
--- a/bitcoin/examples/ecdsa-psbt.rs
+++ b/bitcoin/examples/ecdsa-psbt.rs
@@ -90,7 +90,7 @@ fn main() -> Result<()> {
Ok(())
}
-// We cache the pubkeys for convenience because it requires a scep context to convert the private key.
+// We cache the pubkeys for convenience because it requires a secp context to convert the private key.
/// An example of an offline signer i.e., a cold-storage device.
struct ColdStorage {
/// The master extended private key.
@@ -150,7 +150,7 @@ impl ColdStorage {
}
}
-/// An example of an watch-only online wallet.
+/// An example of a watch-only online wallet.
struct WatchOnly {
/// The xpub for account 0 derived from derivation path "m/84h/0h/0h".
account_0_xpub: Xpub,
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.