Use scriptPubkey instead of script public key
What changed, and why it matters
This commit only rewords two documentation comments in the source code. It changes the phrase 'script public key (scriptPubKey)' to '`scriptPubKey` (locking script)' to match more common Bitcoin terminology. No code behavior changes, no API changes, and no security implications.
No action required. This is a non-functional documentation terminology cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies two Rust doc comments in primitives/src/script/mod.rs. The type aliases ScriptPubKey and ScriptPubKeyBuf remain unchanged; only their descriptive text is updated. There are no functional changes, no new logic, no bug fixes, and no security-relevant alterations.
Changed components
primitives/src/script/mod.rs documentation commentsInspect captured patch +2 / −2
diff --git a/primitives/src/script/mod.rs b/primitives/src/script/mod.rs
index 92f6ec26..824b5444 100644
--- a/primitives/src/script/mod.rs
+++ b/primitives/src/script/mod.rs
@@ -38,13 +38,13 @@ pub type RedeemScriptBuf = ScriptBuf<RedeemScriptTag>;
/// A reference to a P2SH redeem script.
pub type RedeemScript = Script<RedeemScriptTag>;
-/// A reference to a script public key (scriptPubKey).
+/// A reference to a `scriptPubKey` (locking script).
pub type ScriptPubKey = Script<ScriptPubKeyTag>;
/// A reference to a script signature (scriptSig).
pub type ScriptSig = Script<ScriptSigTag>;
-/// A script public key (scriptPubKey).
+/// A `scriptPubKey` (locking script).
pub type ScriptPubKeyBuf = ScriptBuf<ScriptPubKeyTag>;
/// A script signature (scriptSig).
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.