microsoft/did-ccf

Incorrect identifier format for JWK

Opened this issue · 0 comments

Describe the bug
The kid of the JWKs included in the controller document incorrectly includes the # which is used by relative DID URLs. This should be removed.

To Reproduce

"publicKeyJwk": {
    "crv": "Ed25519",
    "kid": "#p4U5jGNxVwia",
    "kty": "OKP",
    "x": "YcE5uHJk07w6lGs7_ym5bU7qmsVOVl_6ZIrTpsvhWTk"
}

Expected behavior

"publicKeyJwk": {
    "crv": "Ed25519",
    "kid": "p4U5jGNxVwia",
    "kty": "OKP",
    "x": "YcE5uHJk07w6lGs7_ym5bU7qmsVOVl_6ZIrTpsvhWTk"
}