From cc84f1f0d13cef784ae1246652f30f7e9452dff3 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 1 Feb 2024 10:54:12 +1100 Subject: [PATCH] Make function private --- src/v2/mod.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/v2/mod.rs b/src/v2/mod.rs index 654524a..6585045 100644 --- a/src/v2/mod.rs +++ b/src/v2/mod.rs @@ -951,9 +951,7 @@ impl Psbt { /// Checks the sighash types of input partial sigs (ECDSA). /// /// This can be used at anytime but is primarily used during PSBT finalizing. - // TODO: Would pub(crate) be better? - // TODO: It would be nice if this was enforced by the typesystem and fields if the `Input`. - pub fn check_partial_sigs_sighash_type(&self) -> Result<(), PartialSigsSighashTypeError> { + pub(crate) fn check_partial_sigs_sighash_type(&self) -> Result<(), PartialSigsSighashTypeError> { use PartialSigsSighashTypeError::*; for (input_index, input) in self.inputs.iter().enumerate() {