CredentialWallet.filterByCredentialSubject() method
Filters given credentials with given credential subject
Signature:
filterByCredentialSubject(credentials: W3CCredential[], subject: DID): Promise<W3CCredential[]>;
Parameters
Parameter | Type | Description |
---|---|---|
credentials | W3CCredential[] | credentials to filter |
subject | DID | credential subject id |
Returns:
Promise<W3CCredential[]>
Promise<W3CCredential[]>