Trait ssi_claims::ValidateProof
source · pub trait ValidateProof<V, T> {
// Required method
async fn validate_proof<'a>(
&'a self,
verifier: &'a V,
claims: &'a T,
) -> Result<Result<(), InvalidProof>, ProofValidationError>;
}
Expand description
Proof that can be validated against T
claims with a verifier of type V
.
Required Methods§
sourceasync fn validate_proof<'a>(
&'a self,
verifier: &'a V,
claims: &'a T,
) -> Result<Result<(), InvalidProof>, ProofValidationError>
async fn validate_proof<'a>( &'a self, verifier: &'a V, claims: &'a T, ) -> Result<Result<(), InvalidProof>, ProofValidationError>
Validates the input claim’s proof using the given verifier.
The returned value is a nested Result
.
The outer Result
describes whether or not the proof could be verified.
A proof may be valid even if the outer value is Err
.
The inner Result
describes the validity of the proof itself.
A proof is surely valid if the inner value is Ok
.
Object Safety§
This trait is not object safe.