Trait ssi_claims::ValidateClaims
source · pub trait ValidateClaims<E, P = ()> {
// Provided method
fn validate_claims(
&self,
_environment: &E,
_proof: &P,
) -> Result<(), InvalidClaims> { ... }
}
Expand description
Claims that can be validated.
This consists in verifying that the claims themselves are consistent and valid with regard to the verification environment. For instance, checking that a credential’s expiration date is not in the past, or the issue date not in the future.
Validation may fail even if the claims’s proof is successfully verified.
The validate
function is also provided with the proof, as some claim type
require information from the proof to be validated.