Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ecdsa-sd-2023 issuer proofValue & invalid proof.created test (B -> A) #99

Open
wants to merge 10 commits into
base: algorithm-sd-suite
Choose a base branch
from
40 changes: 40 additions & 0 deletions tests/90-algorithms-sd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*!
* Copyright 2024 Digital Bazaar, Inc.
* SPDX-License-Identifier: BSD-3-Clause
*/
import {endpoints} from 'vc-test-suite-implementations';
import {getSuiteConfig} from './test-config.js';
import {sd2023Algorithms} from './suites/algorithms-sd.js';

const cryptosuites = [
'ecdsa-sd-2023',
];

for(const suiteName of cryptosuites) {
const {tags, credentials, vectors} = getSuiteConfig(suiteName);
const {match: verifiers} = endpoints.filterByTag({
tags: [...tags],
property: 'verifiers'
});
const {match: issuers} = endpoints.filterByTag({
tags: [...tags],
property: 'issuers'
});
for(const vcVersion of vectors.vcTypes) {
const {
document,
mandatoryPointers,
selectivePointers
} = credentials.create[vcVersion];
sd2023Algorithms({
verifiers,
issuers,
suiteName,
keyTypes: vectors.keyTypes,
vcVersion,
credential: document,
mandatoryPointers,
selectivePointers
});
}
}
Loading