Skip to content

Commit

Permalink
refactor: default to filter revoked credentials
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <timo@animo.id>
  • Loading branch information
TimoGlastra committed Feb 16, 2022
1 parent 39a12f4 commit d0ea239
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/src/modules/proofs/ProofsModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export class ProofsModule {

return this.proofService.getRequestedCredentialsForProofRequest(indyProofRequest, {
presentationProposal: presentationPreview,
filterByNonRevocationRequirements: config?.filterByNonRevocationRequirements,
filterByNonRevocationRequirements: config?.filterByNonRevocationRequirements ?? true,
})
}

Expand Down Expand Up @@ -477,12 +477,17 @@ export interface GetRequestedCredentialsConfig {
* Whether to filter the retrieved credentials using the presentation preview.
* This configuration will only have effect if a presentation proposal message is available
* containing a presentation preview.
*
* @default false
*/
filterByPresentationPreview?: boolean

/**
* Whether to filter the retrieved credentials using the non-revocation request in the proof request.
* This configuration will only have effect if the proof request requires proof on non-revocation of any kind.
* Default to true
*
* @default true
*/
filterByNonRevocationRequirements?: boolean
}

0 comments on commit d0ea239

Please sign in to comment.