pub enum VerificationError {
UnsupportedCryptosuite(String),
MalformedProof(String),
IssuerMismatch(String),
SignatureInvalid,
Other(String),
}Expand description
Reasons a ProofVerifier rejects a proof.
Mapping to crate::StandardCode for the wire:
UnsupportedCryptosuite / MalformedProof / IssuerMismatch →
crate::StandardCode::ProofInvalid; the consumer composes the
trust-task-error response with that code per SPEC.md §7.2 item 7.
Variants§
UnsupportedCryptosuite(String)
The proof’s cryptosuite is not implemented by this verifier.
MalformedProof(String)
The proof object is structurally invalid for the declared suite
(missing required members, badly-encoded proofValue, etc.).
IssuerMismatch(String)
The verificationMethod does not resolve to material controlled
by the document’s issuer — per SPEC.md §4.8 paragraph 1, the two
MUST identify the same entity.
SignatureInvalid
The signature did not verify over the canonicalised document.
Other(String)
Any other failure surfaced by the underlying cryptosuite implementation.
Trait Implementations§
Source§impl Debug for VerificationError
impl Debug for VerificationError
Source§impl Display for VerificationError
impl Display for VerificationError
Source§impl Error for VerificationError
impl Error for VerificationError
1.30.0 · 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()