match_credentials_pe

Function match_credentials_pe 

Source
pub fn match_credentials_pe(
    credentials: &[CredentialRecord],
    definition: &PresentationDefinition,
) -> Vec<CredentialMatch>
Expand description

Match stored credentials against a Presentation Exchange definition.

For each input descriptor, iterates over stored credentials and returns a CredentialMatch for each credential that satisfies the descriptor’s format and field constraints.