pub enum SignError {
Io(Error),
Json(Error),
Base64(DecodeError),
Signature(SignatureError),
InvalidKey(String),
VerificationFailed(String),
HashMismatch {
expected: String,
actual: String,
},
NoSignatures,
InvalidFormat(String),
}Expand description
The main error type for rust-sign operations.
Variants§
Io(Error)
Error reading or writing files.
Json(Error)
Error with JSON serialization/deserialization.
Base64(DecodeError)
Error with base64 encoding/decoding.
Signature(SignatureError)
Error with Ed25519 signature operations.
InvalidKey(String)
Invalid key format or length.
VerificationFailed(String)
Signature verification failed.
HashMismatch
Document hash mismatch.
NoSignatures
No signatures present in document.
InvalidFormat(String)
Invalid signature format or structure.
Trait Implementations§
Source§impl Error for SignError
impl Error for SignError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<DecodeError> for SignError
impl From<DecodeError> for SignError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignError
impl !RefUnwindSafe for SignError
impl Send for SignError
impl Sync for SignError
impl Unpin for SignError
impl !UnwindSafe for SignError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more