What changed, and why it matters
This commit fixes four spelling mistakes where 'PSBT' was incorrectly written as 'PBST' in documentation comments and an error message string. It does not change any program logic, data handling, or security behavior.
No security action needed. Treat as a normal documentation cleanup commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff is a pure documentation/typo correction in bitcoin/src/psbt/mod.rs. It changes three doc comments and one Display format string from ‘PBST’ to ‘PSBT’. No code paths, signatures, parsing, validation, or cryptographic operations are modified.
Changed components
bitcoin/src/psbt/mod.rs documentation and error display textInspect captured patch +4 / −4
diff --git a/bitcoin/src/psbt/mod.rs b/bitcoin/src/psbt/mod.rs
index dae3a789..e44c66a0 100644
--- a/bitcoin/src/psbt/mod.rs
+++ b/bitcoin/src/psbt/mod.rs
@@ -671,7 +671,7 @@ impl Psbt {
Ok(output_type.signing_algorithm())
}
- /// Returns the [`OutputType`] of the spend utxo for this PBST's input at `input_index`.
+ /// Returns the [`OutputType`] of the spend utxo for this PSBT's input at `input_index`.
fn output_type(&self, input_index: usize) -> Result<OutputType, SignError> {
let input = self.checked_input(input_index)?;
let utxo = self.spend_utxo(input_index)?;
@@ -1088,7 +1088,7 @@ impl fmt::Display for SignError {
match *self {
IndexOutOfBounds(ref e) => write_err!(f, "index out of bounds"; e),
InvalidSighashType => write!(f, "invalid sighash type"),
- MissingInputUtxo => write!(f, "missing input utxo in PBST"),
+ MissingInputUtxo => write!(f, "missing input utxo in PSBT"),
MissingRedeemScript => write!(f, "missing redeem script"),
MissingSpendUtxo => write!(f, "missing spend utxo in PSBT"),
MissingWitnessScript => write!(f, "missing witness script"),
@@ -1213,14 +1213,14 @@ pub enum IndexOutOfBoundsError {
Inputs {
/// Attempted index access.
index: usize,
- /// Length of the PBST inputs vector.
+ /// Length of the PSBT inputs vector.
length: usize,
},
/// The index is out of bounds for the `psbt.unsigned_tx.input` vector.
TxInput {
/// Attempted index access.
index: usize,
- /// Length of the PBST's unsigned transaction input vector.
+ /// Length of the PSBT's unsigned transaction input vector.
length: usize,
},
}
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.