File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,11 @@ export function commonAlgorithms({
23
23
} ) {
24
24
const title = `${ suiteName } - Algorithms Common - VC ${ vcVersion } ` ;
25
25
return describe ( title , function ( ) {
26
+ this . matrix = true ;
27
+ this . report = true ;
28
+ this . implemented = [ ] ;
29
+ this . rowLabel = 'Test Name' ;
30
+ this . columnLabel = 'Implementation' ;
26
31
const credentials = new Map ( keyTypes . map ( keyType => [ keyType , null ] ) ) ;
27
32
before ( async function ( ) {
28
33
for ( const keyType of keyTypes ) {
@@ -39,6 +44,7 @@ export function commonAlgorithms({
39
44
} ) ;
40
45
for ( const [ name , { endpoints} ] of verifiers ) {
41
46
const [ verifier ] = endpoints ;
47
+ this . implemented . push ( `${ name } ` ) ;
42
48
describe ( `${ name } ` , function ( ) {
43
49
beforeEach ( function ( ) {
44
50
this . currentTest . cell = {
@@ -345,6 +351,7 @@ function invalidHashProxy({
345
351
cryptosuite, document, proof,
346
352
documentLoader, dataIntegrityProof
347
353
} = { } ) {
354
+ // this switch the hash to the wrong hash for that keyType
348
355
const algorithm = ( keyType === 'P-256' ) ? 'sha384' : 'sha256' ;
349
356
const c14nOptions = {
350
357
documentLoader,
You can’t perform that action at this time.
0 commit comments