From 465ba7df55305f82bdee74c2922430ce4dda12bf Mon Sep 17 00:00:00 2001 From: "Andy Miller (IMS)" <48326098+amiller-ims@users.noreply.github.com> Date: Tue, 16 May 2023 10:35:56 +0900 Subject: [PATCH] Renamed did:key method resource --- .../resources/ob30/simple-did-method.json | 33 ----- .../resources/ob30/simple-did-web-method.json | 134 ++++++++++++++++++ 2 files changed, 134 insertions(+), 33 deletions(-) delete mode 100644 inspector-vc/src/test/resources/ob30/simple-did-method.json create mode 100644 inspector-vc/src/test/resources/ob30/simple-did-web-method.json diff --git a/inspector-vc/src/test/resources/ob30/simple-did-method.json b/inspector-vc/src/test/resources/ob30/simple-did-method.json deleted file mode 100644 index 764298f..0000000 --- a/inspector-vc/src/test/resources/ob30/simple-did-method.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "@context" : [ "https://www.w3.org/2018/credentials/v1", "https://purl.imsglobal.org/spec/ob/v3p0/context.json", "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", "https://w3id.org/security/suites/ed25519-2020/v1" ], - "id" : "urn:uuid:280c19b6-9680-4a37-ba84-e38b1a4e4584", - "type" : [ "VerifiableCredential", "AchievementCredential" ], - "issuer" : { - "type" : [ "Profile" ], - "name" : "Andy F. Miller", - "id" : "urn:uuid:6f2e33e5-7a29-4155-840a-59483ba10164" - }, - "issuanceDate" : "2022-11-10T07:38:00-08:00", - "name" : "test 1", - "credentialSubject" : { - "id" : "urn:uuid:6f2e33e5-7a29-4155-840a-59483ba10164", - "type" : [ "AchievementSubject" ], - "achievement" : { - "id" : "urn:uuid:35258e6f-4c05-4215-8ada-38a5a5b80510", - "type" : [ "Achievement" ], - "achievementType" : "Achievement", - "name" : "test 1", - "description" : "This is a test achievement", - "criteria" : { - "narrative" : "There is no criteria" - } - } - }, - "proof" : [ { - "type" : "Ed25519Signature2020", - "created" : "2022-11-16T20:39:53Z", - "proofPurpose" : "assertionMethod", - "verificationMethod" : "did:key:z6MkwAQmEfso8UjHJZTQajRtqR5hDxAD95iJD4z53XnKCFms", - "proofValue" : "z361ueyGzREPvsWdnWUfkzTKXEd6u2DPPu2kDw3pDERJmzDFCqsuaPneqcRgz2hk9ycaNDYmC4Fy9c6S6BDDt5fVB" - } ] -} diff --git a/inspector-vc/src/test/resources/ob30/simple-did-web-method.json b/inspector-vc/src/test/resources/ob30/simple-did-web-method.json new file mode 100644 index 0000000..57c8b7c --- /dev/null +++ b/inspector-vc/src/test/resources/ob30/simple-did-web-method.json @@ -0,0 +1,134 @@ +{ + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://purl.imsglobal.org/spec/ob/v3p0/context.json", + "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", + "https://w3id.org/security/suites/ed25519-2020/v1" + ], + "id": "http://localhost:8082/credentials/a9821486-26fc-4a89-924b-ed2521395003", + "type": [ + "VerifiableCredential", + "AchievementCredential" + ], + "issuer": { + "id": "did:web:localhost%3A8082:profiles:1bb90bff-8fda-49eb-884c-0fa9d209d178", + "type": "Profile", + "name": "Wellspring School" + }, + "awardedDate": "2023-05-02T00:33:00Z", + "issuanceDate": "2023-05-15T23:56:14Z", + "expirationDate": "2024-05-02T02:47:00Z", + "name": "Achievement 2", + "description": "This is a short description.", + "evidence": [ + { + "type": "Evidence", + "audience": "General", + "description": "My photos", + "genre": "Photography", + "name": "Photography portfolio", + "narrative": "This is __all__ of my photos" + } + ], + "credentialSubject": { + "id": "did:web:localhost%3A8082:profiles:abb48d60-5619-4b6f-9f3f-699b7c4b49cd", + "type": "AchievementSubject", + "achievement": { + "id": "http://localhost:8082/achievements/5e5f7f83-cf05-49d1-81a7-d9cb6b0ffece", + "type": "Achievement", + "achievementType": "Course", + "alignment": [ + { + "type": "Alignment", + "targetFramework": "Construction Accounting", + "targetName": "Preparing cost estimates and bids", + "targetType": "CFItem", + "targetUrl": "https://casenetwork.imsglobal.org/uri/c865f9de-aea3-11eb-86a8-0242ac140003", + "targetFrameworkIdentifier": "bdf9b670-aea3-11eb-85bc-0242ac140003", + "targetIdentifier": "c865f9de-aea3-11eb-86a8-0242ac140003" + } + ], + "creditsAvailable": 3, + "criteria": { + "narrative": "This is the criteria:\r\n1. First criteria\r\n1. Second criteria" + }, + "description": "This is a short description", + "fieldOfStudy": "Biology", + "humanCode": "B-101", + "@language": "en", + "name": "Achievement 2", + "resultDescription": [ + { + "id": "25838e15-81af-4582-97a9-932e07a8f3ce", + "type": "ResultDescription", + "allowedValue": [ + "A", + "B", + "C", + "D", + "F" + ], + "name": "Grade", + "requiredLevel": "431eff1b-0981-4656-9b0c-8a3957f481e7", + "requiredValue": "C", + "resultType": "LetterGrade", + "rubricCriterionLevel": [ + { + "id": "a6204c1f-f2e9-4cd7-b06b-727ca7564778", + "type": "RubricCriterionLevel", + "description": "Basic level", + "level": "Basic", + "name": "Basic", + "points": "1" + }, + { + "id": "431eff1b-0981-4656-9b0c-8a3957f481e7", + "type": "RubricCriterionLevel", + "description": "Advanced level", + "level": "Advanced", + "name": "Advanced", + "points": "2" + } + ], + "valueMax": "A", + "valueMin": "C" + } + ], + "specialization": "Nanotechnology", + "tag": [ + "this", + " that", + " the other" + ], + "version": "1" + }, + "activityEndDate": "2023-03-31T02:47:00Z", + "activityStartDate": "2023-01-01T02:47:00Z", + "creditsEarned": 3, + "licenseNumber": "1234567890", + "narrative": "This is a **longer** description.", + "result": [ + { + "type": "Result", + "achievedLevel": "a6204c1f-f2e9-4cd7-b06b-727ca7564778", + "resultDescription": "25838e15-81af-4582-97a9-932e07a8f3ce", + "status": "Completed", + "value": "A" + } + ], + "role": "Arbitrator", + "source": { + "id": "did:web:localhost%3A8082:profiles:1bb90bff-8fda-49eb-884c-0fa9d209d178", + "type": "Profile", + "name": "Wellspring School" + }, + "term": "Winter" + }, + "proof": { + "type": "Ed25519Signature2020", + "created": "2023-05-15T23:56:14Z", + "proofPurpose": "assertionMethod", + "verificationMethod": "did:web:localhost%3A8082:profiles:1bb90bff-8fda-49eb-884c-0fa9d209d178#key-0", + "proofValue": "zpwCWNLeW5GUaJCzNxUPeLB2S7eXyukudaqKbVDUcZtQUJpTtXu2evP73Siv63V6FYipcP8WrVYovgZ1HrsKHKZZ" + } +} \ No newline at end of file