#[non_exhaustive]pub enum VerifyError {
Invalid {
checker: CheckerId,
key: SigningKeyId,
},
UnknownKey(SigningKeyId),
MalformedKey {
key: SigningKeyId,
detail: String,
},
Encode(String),
}Expand description
Verification failed, so the evidence proves nothing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
The signature does not match the evidence under the given key.
Says nothing about which field was altered, and cannot: a signature is over the whole pre-image. What it does say is that this evidence is not what the key signed.
Fields
§
key: SigningKeyIdThe key it claims to be signed by.
UnknownKey(SigningKeyId)
The evidence names a key the verifier does not have.
Not a failure of the evidence. An auditor missing a public key has an incomplete key ring, and treating that as tampering would be wrong — which is why it is its own variant.
MalformedKey
The public key bytes are not a valid ed25519 point.
Encode(String)
The evidence could not be canonically encoded, so the pre-image the signature covers cannot be reconstructed.
Trait Implementations§
Source§impl Clone for VerifyError
impl Clone for VerifyError
Source§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
impl Eq for VerifyError
Source§impl Error for VerifyError
impl Error for VerifyError
1.30.0 · 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 PartialEq for VerifyError
impl PartialEq for VerifyError
impl StructuralPartialEq for VerifyError
Auto Trait Implementations§
impl Freeze for VerifyError
impl RefUnwindSafe for VerifyError
impl Send for VerifyError
impl Sync for VerifyError
impl Unpin for VerifyError
impl UnsafeUnpin for VerifyError
impl UnwindSafe for VerifyError
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