Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.