Skip to content

Commit ccccede

Browse files
committed
Account for keyType when fetching invalid proof header bytes fixture.
1 parent e59889f commit ccccede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/suites/algorithms-sd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ export function sd2023Algorithms({
166166
this.test.link = 'https://w3c.github.io/vc-di-ecdsa/#selective-disclosure-functions:~:text=If%20the%20decodedProofValue%20does%20not%20start%20with%20the%20ECDSA%2DSD%20disclosure%20proof%20header%20bytes%200xd9%2C%200x5d%2C%20and%200x01%2C%20an%20error%20MUST%20be%20raised%20and%20SHOULD%20convey%20an%20error%20type%20of%20PROOF_VERIFICATION_ERROR.';
167167
await assertions.verificationFail({
168168
verifier,
169-
credential: fixtures.get('invalidDisclosureProofHeader'),
169+
credential: fixtures.get(keyType).get(
170+
'invalidDisclosureProofHeader'),
170171
reason: 'Should not verify VC with invalid disclosure proof ' +
171172
'header'
172173
});

0 commit comments

Comments
 (0)