pub fn evaluate_state(
cred: &CredentialRecord,
trusted_issuers: &[String],
now_unix: u32,
) -> VerificationStateExpand description
Classify a credential from cheap local facts. Status cache, NOT cryptographic verification (see the module header): no signature, revocation-registry, or proof check is performed.
Precedence:
Revokedif the stored state is alreadyRevoked(revocation is sticky).Expiredifexpires_at_unixis set and<= now_unix.- else
IssuerTrustedifissuer_didis intrusted_issuers. - else
SchemaValidif the credential carries at least one claim. - else
Unverified.