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 ed15519-*-2020 tests. #118

Open
davidlehn opened this issue Jun 16, 2022 · 1 comment
Open

Add ed15519-*-2020 tests. #118

davidlehn opened this issue Jun 16, 2022 · 1 comment
Assignees

Comments

@davidlehn
Copy link
Member

The test suite is using ed25519-*-2018 packages. The tests should also check using ed25519-*-2020 packages that are used in the README examples.

@aljones15
Copy link
Contributor

There is a branch that is attempting to abstract all the tests into a form so that you can just drop an entry with your cryptosuite and some basic settings and then the cryptosuite will be tested by all assertions: https://github.com/digitalbazaar/vc/tree/vc-2.0-refactor-tests

vc/test/mocks/suites.js

Lines 32 to 54 in bd19ae1

async function eddsaRdfc2022() {
// set up the EDDSA key pair that will be signing and verifying
const keyPair = await EddsaMultikey.generate({
id: 'https://example.edu/issuers/keys/5',
controller: 'https://example.edu/issuers/565049'
});
const keyDoc = await keyPair.export({publicKey: true});
registerKey({keyDoc});
return {
keyDoc,
keyPair,
keyType: 'Ed25519',
suiteName: 'eddsa-rdfc-2022',
cryptosuite: eddsaRdfc2020Cryptosuite,
suites: createSuites({
keyPair,
suiteName: 'eddsa-rdfc-2022',
derived: false,
cryptosuite: eddsaRdfc2020Cryptosuite
}),
derived: false
};
}

@aljones15 aljones15 self-assigned this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants