agera-edc / MinimumViableDataspace

Guidance on documentation, scripts and integration steps on using the EDC project results
Apache License 2.0
0 stars 2 forks source link

Web DID: create identity document #136

Closed zeier closed 2 years ago

zeier commented 2 years ago

Feature agera-edc/MinimumViableDataspaceFork#116 After agera-edc/MinimumViableDataspaceFork#112

Description

Every dataspace participant needs to create a JSON document, which represents their DID containing the following items:

An example of such a document (the name of the participant here is "consumer"):

{
  "id": "did:web:edcshowcasegpstorage.z6.web.core.windows.net:consumer",
  "@context": [
    "https://www.w3.org/ns/did/v1",
    {
      "@base": "did:web:edcshowcasegpstorage.z6.web.core.windows.net:consumer"
    }
  ],
  "verificationMethod": [
    {
      "id": "#consumer-key-1",
      "controller": "",
      "type": "JsonWebKey2020",
      "publicKeyJwk": {
        "kty": "EC",
        "crv": "P-256",
        "x": "4mi45pgE5iPdhluNpmtnAFztWi8vxMrDSoXqD5ah2Rk",
        "y": "FdxTvkrkYtmxPgdmFpxRzZSVvcVUEksSzr1cH_kT58w"
      }
    }
  ],
  "authentication": [
    "#consumer-key-1"
  ]
}

That means, that a public/private key pair must be generated beforehand and offline. Furthermore, the URL of the DID document must be known before and templated it at deployment.

The URL to this document will then also be a part of the connector's self description and must be supplied during onboarding (#7).

Preconditions

Acceptance Criteria

Tasks

algattik commented 2 years ago