Skip to content

Commit f32e4f5

Browse files
committed
Start work on invalidProofArray.
1 parent f4cacbf commit f32e4f5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/suites/algorithms-sd.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,11 @@ export function sd2023Algorithms({
179179
'MUST be raised and SHOULD convey an error type of ' +
180180
'PROOF_VERIFICATION_ERROR.', async function() {
181181
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=array%20of%20integers%20%E2%80%94-,an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_VERIFICATION_ERROR.,-Replace%20the%20fourth';
182-
this.test.cell.skipMessage = 'Not Implemented';
183-
this.skip();
182+
await assertions.verificationFail({
183+
verifier,
184+
credential: fixtures.get(keyType).get('invalidProofArray'),
185+
reason: 'Should not verify proofValue array missing elements'
186+
});
184187
});
185188
it('The transformation options MUST contain a type identifier for ' +
186189
'the cryptographic suite (type), a cryptosuite identifier ' +
@@ -351,5 +354,6 @@ async function _setup({
351354
// invalid 3 byte header
352355
invalidProofValueHeader.proof.proofValue = `u${encodeBs64Url(invalidBuffer)}`;
353356
credentials.set('invalidDisclosureProofHeader', invalidProofValueHeader);
357+
const invalidProofArray = structuredClone(securedCredential);
354358
return credentials;
355359
}

0 commit comments

Comments
 (0)