Skip to content

Commit 468b787

Browse files
committed
SigHashType -> SighashType
1 parent 229be29 commit 468b787

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/pset/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub enum Error {
6565
actual: Txid,
6666
},
6767
/// Unable to parse as a standard SigHash type.
68-
NonStandardSigHashType(u32),
68+
NonStandardSighashType(u32),
6969
/// Parsing errors from bitcoin_hashes
7070
HashParseError(hashes::Error),
7171
/// The pre-image must hash to the correponding pset hash
@@ -129,7 +129,7 @@ impl fmt::Display for Error {
129129
expected: ref e,
130130
actual: ref a,
131131
} => write!(f, "different id: expected {}, actual {}", e, a),
132-
Error::NonStandardSigHashType(ref sht) => {
132+
Error::NonStandardSighashType(ref sht) => {
133133
write!(f, "non-standard sighash type: {}", sht)
134134
}
135135
Error::InvalidMagic => f.write_str("invalid magic"),

src/sighash.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub enum Error {
147147
WrongAnnex,
148148

149149
/// Invalid Sighash type
150-
InvalidSigHashType(u8),
150+
InvalidSighashType(u8),
151151
}
152152

153153
impl fmt::Display for Error {
@@ -160,7 +160,7 @@ impl fmt::Display for Error {
160160
Error::PrevoutIndex => write!(f, "The index requested is greater than available prevouts or different from the provided [Provided::Anyone] index"),
161161
Error::PrevoutKind => write!(f, "A single prevout has been provided but all prevouts are needed without `ANYONECANPAY`"),
162162
Error::WrongAnnex => write!(f, "Annex must be at least one byte long and the first bytes must be `0x50`"),
163-
Error::InvalidSigHashType(hash_ty) => write!(f, "Invalid schnorr Signature hash type : {} ", hash_ty),
163+
Error::InvalidSighashType(hash_ty) => write!(f, "Invalid schnorr Signature hash type : {} ", hash_ty),
164164
}
165165
}
166166
}
@@ -588,7 +588,7 @@ impl<R: Deref<Target = Transaction>> SighashCache<R> {
588588

589589
/// Encodes the signing data from which a signature hash for a given input index with a given
590590
/// sighash flag can be computed. To actually produce a scriptSig, this hash needs to be run
591-
/// through an ECDSA signer, the SigHashType appended to the resulting sig, and a script
591+
/// through an ECDSA signer, the SighashType appended to the resulting sig, and a script
592592
/// written around this, but this is the general (and hard) part.
593593
///
594594
/// *Warning* This does NOT attempt to support OP_CODESEPARATOR. In general this would require
@@ -675,7 +675,7 @@ impl<R: Deref<Target = Transaction>> SighashCache<R> {
675675

676676
/// Computes a signature hash for a given input index with a given sighash flag.
677677
/// To actually produce a scriptSig, this hash needs to be run through an
678-
/// ECDSA signer, the SigHashType appended to the resulting sig, and a
678+
/// ECDSA signer, the SighashType appended to the resulting sig, and a
679679
/// script written around this, but this is the general (and hard) part.
680680
/// Does not take a mutable reference because it does not do any caching.
681681
///

0 commit comments

Comments
 (0)