Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"canonicalize": "^1.0.8",
"chai": "^4.3.6",
"credentials-context": "^2.0.0",
"data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion",
"data-integrity-test-suite-assertion": "github:w3c-ccg/data-integrity-test-suite-assertion#make-vc-gen-suite-configurable",
"ed25519-signature-2018-context": "^1.1.0",
"ed25519-signature-2020-context": "^1.1.0",
"jsonld": "^8.1.0",
Expand Down
19 changes: 19 additions & 0 deletions tests/05-di-ed25519-create.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*!
* Copyright (c) 2022-2024 Digital Bazaar, Inc.
* SPDX-License-Identifier: BSD-3-Clause
*/
import {
checkDataIntegrityProofFormat
} from 'data-integrity-test-suite-assertion';
import {endpoints} from 'vc-test-suite-implementations';
import {tag} from './test-config.js';

// only use implementations with `Ed25519 2020` issuers.
const {match} = endpoints.filterByTag({tags: [tag], property: 'issuers'});

checkDataIntegrityProofFormat({
implemented: match, tag,
expectedProofTypes: ['Ed25519Signature2020'],
expectedCryptoSuite: false
});

8 changes: 0 additions & 8 deletions tests/10-create.js → tests/10-ed25519-create.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
*/
import {bs58Decode, getPublicKeyBytes} from './helpers.js';
import chai from 'chai';
import {
checkDataIntegrityProofFormat
} from 'data-integrity-test-suite-assertion';
import {endpoints} from 'vc-test-suite-implementations';
import {generateTestData} from './vc-generator/index.js';
import {klona} from 'klona';
Expand All @@ -23,11 +20,6 @@ describe('Ed25519Signature2020 (create)', function() {
const credentials = await generateTestData();
validVc = credentials.get('validVc');
});
checkDataIntegrityProofFormat({
implemented: match, tag,
expectedProofTypes: ['Ed25519Signature2020'],
expectedCryptoSuite: false
});

describe('Ed25519Signature2020 (issuer)', function() {
// this will tell the report
Expand Down
16 changes: 16 additions & 0 deletions tests/15-di-ed25519-verify.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {
checkDataIntegrityProofVerifyErrors
} from 'data-integrity-test-suite-assertion';
import {endpoints} from 'vc-test-suite-implementations';
import {tag} from './test-config.js';

// only use implementations with `Ed25519 2020` verifiers.
const {match} = endpoints.filterByTag({
tags: [tag],
property: 'verifiers'
});

checkDataIntegrityProofVerifyErrors({
implemented: match,
expectedProofType: 'Ed25519Signature2020'
});
7 changes: 0 additions & 7 deletions tests/20-verify.js → tests/20-ed25519-verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
*/
import {bs58Decode, bs58Encode} from './helpers.js';
import {verificationFail, verificationSuccess} from './assertions.js';
import {
checkDataIntegrityProofVerifyErrors
} from 'data-integrity-test-suite-assertion';
import {endpoints} from 'vc-test-suite-implementations';
import {generateTestData} from './vc-generator/index.js';
import {klona} from 'klona';
Expand All @@ -28,10 +25,6 @@ describe('Ed25519Signature2020 (verify)', function() {
incorrectCannonization = credentials.get('canonizeJcs');
incorrectHash = credentials.get('digestSha512');
});
checkDataIntegrityProofVerifyErrors({
implemented: match,
expectedProofType: 'Ed25519Signature2020'
});

describe('Ed25519Signature2020 (verifier)', function() {
// this will tell the report
Expand Down
File renamed without changes.