Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Add did core structure support in resolving service endpoints function #3428

Open
mishasizov-SK opened this issue Nov 8, 2022 · 0 comments

Comments

@mishasizov-SK
Copy link
Contributor

Need to add a support of the next structure of services in DID doc:

"service": [
    {
      "id": "#linkeddomains",
      "type": "LinkedDomains",
      "serviceEndpoint": {
        "origins": [
          "https://did.rohitgulati.com/"
        ]
      }
    },
    {
      "id": "#hub",
      "type": "IdentityHub",
      "serviceEndpoint": {
        "instances": [
          "https://hub.did.msidentity.com/v1.0/a492cff2-d733-4057-95a5-a71fc3695bc8"
        ],
        "origins": []
      }
    }
  ]

Doc: https://w3c.github.io/did-core/#service-properties
Did example:

did:ion:EiCB7y_BnrO1nfsfpqlUANEcW8QpcjHWxK3mjiOSbD9ptQ:eyJkZWx0YSI6eyJwYXRjaGVzIjpbeyJhY3Rpb24iOiJyZXBsYWNlIiwiZG9jdW1lbnQiOnsicHVibGljS2V5cyI6W3siaWQiOiI3NzAxMjE2NTAzYjU0MjRjYmNlY2RjN2EyZjQwZDkzOHZjU2lnbmluZ0tleS04NDYxNyIsInB1YmxpY0tleUp3ayI6eyJjcnYiOiJzZWNwMjU2azEiLCJrdHkiOiJFQyIsIngiOiIwaHZfVnZkS1FPd04xT2l4Q0VoOE5Gd2RHdUJMZjZRYWJUenZxZ2VfNWpzIiwieSI6Il8wdTVGUGthTUtKSm5heGU4ZFAxbGNUakJEQ1RHdkdyR21iLU9waDdvY2cifSwicHVycG9zZXMiOlsiYXV0aGVudGljYXRpb24iLCJhc3NlcnRpb25NZXRob2QiXSwidHlwZSI6IkVjZHNhU2VjcDI1NmsxVmVyaWZpY2F0aW9uS2V5MjAxOSJ9XSwic2VydmljZXMiOlt7ImlkIjoibGlua2VkZG9tYWlucyIsInNlcnZpY2VFbmRwb2ludCI6eyJvcmlnaW5zIjpbImh0dHBzOi8vZGlkLnJvaGl0Z3VsYXRpLmNvbS8iXX0sInR5cGUiOiJMaW5rZWREb21haW5zIn0seyJpZCI6Imh1YiIsInNlcnZpY2VFbmRwb2ludCI6eyJpbnN0YW5jZXMiOlsiaHR0cHM6Ly9odWIuZGlkLm1zaWRlbnRpdHkuY29tL3YxLjAvYTQ5MmNmZjItZDczMy00MDU3LTk1YTUtYTcxZmMzNjk1YmM4Il19LCJ0eXBlIjoiSWRlbnRpdHlIdWIifV19fV0sInVwZGF0ZUNvbW1pdG1lbnQiOiJFaUNmNUhGZjR5S0lUcWRzTHpQbDhjcHRObTR5Y1g3dXZjcnBFMW5wWnZ2Qmt3In0sInN1ZmZpeERhdGEiOnsiZGVsdGFIYXNoIjoiRWlETjEyZ1BXcGNfUXJaYk1NSUNpQVJ5aWFqbGRKLXVWTjlqZWRTRWtBbWVzdyIsInJlY292ZXJ5Q29tbWl0bWVudCI6IkVpQWNJQjFTeW83eXE3bDdkYWJ2T2lTdmdnZmpfcGR0SlV2cUgwb05UNVNDSWcifX0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant