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

Implement Ed25519Signature2020 #341

Merged
merged 1 commit into from Nov 4, 2021
Merged

Implement Ed25519Signature2020 #341

merged 1 commit into from Nov 4, 2021

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Nov 1, 2021

Implement and test the CCG's Ed25519 Signature 2020 linked data signature suite.

Ed25519Signature2020 is like Ed25519Signature2018, using linked data canonicalization, but without JWS/JWK:

For more info about the design goals of Ed25519Signature2020, see the proposal from September 2020: https://lists.w3.org/Archives/Public/public-credentials/2020Sep/0008.html

Most of this implementation was demonstrated in https://github.com/w3c-ccg/lds-ed25519-2020/pull/11 (and https://github.com/w3c-ccg/lds-ed25519-2020/pull/10), where it was used to verify the VC test vector in the specification repo, and to regenerate the VP test vector.

- Load ed25519-2020 JSON-LD context
- Sign/verify/prepare/complete Ed25519Signature2020
- Convert Ed25519VerificationKey2020/publicKeyMultibase to JWK
- Verify and regenerate test vectors from specification repo
@clehner clehner marked this pull request as ready for review November 1, 2021 15:57
@clehner clehner requested a review from sbihel November 1, 2021 16:49
src/ldp.rs Show resolved Hide resolved
@clehner clehner merged commit a8bfe5e into main Nov 4, 2021
@clehner clehner deleted the feat/ed2020 branch November 4, 2021 20:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants