From 271a4f90d0e795b5d78a78b2348ed17564fe3ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mirko=20Stani=C4=87?= Date: Mon, 17 May 2021 13:18:46 +0200 Subject: [PATCH] Add did:unisot DID Method to the did-test-suite --- .../suites/did-consumption/default.js | 3 +- .../suites/did-core-properties/default.js | 3 +- .../suites/did-identifier/default.js | 3 +- .../suites/did-production/default.js | 3 +- .../suites/implementations/did-unisot.json | 91 +++++++++++++++++++ 5 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 packages/did-core-test-server/suites/implementations/did-unisot.json diff --git a/packages/did-core-test-server/suites/did-consumption/default.js b/packages/did-core-test-server/suites/did-consumption/default.js index 39926c6b..a647cb54 100644 --- a/packages/did-core-test-server/suites/did-consumption/default.js +++ b/packages/did-core-test-server/suites/did-consumption/default.js @@ -9,6 +9,7 @@ module.exports = { require('../implementations/did-ethr-2021-consensys-mesh.json'), require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), - require('../implementations/did-monid.json') + require('../implementations/did-monid.json'), + require('../implementations/did-unisot.json') ] } diff --git a/packages/did-core-test-server/suites/did-core-properties/default.js b/packages/did-core-test-server/suites/did-core-properties/default.js index 698ac63d..499bf123 100644 --- a/packages/did-core-test-server/suites/did-core-properties/default.js +++ b/packages/did-core-test-server/suites/did-core-properties/default.js @@ -9,6 +9,7 @@ module.exports = { require('../implementations/did-ethr-2021-consensys-mesh.json'), require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), - require('../implementations/did-monid.json') + require('../implementations/did-monid.json'), + require('../implementations/did-unisot.json') ] } diff --git a/packages/did-core-test-server/suites/did-identifier/default.js b/packages/did-core-test-server/suites/did-identifier/default.js index ccdec910..cc3251d6 100644 --- a/packages/did-core-test-server/suites/did-identifier/default.js +++ b/packages/did-core-test-server/suites/did-identifier/default.js @@ -9,6 +9,7 @@ module.exports = { require('../implementations/did-ethr-2021-consensys-mesh.json'), require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), - require('../implementations/did-monid.json') + require('../implementations/did-monid.json'), + require('../implementations/did-unisot.json') ] } diff --git a/packages/did-core-test-server/suites/did-production/default.js b/packages/did-core-test-server/suites/did-production/default.js index 85a175a2..d54e62f2 100644 --- a/packages/did-core-test-server/suites/did-production/default.js +++ b/packages/did-core-test-server/suites/did-production/default.js @@ -9,6 +9,7 @@ module.exports = { require('../implementations/did-ethr-2021-consensys-mesh.json'), require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), - require('../implementations/did-monid.json') + require('../implementations/did-monid.json'), + require('../implementations/did-unisot.json') ] } diff --git a/packages/did-core-test-server/suites/implementations/did-unisot.json b/packages/did-core-test-server/suites/implementations/did-unisot.json new file mode 100644 index 00000000..37445fda --- /dev/null +++ b/packages/did-core-test-server/suites/implementations/did-unisot.json @@ -0,0 +1,91 @@ +{ + "didMethod": "did:unisot", + "implementation": "@unisot/unisot-did-resolverer", + "implementer": "UNISOT AS", + "supportedContentTypes": [ + "application/did+ld+json", + "application/did+json" + ], + "dids": [ + "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + ], + "didParameters": { + "versionId": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7?versionId=bafyreidmpfv7aumgqeqacprb2yv3t7sapsoro6dpopopyxtelknfbxifia", + "versionTime": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7?versionTime=2021-03-16T10:09:21Z" + }, + "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7": { + "didDocumentDataModel": { + "properties": { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7", + "verificationMethod": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ], + "authentication": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ], + "assertionMethod": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ], + "keyAgreement": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ], + "capabilityInvocation": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ], + "capabilityDelegation": [ + { + "id": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#Key1", + "type": "EcdsaSecp256k1Signature2019", + "controller": "did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7" + } + ] + } + }, + "application/did+json": { + "didDocumentDataModel": { + "representationSpecificEntries": {} + }, + "representation": "{\"@context\":[\"https:\/\/www.w3.org\/ns\/did\/v1\",\"https:\/\/w3id.org\/security\/v1\"],\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"verificationMethod\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"authentication\":[\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"assertionMethod\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"keyAgreement\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"capabilityInvocation\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"capabilityDelegation\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"service\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#vcs\",\"type\":\"VerifiableCredentialService\",\"serviceEndpoint\":\"https:\/\/service.example.com\/vc\"}],\"created\":\"2021-05-17T09:21:38.612Z\"}", + "didResolutionMetadata": { + "contentType": "application/did+json" + }, + "didDocumentMetadata": { + "created": "2021-05-17T09:21:38.612Z" + } + }, + "application/did+ld+json": { + "didDocumentDataModel": { + "representationSpecificEntries": { + "@context": "https://www.w3.org/ns/did/v1" + } + }, + "representation": "{\"@context\":[\"https:\/\/www.w3.org\/ns\/did\/v1\",\"https:\/\/w3id.org\/security\/v1\"],\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"verificationMethod\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"authentication\":[\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"assertionMethod\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"keyAgreement\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"capabilityInvocation\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"capabilityDelegation\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\",\"type\":\"EcdsaSecp256k1VerificationKey2019\",\"controller\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7\"}],\"service\":[{\"id\":\"did:unisot:test:mtF5XVLJvXEeffY8fo2eUfpXqs9CqQzpj7#vcs\",\"type\":\"VerifiableCredentialService\",\"serviceEndpoint\":\"https:\/\/service.example.com\/vc\"}],\"created\":\"2021-05-17T09:21:38.612Z\"}", + "didResolutionMetadata": { + "contentType": "application/did+ld+json" + }, + "didDocumentMetadata": { + "created": "2021-05-17T09:21:38.612Z" + } + } + } +} \ No newline at end of file