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

Usage question: Usage example does not match the mocha tests #104

Open
smithbk opened this issue Aug 11, 2021 · 1 comment
Open

Usage question: Usage example does not match the mocha tests #104

smithbk opened this issue Aug 11, 2021 · 1 comment

Comments

@smithbk
Copy link

smithbk commented Aug 11, 2021

I would like to use vc-js for a simple issuance and verification flows but am not sure which versions of the classes & packages to use.

In the usage section at https://github.com/digitalbazaar/vc-js#usage, it uses Ed25519VerificationKey2020 and Ed25519Signature2020 but I am not able to get the test snippets to work and there is no end-to-end runnable sample.

I am able to run the mocha tests at https://github.com/digitalbazaar/vc-js/blob/master/test/10-verify.spec.js#L7 but they use Ed25519VerificationKey2018 and Ed25519Signature2018.

I assume that I should be using the 2020 newer versions but am not sure what I'd lose by running the older ones. Which should I use? If I should use the 2020 versions, is there or could you provide a runnable sample?

Thanks,
Keith

@dmitrizagidulin
Copy link
Contributor

Hi @smithbk - thanks for the heads up, we'll update the README examples to the correct usage.

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