pub enum VerifyError {
SignatureAbsent,
UnsupportedAlgorithm(String),
Base64(DecodeError),
PubkeyLength(usize),
SignatureLength(usize),
MalformedKey(Error),
SignatureMismatch(Error),
Serialize(Error),
}Expand description
Errors that can arise while verifying a signed RunEvidence.
Variants§
SignatureAbsent
The artifact had no signature field. Distinguished from a
failed cryptographic verification so callers can choose to
treat absence as “needs operator action” rather than a hard
failure.
UnsupportedAlgorithm(String)
The signature payload announced an algorithm tsafe does not understand. Carries the offending value verbatim so error surfaces can report it.
Base64(DecodeError)
The pubkey or signature bytes failed base64url decoding.
PubkeyLength(usize)
The decoded pubkey was not 32 bytes long.
SignatureLength(usize)
The decoded signature was not 64 bytes long.
MalformedKey(Error)
The verifying key bytes were syntactically well-formed but represent a malformed Ed25519 point.
SignatureMismatch(Error)
The signature did not verify against the supplied / embedded pubkey. This is the canonical “tampered or wrong-key” outcome.
Serialize(Error)
Serialisation failure while reconstructing the canonical bytes.
Same caveat as SignError::Serialize — exists only because
the underlying API returns a Result.
Trait Implementations§
Source§impl Debug for VerifyError
impl Debug for VerifyError
Source§impl Display for VerifyError
impl Display for VerifyError
Source§impl Error for VerifyError
impl Error for VerifyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()