Skip to content

Commit 3d32142

Browse files
committed
Merge branch 'add-algorithm-suites' into algo-ecdsa-jcs-2019
2 parents 61eee84 + 89fc2a3 commit 3d32142

File tree

2 files changed

+294
-152
lines changed

2 files changed

+294
-152
lines changed

tests/90-algorithms.js

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
* Copyright 2024 Digital Bazaar, Inc.
33
* SPDX-License-Identifier: BSD-3-Clause
44
*/
5-
import {ecdsaRdfc2019Algorithms} from './suites/algorithms.js';
5+
import {
6+
commonAlgorithms,
7+
ecdsaRdfc2019Algorithms
8+
} from './suites/algorithms.js';
69
import {endpoints} from 'vc-test-suite-implementations';
710
import {getSuiteConfig} from './test-config.js';
811

@@ -22,16 +25,23 @@ for(const suiteName of cryptosuites) {
2225
mandatoryPointers,
2326
selectivePointers
2427
} = credentials.create[vcVersion];
25-
for(const keyType of vectors.keyTypes) {
26-
ecdsaRdfc2019Algorithms({
27-
verifiers,
28-
suiteName,
29-
keyType,
30-
vcVersion,
31-
credential: document,
32-
mandatoryPointers,
33-
selectivePointers
34-
});
35-
}
28+
ecdsaRdfc2019Algorithms({
29+
verifiers,
30+
suiteName,
31+
keyTypes: vectors.keyTypes,
32+
vcVersion,
33+
credential: document,
34+
mandatoryPointers,
35+
selectivePointers
36+
});
37+
commonAlgorithms({
38+
verifiers,
39+
suiteName,
40+
keyTypes: vectors.keyTypes,
41+
vcVersion,
42+
credential: document,
43+
mandatoryPointers,
44+
selectivePointers
45+
});
3646
}
3747
}

0 commit comments

Comments
 (0)