CredentialVerifier

Trait CredentialVerifier 

Source
pub trait CredentialVerifier: Send + Sync {
    // Required methods
    fn format(&self) -> CredentialFormat;
    fn verify(&self, credential_data: &[u8]) -> Result<VerificationOutcome>;
}
Expand description

Trait for verifying credentials in a specific format.

Required Methods§

Source

fn format(&self) -> CredentialFormat

The credential format this verifier handles.

Source

fn verify(&self, credential_data: &[u8]) -> Result<VerificationOutcome>

Verify a credential and return the verification outcome.

§Arguments
  • credential_data - The serialized credential bytes

Implementors§