Skip to content

Commit fe8507e

Browse files
committed
Comment payload missing elements steps.
1 parent f28651e commit fe8507e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/suites/algorithms-sd.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@ async function _setup({
359359
invalidProofValueHeader.proof.proofValue = `u${encodeBs64Url(invalidBuffer)}`;
360360
credentials.set('invalidDisclosureProofHeader', invalidProofValueHeader);
361361
const invalidProofArray = structuredClone(securedCredential);
362+
// parse the existing disclosure proofValue
362363
const params = parseDisclosureProofValue({proof: invalidProofArray.proof});
364+
// create a new proofValue missing 3 elements
363365
invalidProofArray.proof.proofValue = serializeProofValue({
364366
payload: [params.baseSignature, params.publicKey]
365367
});

0 commit comments

Comments
 (0)