From dd1dbd55d9fae5936b07572fc3232b8cbff3d5c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B3=A2?= Date: Tue, 18 May 2021 16:41:35 +0800 Subject: [PATCH] Add did:vaa 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-vaa.json | 50 +++++++++++++++++++ 5 files changed, 58 insertions(+), 4 deletions(-) create mode 100644 packages/did-core-test-server/suites/implementations/did-vaa.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 a647cb54..6b180091 100644 --- a/packages/did-core-test-server/suites/did-consumption/default.js +++ b/packages/did-core-test-server/suites/did-consumption/default.js @@ -10,6 +10,7 @@ module.exports = { require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), require('../implementations/did-monid.json'), - require('../implementations/did-unisot.json') + require('../implementations/did-unisot.json'), + require('../implementations/did-vaa.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 499bf123..41f0acfa 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 @@ -10,6 +10,7 @@ module.exports = { require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), require('../implementations/did-monid.json'), - require('../implementations/did-unisot.json') + require('../implementations/did-unisot.json'), + require('../implementations/did-vaa.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 cc3251d6..e5423198 100644 --- a/packages/did-core-test-server/suites/did-identifier/default.js +++ b/packages/did-core-test-server/suites/did-identifier/default.js @@ -10,6 +10,7 @@ module.exports = { require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), require('../implementations/did-monid.json'), - require('../implementations/did-unisot.json') + require('../implementations/did-unisot.json'), + require('../implementations/did-vaa.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 d54e62f2..256ad64e 100644 --- a/packages/did-core-test-server/suites/did-production/default.js +++ b/packages/did-core-test-server/suites/did-production/default.js @@ -10,6 +10,7 @@ module.exports = { require('../implementations/did-trust.json'), require('../implementations/did-v1-vof.json'), require('../implementations/did-monid.json'), - require('../implementations/did-unisot.json') + require('../implementations/did-unisot.json'), + require('../implementations/did-vaa.json') ] } diff --git a/packages/did-core-test-server/suites/implementations/did-vaa.json b/packages/did-core-test-server/suites/implementations/did-vaa.json new file mode 100644 index 00000000..abc5574b --- /dev/null +++ b/packages/did-core-test-server/suites/implementations/did-vaa.json @@ -0,0 +1,50 @@ +{ + "didMethod": "did:vaa", + "implementation": "DID IS Test Suite", + "implementer": "CAICT", + "supportedContentTypes": [ + "application/did+ld+json" + ], + "dids": [ + "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ" + ], + "didParameters": {}, + "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ": { + "didDocumentDataModel": { + "properties": { + "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ", + "controllor": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ", + "publicKey": [ + { + "id": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ#key1", + "type": "RsaVerificationKey2018", + "controller": "did:vaa:2H9XwzRXZ1o5ZwSoYDEZn24eHXcQ", + "publicKeyPem": "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDb/A4iQ0Lq6NU9Q3i91vbqZ8jh\nUj/Hr64683e9NvNkFBeFePp7wfuZJRSTMrllP5LEQwXPmeZzQBJjKkY34iQV7EXA\nARKMisvqUR/ucU1mj7ZCiFM+MNCcxn+eD1WfBsXMYfne/BPJPhIUfjjIzBaTQuhI\ntLhGD6WrDv6fovK/GQIDAQAB\n-----END PUBLIC KEY-----\n" + } + ], + "service": [ + { + "id": "did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#resolver", + "type": "DIDResolve", + "serviceEndpoint": "https://www.citln.cn" + } + ] + } + }, + "application/did+ld+json": { + "didDocumentDataModel": { + "representationSpecificEntries": { + "@context": [ + "https://www.w3.org/ns/did/v1" + ] + } + }, + "representation": "{\"@context\":\"https://www.w3.org/2019/did/v1\",\"id\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC\",\"controllor\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC\",\"publicKey\":[{\"id\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1\",\"type\":\"RsaVerificationKey2018\",\"controller\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC\",\"publicKeyPem\":\"-----BEGIN PUBLIC KEY-----\\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDb/A4iQ0Lq6NU9Q3i91vbqZ8jh\\nUj/Hr64683e9NvNkFBeFePp7wfuZJRSTMrllP5LEQwXPmeZzQBJjKkY34iQV7EXA\\nARKMisvqUR/ucU1mj7ZCiFM+MNCcxn+eD1WfBsXMYfne/BPJPhIUfjjIzBaTQuhI\\ntLhGD6WrDv6fovK/GQIDAQAB\\n-----END PUBLIC KEY-----\\n\"}],\"created\":\"2020-11-25T18:23:33Z\",\"updated\":\"2020-11-25T18:23:33Z\",\"proof\":{\"type\":\"RsaSignature2018\",\"created\":\"2020-11-25T18:23:33Z\",\"verificationMethod\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#key1\",\"signatureValue\":\"Tov28noNERDLNfvY1QHnS4zUYXJjLy1oiXXYb533wkq77rfdzy77/vRfBKVAt7iNY1GjpL5tytZpmPjYFLDFwz6SOdlsuCrKTM8sIGLybRS12EOWZl7PAfdYPwknpG4aK7Zmvc7u9ORN9o+YLTK3rP9H4GyJpYWUScy3S3YZU6A=\"},\"service\":[{\"id\":\"did:vaa:3wJVWDQWtDFx27FqvSqyo5xsTsxC#resolver\",\"type\":\"DIDResolve\",\"serviceEndpoint\":\"https://www.citln.cn\"}]}", + "didDocumentMetadata": { + }, + "didResolutionMetadata": { + "contentType": "application/did+ld+json" + } + } + } +} \ No newline at end of file