@@ -38,12 +38,12 @@ export function ecdsaJcs2019Algorithms() {
38
38
const [ issuer ] = endpoints ;
39
39
let issuedVc ;
40
40
let proofs ;
41
- let ecdsa2022Proofs = [ ] ;
41
+ let jcs2019Proofs = [ ] ;
42
42
before ( async function ( ) {
43
43
issuedVc = await createInitialVc ( { issuer, vc : validCredential } ) ;
44
44
proofs = getProofs ( issuedVc ) ;
45
45
if ( proofs ?. length ) {
46
- ecdsa2022Proofs = proofs . filter (
46
+ jcs2019Proofs = proofs . filter (
47
47
proof => proof ?. cryptosuite === cryptosuite ) ;
48
48
}
49
49
} ) ;
@@ -52,7 +52,7 @@ export function ecdsaJcs2019Algorithms() {
52
52
should . exist ( issuedVc , 'Expected issuer to have issued a ' +
53
53
'credential.' ) ;
54
54
should . exist ( proofs , 'Expected credential to have a proof.' ) ;
55
- ecdsa2022Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
55
+ jcs2019Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
56
56
'ecdsa-jcs-2019 cryptosuite.' ) ;
57
57
} ;
58
58
it ( 'The transformation options MUST contain a type identifier ' +
@@ -61,7 +61,7 @@ export function ecdsaJcs2019Algorithms() {
61
61
async function ( ) {
62
62
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#transformation-ecdsa-jcs-2019' ;
63
63
assertBefore ( ) ;
64
- for ( const proof of ecdsa2022Proofs ) {
64
+ for ( const proof of jcs2019Proofs ) {
65
65
should . exist ( proof . type , 'Expected a type identifier on ' +
66
66
'the proof.' ) ;
67
67
should . exist ( proof . cryptosuite ,
@@ -73,7 +73,7 @@ export function ecdsaJcs2019Algorithms() {
73
73
async function ( ) {
74
74
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#transformation-ecdsa-jcs-2019' ;
75
75
assertBefore ( ) ;
76
- for ( const proof of ecdsa2022Proofs ) {
76
+ for ( const proof of jcs2019Proofs ) {
77
77
should . exist ( proof ?. proofValue ,
78
78
'Expected proofValue to exist.' ) ;
79
79
isValidUtf8 ( proof . proofValue ) . should . equal (
@@ -89,7 +89,7 @@ export function ecdsaJcs2019Algorithms() {
89
89
async function ( ) {
90
90
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#transformation-ecdsa-jcs-2019' ;
91
91
assertBefore ( ) ;
92
- for ( const proof of ecdsa2022Proofs ) {
92
+ for ( const proof of jcs2019Proofs ) {
93
93
should . exist ( proof . type ,
94
94
'Expected a type identifier on the proof.' ) ;
95
95
should . exist ( proof . cryptosuite ,
@@ -116,12 +116,12 @@ export function ecdsaJcs2019Algorithms() {
116
116
const [ issuer ] = endpoints ;
117
117
let issuedVc ;
118
118
let proofs ;
119
- let ecdsa2022Proofs = [ ] ;
119
+ let jcs2019Proofs = [ ] ;
120
120
before ( async function ( ) {
121
121
issuedVc = await createInitialVc ( { issuer, vc : validCredential } ) ;
122
122
proofs = getProofs ( issuedVc ) ;
123
123
if ( proofs ?. length ) {
124
- ecdsa2022Proofs = proofs . filter (
124
+ jcs2019Proofs = proofs . filter (
125
125
proof => proof ?. cryptosuite === cryptosuite ) ;
126
126
}
127
127
} ) ;
@@ -130,7 +130,7 @@ export function ecdsaJcs2019Algorithms() {
130
130
should . exist ( issuedVc , 'Expected issuer to have issued a ' +
131
131
'credential.' ) ;
132
132
should . exist ( proofs , 'Expected credential to have a proof.' ) ;
133
- ecdsa2022Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
133
+ jcs2019Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
134
134
'ecdsa-jcs-2019 cryptosuite.' ) ;
135
135
} ;
136
136
it ( 'The proof options MUST contain a type identifier for the ' +
@@ -139,7 +139,7 @@ export function ecdsaJcs2019Algorithms() {
139
139
async function ( ) {
140
140
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#proof-configuration-ecdsa-jcs-2019' ;
141
141
assertBefore ( ) ;
142
- for ( const proof of ecdsa2022Proofs ) {
142
+ for ( const proof of jcs2019Proofs ) {
143
143
should . exist ( proof . type ,
144
144
'Expected a type identifier on the proof.' ) ;
145
145
should . exist ( proof . cryptosuite ,
@@ -153,7 +153,7 @@ export function ecdsaJcs2019Algorithms() {
153
153
async function ( ) {
154
154
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#proof-configuration-ecdsa-jcs-2019' ;
155
155
assertBefore ( ) ;
156
- for ( const proof of ecdsa2022Proofs ) {
156
+ for ( const proof of jcs2019Proofs ) {
157
157
should . exist ( proof . type ,
158
158
'Expected a type identifier on the proof.' ) ;
159
159
should . exist ( proof . cryptosuite ,
@@ -169,7 +169,7 @@ export function ecdsaJcs2019Algorithms() {
169
169
'SHOULD convey an error type of PROOF_GENERATION_ERROR.' ,
170
170
async function ( ) {
171
171
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#proof-configuration-ecdsa-jcs-2019' ;
172
- for ( const proof of ecdsa2022Proofs ) {
172
+ for ( const proof of jcs2019Proofs ) {
173
173
if ( proof ?. created ) {
174
174
isValidDatetime ( proof . created ) . should . equal (
175
175
true ,
@@ -194,12 +194,12 @@ export function ecdsaJcs2019Algorithms() {
194
194
const [ issuer ] = endpoints ;
195
195
let issuedVc ;
196
196
let proofs ;
197
- let ecdsa2022Proofs = [ ] ;
197
+ let jcs2019Proofs = [ ] ;
198
198
before ( async function ( ) {
199
199
issuedVc = await createInitialVc ( { issuer, vc : validCredential } ) ;
200
200
proofs = getProofs ( issuedVc ) ;
201
201
if ( proofs ?. length ) {
202
- ecdsa2022Proofs = proofs . filter (
202
+ jcs2019Proofs = proofs . filter (
203
203
proof => proof ?. cryptosuite === cryptosuite ) ;
204
204
}
205
205
} ) ;
@@ -208,7 +208,7 @@ export function ecdsaJcs2019Algorithms() {
208
208
should . exist ( issuedVc , 'Expected issuer to have issued a ' +
209
209
'credential.' ) ;
210
210
should . exist ( proofs , 'Expected credential to have a proof.' ) ;
211
- ecdsa2022Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
211
+ jcs2019Proofs . length . should . be . gte ( 1 , 'Expected at least one ' +
212
212
'ecdsa-jcs-2019 cryptosuite.' ) ;
213
213
} ;
214
214
it ( 'The proof options MUST contain a type identifier for the ' +
@@ -217,7 +217,7 @@ export function ecdsaJcs2019Algorithms() {
217
217
async function ( ) {
218
218
this . test . link = 'https://www.w3.org/TR/vc-di-ecdsa/#proof-serialization-ecdsa-jcs-2019' ;
219
219
assertBefore ( ) ;
220
- for ( const proof of ecdsa2022Proofs ) {
220
+ for ( const proof of jcs2019Proofs ) {
221
221
should . exist ( proof . type ,
222
222
'Expected a type identifier on the proof.' ) ;
223
223
}
0 commit comments