Closed borisrizov-zf closed 2 months ago
updated did document:
{
"assertionMethod": [
"did:web:localhost:BPNL000000000000#719273e5-f1d4-4a48-b981-c29f47d99d60",
"did:web:localhost:BPNL000000000000#a14a1135-09d7-4ff1-9896-2336f915a698"
],
"id": "did:web:localhost:BPNL000000000000",
"verificationMethod": [
{
"publicKeyJwk": {
"kty": "OKP",
"crv": "Ed25519",
"x": "J7bSq0d5Vq7hfGJNBv7W-JLf6YndRLC2JGLLFi0f7-A"
},
"controller": "did:web:localhost:BPNL000000000000",
"id": "did:web:localhost:BPNL000000000000#719273e5-f1d4-4a48-b981-c29f47d99d60",
"type": "JsonWebKey2020"
},
{
"publicKeyJwk": {
"crv": "secp256k1",
"y": "KYE6l0muY7iVCbyipjo3r-6oro5UKi5THbOH5AQGiI8",
"x": "O8z3qeiui-zJy2-rf98j3-vchUK_G6RZz1vSGltFC0o",
"kty": "EC"
},
"controller": "did:web:localhost:BPNL000000000000",
"id": "did:web:localhost:BPNL000000000000#a14a1135-09d7-4ff1-9896-2336f915a698",
"type": "JsonWebKey2020"
}
],
"@context": [
"https://www.w3.org/ns/did/v1",
"https://w3c.github.io/vc-jws-2020/contexts/v1"
],
"service": [
{
"serviceEndpoint": "https://localhost/api/token",
"id": "did:web:localhost:BPNL000000000000#SecurityTokenService",
"type": "SecurityTokenService"
},
{
"serviceEndpoint": "https://localhost",
"id": "did:web:localhost:BPNL000000000000#CredentialService",
"type": "CredentialService"
}
]
}
Description
The current implementation of the MIW doesn't fully describe the DID document. The
verificationMethod
field and theassertionMethod
field must be optimised.Acceptance Criteria
Ed25519
and thesecp256k1
curve keys must be present in theverificationMethod
of a did documentassertionMethod
JsonWebKey2020
verification method typepublicKeyJwk
format to express the public keyid
inside theassertionMethod
field or they can be embedded (JsonWebKey2020
type)Additional Information
Examples:
VerificationMethod with one embedded public key (Ed25519) in JsonWebKey2020 format and a reference inside the assertionMethod
Same as above, but a 'secp256k1' key