Skip to main content

ICredentialWallet.filterByCredentialSubject() method

Filters given credentials with given credential subject

Signature:

filterByCredentialSubject(credentials: W3CCredential[], subject: DID): Promise<W3CCredential[]>;

Parameters

ParameterTypeDescription
credentialsW3CCredential[]credentials to filter
subjectDIDcredential subject id

Returns:

Promise<W3CCredential[]>

Promise<W3CCredential[]>