Struct signature::Error [−][src]
pub struct Error { /* fields omitted */ }
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
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.