#[non_exhaustive]pub struct Error { /* private fields */ }
Available on crate feature
ecdsa-core
only.Expand description
Signature errors.
This type is deliberately opaque as to avoid sidechannel leakage which could potentially be used recover signing private keys or forge signatures (e.g. BB’06).
When the std
feature is enabled, it impls std::error::Error
and
supports an optional std::error::Error::source
, which can be used by
things like remote signers (e.g. HSM, KMS) to report I/O or auth errors.
Implementations§
§impl Error
impl Error
pub fn from_source(
source: impl Into<Box<dyn Error + Sync + Send + 'static, Global>>
) -> Error
Available on crate feature std
only.
pub fn from_source( source: impl Into<Box<dyn Error + Sync + Send + 'static, Global>> ) -> Error
std
only.Create a new error with an associated source.
NOTE: The “source” should NOT be used to propagate cryptographic errors e.g. signature parsing or verification errors. The intended use cases are for propagating errors related to external signers, e.g. communication/authentication errors with HSMs, KMS, etc.
Trait Implementations§
§impl Error for Error
Available on crate feature std
only.
impl Error for Error
Available on crate feature
std
only.§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()