filter
Generates a new SD-JWT by filtering which claims should be included,
The resulting SD-JWT will be constructed so it satisfies the requirement in section 7.2 which says that each disclosure's hash is either contained in the Issuer-signed JWT claims or in the claim value of another disclosure. Concretely this may mean more disclosures are included than requested via the pathsToInclude function.
Return
the resulting SdJwt.
Parameters
list of paths describing which claims to include.
Generates a new SD-JWT by removing disclosures.
The resulting SD-JWT will be constructed so it satisfies the requirement in section 7.2 which says that each disclosure's hash is either contained in the Issuer-signed JWT claims or in the claim value of another disclosure. Concretely this may mean more disclosures are included than requested via the includeDisclosure function.
For example for fully recursive SD-JWT with the following claims
{
"age_over_or_equal": {
"18": true,
"21": false
}
the hash for the disclosure of the age_over_or_equal.18
is not included in the Issuer-signed JWT claims, instead it's in the disclosure for the age_over_or_equal
value.
Return
the resulting SdJwt.
Parameters
a function to determine if a given disclosure should be included.