diff --git a/inspector-vc/src/test/resources/ob30/simple-context-alias.json b/inspector-vc/src/test/resources/ob30/simple-context-alias.json index 40ce9fe..14c90a4 100644 --- a/inspector-vc/src/test/resources/ob30/simple-context-alias.json +++ b/inspector-vc/src/test/resources/ob30/simple-context-alias.json @@ -1,8 +1,7 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context/ob_v3p0.jsonld", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ @@ -35,13 +34,13 @@ "name": "Teamwork" } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} + "validFrom": "2024-03-21T14:56:35Z", + "proof": [{ + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z56yYTVAJxcTduuDvdCfnmEcYsRwHS7aBxHTgqYQUWYuXQxTyEswJTs4ynNeB8yjdoLcspTYL4z6mscwC47fJ8bBN" + }] +} \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-context-version.json b/inspector-vc/src/test/resources/ob30/simple-context-version.json index 29ad406..80744b9 100644 --- a/inspector-vc/src/test/resources/ob30/simple-context-version.json +++ b/inspector-vc/src/test/resources/ob30/simple-context-version.json @@ -1,8 +1,7 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.1.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.2.json" ], "id": "http://example.com/credentials/3527", "type": [ @@ -16,7 +15,7 @@ ], "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", @@ -35,13 +34,12 @@ "name": "Teamwork" } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} + "proof": [{ + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "zD8RrkKVSVEPYspwCe9T1a68NAVt2GyV566uR6QLdxCMdkg2b4rdUf9w1BC8ZEyhGdEz13kzkBwkjTTvoYAYsy15" + }] +} \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-did-key-method.json b/inspector-vc/src/test/resources/ob30/simple-did-key-method.json index 764298f..52fea29 100644 --- a/inspector-vc/src/test/resources/ob30/simple-did-key-method.json +++ b/inspector-vc/src/test/resources/ob30/simple-did-key-method.json @@ -1,33 +1,47 @@ { - "@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" + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json", + "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json" + ], + "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" + "validFrom": "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" - } ] -} + "proof": [{ + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "did:key:z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5v2mkEWTLxzJ4VCxvUx5dRoy54Hp81GpyABUk7NswQECwDH6Ecwv5F3Mqso7t18UY6WScm5Qszo6nqiiqmevRWHc" + }] +} \ No newline at end of file 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 index 36c2de0..24d0ac1 100644 --- a/inspector-vc/src/test/resources/ob30/simple-did-web-method.json +++ b/inspector-vc/src/test/resources/ob30/simple-did-web-method.json @@ -1,9 +1,7 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.1.json", - "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/credential/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca", "type": [ @@ -12,22 +10,30 @@ ], "issuer": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", - "type": ["Profile"], + "type": [ + "Profile" + ], "address": { - "type": ["Address"], + "type": [ + "Address" + ], "addressCountry": "Japan" }, "name": "1EdTech Testing" }, "awardedDate": "2023-05-22T14:09:00Z", - "issuanceDate": "2023-05-23T01:07:22Z", + "validFrom": "2023-05-23T01:07:22Z", "name": "ob3-simple-did-web-method.json", "credentialSubject": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29", - "type": ["AchievementSubject"], + "type": [ + "AchievementSubject" + ], "achievement": { "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/achievement/66457db3-fb3d-4ae3-8f32-bc8c79c9f0db", - "type": ["Achievement"], + "type": [ + "Achievement" + ], "achievementType": "Achievement", "criteria": { "narrative": "Passes tests" @@ -37,9 +43,13 @@ }, "source": { "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", - "type": ["Profile"], + "type": [ + "Profile" + ], "address": { - "type": ["Address"], + "type": [ + "Address" + ], "addressCountry": "Japan" }, "name": "1EdTech Testing" @@ -54,10 +64,11 @@ "type": "1EdTechCredentialRefresh" }, "proof": [{ - "type": "Ed25519Signature2020", - "created": "2023-05-23T01:07:22Z", - "proofPurpose": "assertionMethod", + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", "verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0", - "proofValue": "z5tVhex5rV9aTxTrGh26uyVdC6BWXG8dQCkzNjgkPWtwAjGzMyYXzrQYJ2XrKUsNpYE3fTXsgUSBwDCY11vbyGBw7" + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z54xk5KNnchymcgxxaTECoREb3n9t8AeUU7AV5mNXhF56D82KPBtoXrPrR9DuEDL5oJtDxL3Cdv42Bt5QCJYcG4gc" }] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-context.json b/inspector-vc/src/test/resources/ob30/simple-err-context.json index be960df..415ac9c 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-context.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-context.json @@ -1,7 +1,6 @@ { "@context": [ - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.edu/credentials/3732", "type": [ @@ -25,11 +24,12 @@ }, "proof": [ { - "type": "Ed25519Signature2020", - "created": "2022-06-28T16:28:36Z", - "verificationMethod": "did:key:z6MkkUD3J14nkYzn46QeuaVSnp7dF85QJKwKvJvfsjx79aXj", + "type": "DataIntegrityProof", + "created": "2024-03-20T14:53:19Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", + "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", - "proofValue": "z3MUt2ZuU8Byqivxh6GphEM65AFYyNaGYibm97xLTafM7uGufZQLKvJR8itZwxKskvtFM3CUty46v26DZidMNoQnM" + "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" } ] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-achievement-result-description-type.json b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-achievement-result-description-type.json index dd6b7ae..05872fe 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-achievement-result-description-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-achievement-result-description-type.json @@ -1,188 +1,186 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp" + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork", - "resultDescription": [ - { - "id": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", - "type": "ResultDescription", - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project" - } - ], - "allowedValue": [ - "D", - "C", - "B", - "A" - ], - "name": "Final Project Grade", - "requiredValue": "C", - "resultType": "LetterGrade" - }, - { - "id": "urn:uuid:a70ddc6a-4c4a-4bd8-8277-cb97c79f40c5", - "type": "ResultDescription", - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project" - } - ], - "allowedValue": [ - "D", - "C", - "B", - "A" - ], - "name": "Final Project Grade", - "requiredLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", - "resultType": "RubricCriterionLevel", - "rubricCriterionLevel": [ - { - "id": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", - "type": "RubricCriterionLevel", - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFRubricCriterionLevel", - "targetUrl": "https://1edtech.edu/catalog/degree/project/rubric/levels/mastered" - } - ], - "description": "The author demonstrated...", - "level": "Mastered", - "name": "Mastery", - "points": "4" - }, - { - "id": "urn:uuid:6b84b429-31ee-4dac-9d20-e5c55881f80e", - "type": "RubricCriterionLevel", - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFRubricCriterionLevel", - "targetUrl": "https://1edtech.edu/catalog/degree/project/rubric/levels/basic" - } - ], - "description": "The author demonstrated...", - "level": "Basic", - "name": "Basic", - "points": "4" - } - ] - }, - { - "id": "urn:uuid:b07c0387-f2d6-4b65-a3f4-f4e4302ea8f7", - "type": "InvalidResultDescription", - "name": "Project Status", - "resultType": "Status" - } - ] + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, - "result": [ - { - "type": [ - "Result" - ], + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork", + "resultDescription": [ + { + "id": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", + "type": "ResultDescription", + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project" + } + ], + "allowedValue": [ + "D", + "C", + "B", + "A" + ], + "name": "Final Project Grade", + "requiredValue": "C", + "resultType": "LetterGrade" + }, + { + "id": "urn:uuid:a70ddc6a-4c4a-4bd8-8277-cb97c79f40c5", + "type": "ResultDescription", + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project" + } + ], + "allowedValue": [ + "D", + "C", + "B", + "A" + ], + "name": "Final Project Grade", + "requiredLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", + "resultType": "RubricCriterionLevel", + "rubricCriterionLevel": [ + { + "id": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", + "type": "RubricCriterionLevel", "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" - } + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFRubricCriterionLevel", + "targetUrl": "https://1edtech.edu/catalog/degree/project/rubric/levels/mastered" + } ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", - "value": "A" - }, - { - "type": [ - "Result" - ], - "achievedLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", + "description": "The author demonstrated...", + "level": "Mastered", + "name": "Mastery", + "points": "4" + }, + { + "id": "urn:uuid:6b84b429-31ee-4dac-9d20-e5c55881f80e", + "type": "RubricCriterionLevel", "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" - } + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFRubricCriterionLevel", + "targetUrl": "https://1edtech.edu/catalog/degree/project/rubric/levels/basic" + } ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c" - }, - { - "type": [ - "Result" - ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", - "status": "Completed" - } + "description": "The author demonstrated...", + "level": "Basic", + "name": "Basic", + "points": "4" + } + ] + }, + { + "id": "urn:uuid:b07c0387-f2d6-4b65-a3f4-f4e4302ea8f7", + "type": "InvalidResultDescription", + "name": "Project Status", + "resultType": "Status" + } ] - }, - "proof": [ + }, + "result": [ { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" + "type": [ + "Result" + ], + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" + } + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", + "value": "A" + }, + { + "type": [ + "Result" + ], + "achievedLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" + } + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c" + }, + { + "type": [ + "Result" + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", + "status": "Completed" } - ] -} \ No newline at end of file + ] + }, + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "zW2X3KbSiPJ4zmN1GD641owCgz87NjsFpcRpjAdDoPhW7pWvyJUEap3iDKUWovRM43r15Wru6cv8qBVvVgnJxhuH" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-identifier-type.json b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-identifier-type.json index 64960bd..f8a572d 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-identifier-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-identifier-type.json @@ -1,52 +1,52 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" - ], - "id": "http://example.com/credentials/3527", + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" + ], + "id": "http://example.com/credentials/3527", + "type": [ + "VerifiableCredential", + "OpenBadgeCredential" + ], + "issuer": { + "id": "https://example.com/issuers/876543", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "Profile" ], - "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp" - }, - "issuanceDate": "2010-01-01T00:00:00Z", - "name": "Teamwork Badge", - "credentialSubject": { - "identifier": [{ + "name": "Example Corp" + }, + "validFrom": "2010-01-01T00:00:00Z", + "name": "Teamwork Badge", + "credentialSubject": { + "identifier": [ + { "type": "InvalidIdentityObject", "hashed": true, "identityHash": "asdjhsadas", "identityType": "lisSourcedId" - }], + } + ], + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } - }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] - } \ No newline at end of file + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } + }, + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5M8kUcxhKZ8niHpZt1LUBLrJGeLMnYaCmwrdR7MrcGzyiGz65zkk59212f7xpd7odxGVDp4e6MvNABsQ8YGn7U98" + } +} \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-profile-type.json b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-profile-type.json index 57646c7..68fd961 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-profile-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-profile-type.json @@ -1,52 +1,50 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp" + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, - "source": { - "id": "https://school.edu/issuers/201234", - "type": "InvalidProfile", - "name": "1EdTech College of Arts" - } + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + }, + "source": { + "id": "https://school.edu/issuers/201234", + "type": "InvalidProfile", + "name": "1EdTech College of Arts" + } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} \ No newline at end of file + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5kJkNSdserQduikVPAfEZ3qMPQRkyvcB7tTaNuxjqNZioQmijmWouvBqSGnAeKKoXAavTk4cxY94iuiEW9boXVyV" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-result-type.json b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-result-type.json index 5275a9a..5663d3f 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-result-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-result-type.json @@ -1,92 +1,90 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp" + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, - "result": [ - { - "type": [ - "Result" - ], - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" - } - ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", - "value": "A" - }, - { - "type": [ - "InvalidResult" - ], - "achievedLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", - "alignment": [ - { - "type": "Alignment", - "targetCode": "project", - "targetDescription": "Project description", - "targetName": "Final Project", - "targetFramework": "1EdTech University Program and Course Catalog", - "targetType": "CFItem", - "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" - } - ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c" - }, - { - "type": [ - "Result" - ], - "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", - "status": "Completed" - } - ] - }, - "proof": [ + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + }, + "result": [ { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" + "type": [ + "Result" + ], + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" + } + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", + "value": "A" + }, + { + "type": [ + "InvalidResult" + ], + "achievedLevel": "urn:uuid:d05a0867-d0ad-4b03-bdb5-28fb5d2aab7a", + "alignment": [ + { + "type": "Alignment", + "targetCode": "project", + "targetDescription": "Project description", + "targetName": "Final Project", + "targetFramework": "1EdTech University Program and Course Catalog", + "targetType": "CFItem", + "targetUrl": "https://1edtech.edu/catalog/degree/project/result/1" + } + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c" + }, + { + "type": [ + "Result" + ], + "resultDescription": "urn:uuid:f6ab24cd-86e8-4eaf-b8c6-ded74e8fd41c", + "status": "Completed" } - ] -} \ No newline at end of file + ] + }, + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5YBoPB9tjivuKpRyj9GknLKkReBcpjHxmeR4fGbAppoUpGC2GhbEC8eFdtrnk97ToRPYoQKdtFYDdixGqWXtRpsm" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-type.json b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-type.json index 37712c5..85851e0 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-credential-subject-type.json @@ -1,47 +1,45 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" - ], - "id": "http://example.com/credentials/3527", + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" + ], + "id": "http://example.com/credentials/3527", + "type": [ + "VerifiableCredential", + "OpenBadgeCredential" + ], + "issuer": { + "id": "https://example.com/issuers/876543", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "Profile" ], - "issuer": { - "id": "https://example.com/issuers/876543", + "name": "Example Corp" + }, + "validFrom": "2010-01-01T00:00:00Z", + "name": "Teamwork Badge", + "credentialSubject": { + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "InvalidAchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "Profile" + "Achievement" ], - "name": "Example Corp" - }, - "issuanceDate": "2010-01-01T00:00:00Z", - "name": "Teamwork Badge", - "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "InvalidAchievementSubject" - ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } - }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] - } \ No newline at end of file + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } + }, + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z57amKtkLGz6Gs4s1R7hcgkWzrxayXt7HZ4L5Gt8VBGcM2Z4881fEDARqa8pM2N2dniqXz3U4cC6zW3UBfkQZCfN" + } +} \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-evidence-type.json b/inspector-vc/src/test/resources/ob30/simple-err-evidence-type.json index 245cbd6..0bb8acb 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-evidence-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-evidence-type.json @@ -1,66 +1,64 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp" + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } }, "evidence": [ - { - "id": "https://1edtech.edu/credentials/3732/evidence/1", - "type": "Evidence", - "narrative": "# Final Project Report \n This project was ...", - "name": "Final Project Report", - "description": "This is the final project report.", - "genre": "Research", - "audience": "Department" - }, - { - "id": "https://github.com/somebody/project", - "type": "InvalidEvidence", - "name": "Final Project Code", - "description": "This is the source code for the final project app.", - "genre": "Research", - "audience": "Department" - } + { + "id": "https://1edtech.edu/credentials/3732/evidence/1", + "type": "Evidence", + "narrative": "# Final Project Report \n This project was ...", + "name": "Final Project Report", + "description": "This is the final project report.", + "genre": "Research", + "audience": "Department" + }, + { + "id": "https://github.com/somebody/project", + "type": "InvalidEvidence", + "name": "Final Project Code", + "description": "This is the source code for the final project app.", + "genre": "Research", + "audience": "Department" + } ], - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} \ No newline at end of file + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "zbXsNxLTdGdCTdyfkefLRenndjs6QoXnwCYtNbXj4ZtwxrGa2xctb78XrBjuTNK8FKskysBYvMuSzvWYSzfzTXWX" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-expired.json b/inspector-vc/src/test/resources/ob30/simple-err-expired.json index 3127b92..1949ac7 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-expired.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-expired.json @@ -1,8 +1,7 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ @@ -16,8 +15,8 @@ ], "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", - "expirationDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", + "validUntil": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", @@ -36,13 +35,12 @@ "name": "Teamwork" } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z2mAP6ezimojRWSHDhS1VfJgDdMCqa4oPbmJT1tCs43t5bRiwsrrhHxrmTEeAF2EBjErrzxoJj3HCKsdkyVkno11f" + } } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-issued.json b/inspector-vc/src/test/resources/ob30/simple-err-issued.json index 471a3df..9f6ff6f 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-issued.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-issued.json @@ -1,8 +1,7 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.edu/credentials/3732", "type": [ @@ -16,8 +15,8 @@ ], "name": "Example University" }, - "issuanceDate": "2040-01-01T00:00:00Z", - "expirationDate": "2050-01-20T00:00:00Z", + "validFrom": "2040-01-01T00:00:00Z", + "validUntil": "2050-01-20T00:00:00Z", "name": "Example University Degree", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", @@ -25,13 +24,12 @@ "AchievementSubject" ] }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-06-28T16:28:36Z", - "verificationMethod": "did:key:z6MkkUD3J14nkYzn46QeuaVSnp7dF85QJKwKvJvfsjx79aXj", - "proofPurpose": "assertionMethod", - "proofValue": "z3MUt2ZuU8Byqivxh6GphEM65AFYyNaGYibm97xLTafM7uGufZQLKvJR8itZwxKskvtFM3CUty46v26DZidMNoQnM" - } - ] + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.edu/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5EUB8AAu98Tdagjaf6QP7zY7MovnYTEB6vnNBgWjaCtaiNQfqNLQmEPpxvQuQPmVfQ49wcadz3DNUDk4CAt79HaF" + } } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-issuer-otheridentifier-type.json b/inspector-vc/src/test/resources/ob30/simple-err-issuer-otheridentifier-type.json index 94a134a..c0014cd 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-issuer-otheridentifier-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-issuer-otheridentifier-type.json @@ -1,59 +1,57 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], - "name": "Example Corp", - "otherIdentifier": [ - { - "type": "IdentifierEntry", - "identifier": "12345", - "identifierType": "sourcedId" - }, - { - "type": "InvalidIdentifierEntry", - "identifier": "67890", - "identifierType": "nationalIdentityNumber" - } - ] + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp", + "otherIdentifier": [ + { + "type": "IdentifierEntry", + "identifier": "12345", + "identifierType": "sourcedId" + }, + { + "type": "InvalidIdentifierEntry", + "identifier": "67890", + "identifierType": "nationalIdentityNumber" + } + ] }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} \ No newline at end of file + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z3y8SeYGgaCjgeqe5vbKv9egn5zxHPoFNDYRXa9pHPxMua2P9PEinYmmjq12FqXYr272DhKj6tvBTCzvx3KRc8ys8" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-issuer-parentorg-type.json b/inspector-vc/src/test/resources/ob30/simple-err-issuer-parentorg-type.json index c2f1dad..eb098fb 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-issuer-parentorg-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-issuer-parentorg-type.json @@ -1,54 +1,52 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { + "id": "https://example.com/issuers/876543", + "type": [ + "Profile" + ], + "name": "Example Corp", + "parentOrg": { "id": "https://example.com/issuers/876543", "type": [ - "Profile" + "InvalidProfile" ], - "name": "Example Corp", - "parentOrg": { - "id": "https://example.com/issuers/876543", - "type": [ - "InvalidProfile" - ], - "name": "Example Parent Corp" - } + "name": "Example Parent Corp" + } }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} \ No newline at end of file + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z3f57gU5zssuyZTW2HxK2tV6qXCHyE3xdCHCczsUoRMSDBooCGboVBWUZygqpqskN5Mmpww8Qu3JARf1YvGcCzE34" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-issuer-type.json b/inspector-vc/src/test/resources/ob30/simple-err-issuer-type.json index a42b0d1..f9e317d 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-issuer-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-issuer-type.json @@ -1,47 +1,45 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "VerifiableCredential", + "OpenBadgeCredential" ], "issuer": { - "id": "https://example.com/issuers/876543", - "type": [ - "InvalidProfile" - ], - "name": "Example Corp" + "id": "https://example.com/issuers/876543", + "type": [ + "InvalidProfile" + ], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" + ], + "achievement": { + "id": "https://example.com/achievements/21st-century-skills/teamwork", "type": [ - "AchievementSubject" + "Achievement" ], - "achievement": { - "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], - "criteria": { - "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." - }, - "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", - "name": "Teamwork" - } + "criteria": { + "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." + }, + "description": "This badge recognizes the development of the capacity to collaborate within a group environment.", + "name": "Teamwork" + } }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "https://example.com/issuers/876543#z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", - "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" - } - ] -} \ No newline at end of file + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z2t8HUUbHs1G3o5t1uCTA7kbdprP21W9xmf8qJaDBWBoHSBFvJB26Bdq7Fi1ko2cnaHAvXETdMX6dPGFSA2rTP4KW" + } + } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-issuer.json b/inspector-vc/src/test/resources/ob30/simple-err-issuer.json index 5735768..a63cb00 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-issuer.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-issuer.json @@ -1,15 +1,14 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.edu/credentials/3732", "type": [ "VerifiableCredential", "OpenBadgeCredential" ], - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Example University Degree", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", @@ -17,13 +16,12 @@ "AchievementSubject" ] }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-06-28T16:28:36Z", - "verificationMethod": "did:key:z6MkkUD3J14nkYzn46QeuaVSnp7dF85QJKwKvJvfsjx79aXj", - "proofPurpose": "assertionMethod", - "proofValue": "z3MUt2ZuU8Byqivxh6GphEM65AFYyNaGYibm97xLTafM7uGufZQLKvJR8itZwxKskvtFM3CUty46v26DZidMNoQnM" - } - ] + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z5ZjnJNPeQznivpmedtQZDAy9vXVz2BbhZp13fGpTfMnsgzccs2Z3Se2BRWeECSMo92cUsQP63LhMb6veWuD223j2" + } } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-no-scheme.json b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-no-scheme.json index 1fc7e2f..5ea950a 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-no-scheme.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-no-scheme.json @@ -1,33 +1,23 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", - "type": [ - "VerifiableCredential", - "OpenBadgeCredential" - ], + "type": ["VerifiableCredential", "OpenBadgeCredential"], "issuer": { "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], + "type": ["Profile"], "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "AchievementSubject" - ], + "type": ["AchievementSubject"], "achievement": { "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], + "type": ["Achievement"], "criteria": { "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, @@ -37,11 +27,12 @@ }, "proof": [ { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", + "type": "DataIntegrityProof", + "created": "2024-03-20T14:53:19Z", + "verificationMethod": "z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", + "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" + "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" } ] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-did-method.json b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-did-method.json index 60601f2..fe56cee 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-did-method.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-did-method.json @@ -1,33 +1,23 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", - "type": [ - "VerifiableCredential", - "OpenBadgeCredential" - ], + "type": ["VerifiableCredential", "OpenBadgeCredential"], "issuer": { "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], + "type": ["Profile"], "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "AchievementSubject" - ], + "type": ["AchievementSubject"], "achievement": { "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], + "type": ["Achievement"], "criteria": { "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, @@ -37,11 +27,12 @@ }, "proof": [ { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "did:example:z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", + "type": "DataIntegrityProof", + "created": "2024-03-20T14:53:19Z", + "verificationMethod": "did:example:z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", + "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" + "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" } ] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-scheme.json b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-scheme.json index bb11ff3..fa737fb 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-scheme.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-proof-method-unknown-scheme.json @@ -1,33 +1,23 @@ { "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], "id": "http://example.com/credentials/3527", - "type": [ - "VerifiableCredential", - "OpenBadgeCredential" - ], + "type": ["VerifiableCredential", "OpenBadgeCredential"], "issuer": { "id": "https://example.com/issuers/876543", - "type": [ - "Profile" - ], + "type": ["Profile"], "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "AchievementSubject" - ], + "type": ["AchievementSubject"], "achievement": { "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], + "type": ["Achievement"], "criteria": { "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, @@ -37,11 +27,12 @@ }, "proof": [ { - "type": "Ed25519Signature2020", - "created": "2022-11-16T18:54:22Z", - "verificationMethod": "xxx:z6MknNHHrBzPytzu6CUBP9Lg7fg4KSBjzimc2Frh693YbMiv", + "type": "DataIntegrityProof", + "created": "2024-03-20T14:53:19Z", + "verificationMethod": "xxx:z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", + "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", - "proofValue": "z5gJZKchSJEYPGeq6bsqiLKuxT6mXqAovPbqYX66CB7u9CSNFdV41vHtysjHFiitvoyhfPxsaZnWftrZZZW2txPQK" + "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" } ] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-proof-method.json b/inspector-vc/src/test/resources/ob30/simple-err-proof-method.json index 037a10c..49ff8ab 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-proof-method.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-proof-method.json @@ -1,9 +1,8 @@ { "@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" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json", + "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json" ], "id": "http://example.edu/credentials/3732", "type": [ @@ -17,7 +16,7 @@ ], "name": "Example University" }, - "issuanceDate": "2010-01-01T00:00:00Z", + "validFrom": "2010-01-01T00:00:00Z", "name": "Example University Degree", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", @@ -42,13 +41,12 @@ "type": "1EdTechJsonSchemaValidator2019" } ], - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-09-15T15:48:32Z", - "verificationMethod": "https://example.edu/issuers/565049#xxMkmY1R6tG2NEdRHzphdRT6JqxeYpHwLAHwbrDfQULpkMAj", - "proofPurpose": "assertionMethod", - "proofValue": "z3yUuWbFsLUp2CUrSZRaRbTk1UnkhpoJgJYu1SdMqd3AEMotpY41sKky7VzavnSfjApggtWJg1tcREvs5H4ZNnBRH" - } - ] + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.edu/issuers/565049#z6MkjZRsdasZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z4HwAsa7GvwL7so7CoQ8v3ShzykRPCq8pfkAFKuAPrJx28S69pXphpqL8ApjoxEcMaqbgkaCUyKuEohhGXBR4Fh3L" + } } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-proof-value.json b/inspector-vc/src/test/resources/ob30/simple-err-proof-value.json index d26f49d..f2803f6 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-proof-value.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-proof-value.json @@ -1,34 +1,23 @@ { "@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://example.edu/credentials/3732", - "type": [ - "VerifiableCredential", - "OpenBadgeCredential" + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" ], + "id": "http://example.com/credentials/3527", + "type": ["VerifiableCredential", "OpenBadgeCredential"], "issuer": { - "id": "https://example.edu/issuers/565049", - "type": [ - "Profile" - ], - "name": "Example University" + "id": "https://example.com/issuers/876543", + "type": ["Profile"], + "name": "Example Corp" }, - "issuanceDate": "2010-01-01T00:00:00Z", - "name": "Example University Degree", + "validFrom": "2010-01-01T00:00:00Z", + "name": "Teamwork Badge", "credentialSubject": { "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "AchievementSubject" - ], + "type": ["AchievementSubject"], "achievement": { "id": "https://example.com/achievements/21st-century-skills/teamwork", - "type": [ - "Achievement" - ], + "type": ["Achievement"], "criteria": { "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." }, @@ -36,19 +25,14 @@ "name": "Teamwork" } }, - "credentialSchema": [ - { - "id": "https://purl.imsglobal.org/spec/ob/v3p0/schema/json/ob_v3p0_achievementcredential_schema.json", - "type": "1EdTechJsonSchemaValidator2019" - } - ], "proof": [ { - "type": "Ed25519Signature2020", - "created": "2022-09-15T15:48:32Z", - "verificationMethod": "https://example.edu/issuers/565049#z6MkmY1R6tG2NEdRHzphdRT6JqxeYpHwLAHwbrDfQULpkMAj", + "type": "DataIntegrityProof", + "created": "2024-03-20T14:53:19Z", + "verificationMethod": "https://example.com/issuers/876543#z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", + "cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod", - "proofValue": "z3fQCWGpz7b1HSH6DTwYiH5vutqtpJb5SHiP1VFK22xeBEW2D61tC9j3SktwPLNxPnTNZnPt4GeAZJPdVYserRqs4" + "proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LvNFodwov9rPQxi3QRP7adCrzV" } ] } \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-err-type.json b/inspector-vc/src/test/resources/ob30/simple-err-type.json index cf146d2..23cc91f 100644 --- a/inspector-vc/src/test/resources/ob30/simple-err-type.json +++ b/inspector-vc/src/test/resources/ob30/simple-err-type.json @@ -1,36 +1,34 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://purl.imsglobal.org/spec/ob/v3p0/context.json", - "https://w3id.org/security/suites/ed25519-2020/v1" - ], - "id": "http://example.edu/credentials/3732", + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" + ], + "id": "http://example.edu/credentials/3732", + "type": [ + "VerifiableCredential", + "OtherCredential" + ], + "issuer": { + "id": "https://example.edu/issuers/565049", "type": [ - "VerifiableCredential", - "OtherCredential" + "Profile" ], - "issuer": { - "id": "https://example.edu/issuers/565049", - "type": [ - "Profile" - ], - "name": "Example University" - }, - "issuanceDate": "2010-01-01T00:00:00Z", - "name": "Example University Degree", - "credentialSubject": { - "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", - "type": [ - "AchievementSubject" - ] - }, - "proof": [ - { - "type": "Ed25519Signature2020", - "created": "2022-06-09T22:56:28Z", - "verificationMethod": "https://example.edu/issuers/565049#key-1", - "proofPurpose": "assertionMethod", - "proofValue": "z58ieJCh4kN6eE2Vq4TyYURKSC4hWWEK7b75NNUL2taZMhKqwTteuByG1wRoGDdCqqNLW5Gq1diUi4qyZ63tQRtyN" - } + "name": "Example University" + }, + "validFrom": "2010-01-01T00:00:00Z", + "name": "Example University Degree", + "credentialSubject": { + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "type": [ + "AchievementSubject" ] - } \ No newline at end of file + }, + "proof": { + "type": "DataIntegrityProof", + "created": "2010-01-01T19:23:24Z", + "verificationMethod": "https://example.edu/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", + "cryptosuite": "eddsa-rdfc-2022", + "proofPurpose": "assertionMethod", + "proofValue": "z662W1sSqKoA8ryTKK7PPVGKRrBkx5id3aDvdFNtguJcVFHJggDnkwJFntbo2cWfSwumCh9mgcYUe2RgpK1GZFyxa" + } +} \ No newline at end of file diff --git a/inspector-vc/src/test/resources/ob30/simple-json.png b/inspector-vc/src/test/resources/ob30/simple-json.png index 4ae4fb3..88616c9 100644 Binary files a/inspector-vc/src/test/resources/ob30/simple-json.png and b/inspector-vc/src/test/resources/ob30/simple-json.png differ diff --git a/inspector-vc/src/test/resources/ob30/simple-json.svg b/inspector-vc/src/test/resources/ob30/simple-json.svg index 78ae99c..7897dbe 100644 --- a/inspector-vc/src/test/resources/ob30/simple-json.svg +++ b/inspector-vc/src/test/resources/ob30/simple-json.svg @@ -5,34 +5,24 @@