aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

publicKeyBase58 in the verificationMethod is deprecated

Open MajdT51 opened this issue 2 years ago • 1 comments

The publicKeyBase58 in the verificationMethod of resolved DID Documents is deprecated in favor of publicKeyMultibase or publicKeyJwk. Check https://www.w3.org/TR/did-spec-registries/#publickeybase58

Currently when I register a new NYM and resolve it using Acapy the resolved DID Document has the deprecated key publicKeyBase58

curl -X 'GET' \ 'http://localhost:11001/resolver/resolve/did%3Asov%3A8wrwSBq7FS8jHYbECCLwAa' \ -H 'accept: application/json' \ -H 'X-API-KEY: you-api-key'

returns

 {
  "did_document": {
    "@context": [
      "https://www.w3.org/ns/did/v1"
    ],
    "id": "did:sov:8wrwSBq7FS8jHYbECCLwAa",
    "verificationMethod": [
      {
        "id": "did:sov:8wrwSBq7FS8jHYbECCLwAa#key-1",
        "type": "Ed25519VerificationKey2018",
        "controller": "did:sov:8wrwSBq7FS8jHYbECCLwAa",
        "publicKeyBase58": "5LBj3zxLAjbiTgnHhsJtpWj6XemFF4XxG2eynykH6LQr"
      }
    ],
    "authentication": [
      "did:sov:8wrwSBq7FS8jHYbECCLwAa#key-1"
    ],
    "assertionMethod": [
      "did:sov:8wrwSBq7FS8jHYbECCLwAa#key-1"
    ]
  },
  "metadata": {
    "resolver_type": "native",
    "resolver": "IndyDIDResolver",
    "retrieved_time": "2023-01-17T17:03:45Z",
    "duration": 1004
  }
}

MajdT51 avatar Jan 17 '23 17:01 MajdT51

Related to this, I just created issue #3227

securedimensions avatar Sep 11 '24 08:09 securedimensions