From e37652578ba2aa1109275a92eae96992c9763abb Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 29 Mar 2022 08:58:07 +1100 Subject: [PATCH] Rename PsbtSigHashType -> PsbtSighashType Our usage of `SigHash` implies that 'sighash' is _two_ words; 'sighash' is a well known word in the Bitcoin ecosystem it should appear in identifiers as `Sighash`. Rename `PsbtSigHashType` to `PsbtSighashType`. --- src/util/psbt/map/input.rs | 52 +++++++++++++++++++------------------- src/util/psbt/map/mod.rs | 2 +- src/util/psbt/mod.rs | 2 +- src/util/psbt/serialize.rs | 10 ++++---- 4 files changed, 33 insertions(+), 33 deletions(-) diff --git a/src/util/psbt/map/input.rs b/src/util/psbt/map/input.rs index 5733f71f..d0f22f3e 100644 --- a/src/util/psbt/map/input.rs +++ b/src/util/psbt/map/input.rs @@ -95,7 +95,7 @@ pub struct Input { pub partial_sigs: BTreeMap, /// The sighash type to be used for this input. Signatures for this input /// must use the sighash type. - pub sighash_type: Option, + pub sighash_type: Option, /// The redeem script for this input. pub redeem_script: Option