diff --git a/bitcoin/src/psbt/mod.rs b/bitcoin/src/psbt/mod.rs index 9d83ca90..d5b007c1 100644 --- a/bitcoin/src/psbt/mod.rs +++ b/bitcoin/src/psbt/mod.rs @@ -647,8 +647,6 @@ pub enum SigningAlgorithm { /// Errors encountered while calculating the sighash message. #[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash, Clone)] pub enum SignError { - /// An ECDSA key-related error occurred. - EcdsaSig(ecdsa::Error), /// Input index out of bounds (actual index, maximum index allowed). IndexOutOfBounds(usize, usize), /// Invalid Sighash type. @@ -696,7 +694,6 @@ impl fmt::Display for SignError { NotEcdsa => write!(f, "attempted to ECDSA sign an non-ECDSA input"), NotWpkh => write!(f, "the scriptPubkey is not a P2WPKH script"), SighashComputation(e) => write!(f, "sighash: {}", e), - EcdsaSig(ref e) => write_err!(f, "ecdsa signature"; e), UnknownOutputType => write!(f, "unable to determine the output type"), KeyNotFound => write!(f, "unable to find key"), WrongSigningAlgorithm => write!(f, "attempt to sign an input with the wrong signing algorithm"), @@ -725,7 +722,6 @@ impl std::error::Error for SignError { | KeyNotFound | WrongSigningAlgorithm | Unsupported => None, - EcdsaSig(ref e) => Some(e), SighashComputation(ref e) => Some(e), } } @@ -737,12 +733,6 @@ impl From for SignError { } } -impl From for SignError { - fn from(e: ecdsa::Error) -> Self { - SignError::EcdsaSig(e) - } -} - #[cfg(feature = "base64")] mod display_from_str { use super::{PartiallySignedTransaction, Error};