Skip to content

Commit

Permalink
Remove selectivePointers monkeyPatch from undefinedTerm generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Oct 16, 2024
1 parent 1f5c835 commit d017e83
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vc-generator/generators.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,14 +264,10 @@ function invalidProofPurpose({
return {...args, suite, selectiveSuite, credential, purpose};
}

function undefinedTerm({credential, selectiveSuite, ...args}) {
function undefinedTerm({credential, ...args}) {
const _credential = structuredClone(credential);
_credential.credentialSubject.undefinedTerm = 'undefinedTerm';
if(selectiveSuite) {
selectiveSuite?._cryptosuite?.options?.selectivePointers.push(
'/credentialSubject/undefinedTerm');
}
return {...args, credential: _credential, selectiveSuite};
return {...args, credential: _credential};
}

// adds an invalid domain
Expand Down

0 comments on commit d017e83

Please sign in to comment.