Closed OR13 closed 2 years ago
A couple observations...
There is no way to get properties from in the jwk
into the did document... this prevents integration with serviceEndpoints which are useful.
This also makes dereferencing ambiguous, since both:
didDocument.id
and didDocument.verificationMethod[0].id
are identified with the same bytes.
A few more observations...
relationships to https://datatracker.ietf.org/doc/html/rfc7638 should be made explicit.
If you have jwt.header.kid === did:jwk:...
you necessarily cannot have jwt.header.kid === did:jwk:...#key-0
... because fragments are not resolved from within the encode method specific identifier... unless you make your spec say something about parsing the jwk to read kid
.
This is another version of the sub resource identifier encoding problem that was discussed many time during the DID WG.
See also https://github.com/w3c-ccg/did-method-key/issues/24
Also worth pointing out that keyAgreement is not possible with every valid encoding of a JWK.
I would assume:
But it's not clear from your example.
I need to get back something like
did:jwk:encoded....#key-0
I tried to convert did keys to this format... this is what I got: