File tree Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Expand file tree Collapse file tree 2 files changed +39
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*!
2
+ * Copyright 2024 Digital Bazaar, Inc.
3
+ * SPDX-License-Identifier: BSD-3-Clause
4
+ */
5
+ import { ecdsaRdfc2019Algorithms } from './suites/algorithms.js' ;
6
+ import { endpoints } from 'vc-test-suite-implementations' ;
7
+ import { getSuiteConfig } from './test-config.js' ;
8
+
9
+ const cryptosuites = [
10
+ 'ecdsa-rdfc-2019' ,
11
+ ] ;
12
+
13
+ for ( const suiteName of cryptosuites ) {
14
+ const { tags, credentials, vectors} = getSuiteConfig ( suiteName ) ;
15
+ const { match : verifiers } = endpoints . filterByTag ( {
16
+ tags : [ ...tags ] ,
17
+ property : 'verifiers'
18
+ } ) ;
19
+ for ( const vcVersion of vectors . vcTypes ) {
20
+ const {
21
+ document,
22
+ mandatoryPointers,
23
+ selectivePointers
24
+ } = 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
+ }
36
+ }
37
+ }
Original file line number Diff line number Diff line change @@ -211,14 +211,14 @@ async function _setup({
211
211
await issueCloned ( _generateNoTypeCryptosuite ( {
212
212
signer,
213
213
suiteName,
214
- credential,
214
+ credential : _credential ,
215
215
mandatoryPointers,
216
216
selectivePointers
217
217
} ) ) ) ;
218
218
return credentials ;
219
219
}
220
220
221
- async function _generateNoTypeCryptosuite ( {
221
+ function _generateNoTypeCryptosuite ( {
222
222
signer,
223
223
suiteName,
224
224
credential,
You can’t perform that action at this time.
0 commit comments