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 did:key for BLS 12381 G2 #276

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Add did:key for BLS 12381 G2 #276

merged 1 commit into from
Sep 8, 2021

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Sep 2, 2021

This adds support for resolving and generating did:key:zUC7 (BLS 12381 G2 public key), using JWK.

There is no dependency added yet or new cryptographic operations taking place, only conversion between did:key and JWK.

These changes aim to use the JWK format in https://datatracker.ietf.org/doc/draft-denhartog-pairing-curves-jose-cose/ (https://github.com/mattrglobal/bls12381-jwk-draft). The BBS+ Signature Suite 2020 is expected to be updated to use this JWK format: w3c/vc-di-bbs#58. For now they are slightly different. I am assuming that the bytes in the JWK "x" parameter are the same 96 bytes (compressed G2 public key) that are used in the did:key string, but this should be confirmed.

@bumblefudge
Copy link
Contributor

Nota bene @kdenhartog

@clehner clehner marked this pull request as ready for review September 7, 2021 13:06
@wyc wyc merged commit 6d82e3e into main Sep 8, 2021
@wyc wyc deleted the feat/did-key-bls branch September 8, 2021 13:42
@clehner clehner mentioned this pull request Apr 11, 2022
15 tasks
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.

4 participants