CIRALabs / high-assurance-dids-with-dns

Other
0 stars 1 forks source link

Verification Method - history? #43

Open trbouma opened 4 months ago

trbouma commented 4 months ago

Since verificationMethod can support an array, I am wondering if we can add a property to indicate which is current, and which has expired. This way it is possible to have a verification history if someone needs to verify an older doc with the key that was valid at the time.

See example below: A new "id" has been added, and the old "id" has an "expires" attribute.

"verificationMethod": [
     {
      "id": "did:web:trustroot.ca#key-2",
      "type": "Ed25519VerificationKey2018",
      "controller": "did:web:trustroot.ca",
      "publicKeyJwk": {
        "crv": "Ed25519",
        "x": "wwCkQ_BCdECskL2oW0-XiWh5Vkp6tkm5dvp9Ff6vwiU",
        "kty": "OKP"
      }
    ,
    {
      "id": "did:web:trustroot.ca#key-1",
      "type": "Ed25519VerificationKey2018",
      "controller": "did:web:trustroot.ca",
      "publicKeyJwk": {
        "crv": "Ed25519",
        "x": "wwCkQ_BCdECskL2oW0-XiWh5Vkp6tkm5dvp9Ff6vwiU",
        "kty": "OKP"
      },
     "expires": "2024-07-18..."
    }
  ]