diff --git a/src/blockdata/transaction.rs b/src/blockdata/transaction.rs index 94ba47d8..d4cd54d6 100644 --- a/src/blockdata/transaction.rs +++ b/src/blockdata/transaction.rs @@ -871,7 +871,7 @@ impl EcdsaSighashType { pub fn to_u32(self) -> u32 { self as u32 } } -/// Error returned when parsing `SigHashType` fails. +/// Error returned for failure during parsing one of the sighash types. /// /// This is currently returned for unrecognized sighash strings. #[derive(Debug, Clone)] diff --git a/src/util/psbt/error.rs b/src/util/psbt/error.rs index be5aeba2..c281106d 100644 --- a/src/util/psbt/error.rs +++ b/src/util/psbt/error.rs @@ -61,7 +61,7 @@ pub enum Error { /// Actual actual: Box, }, - /// Unable to parse as a standard SigHash type. + /// Unable to parse as a standard sighash type. NonStandardSighashType(u32), /// Parsing errors from bitcoin_hashes HashParseError(hashes::Error), diff --git a/src/util/psbt/mod.rs b/src/util/psbt/mod.rs index 89184d22..38e54759 100644 --- a/src/util/psbt/mod.rs +++ b/src/util/psbt/mod.rs @@ -16,7 +16,7 @@ //! //! Implementation of BIP174 Partially Signed Bitcoin Transaction Format as //! defined at -//! except we define PSBTs containing non-standard SigHash types as invalid. +//! except we define PSBTs containing non-standard sighash types as invalid. //! use core::cmp; diff --git a/src/util/sighash.rs b/src/util/sighash.rs index 228922ce..286e5736 100644 --- a/src/util/sighash.rs +++ b/src/util/sighash.rs @@ -645,7 +645,7 @@ impl> SighashCache { Ok(()) } - /// Computes the legacy sighash for any SigHashType + /// Computes the legacy sighash for any sighash type. pub fn legacy_signature_hash( &self, input_index: usize,