Use canonical schema

This commit is contained in:
Xavi Aracil 2024-02-23 11:49:22 +01:00
parent a1c8caf170
commit 693f899645
3 changed files with 15 additions and 15 deletions

View File

@ -12,7 +12,7 @@
], ],
"issuer": { "issuer": {
"id": "https://state.gov/issuers/565049", "id": "https://state.gov/issuers/565049",
"type": "Profile", "type": ["Profile"],
"name": "State Department of Education" "name": "State Department of Education"
}, },
"issuanceDate": "2010-01-01T00:00:00Z", "issuanceDate": "2010-01-01T00:00:00Z",
@ -20,7 +20,7 @@
"name": "Example endorsement", "name": "Example endorsement",
"credentialSubject": { "credentialSubject": {
"id": "https://1edtech.edu/issuers/565049", "id": "https://1edtech.edu/issuers/565049",
"type": "EndorsementSubject", "type": ["EndorsementSubject"],
"endorsementComment": "1EdTech University is in good standing" "endorsementComment": "1EdTech University is in good standing"
}, },
"credentialSchema": [ "credentialSchema": [
@ -29,11 +29,11 @@
"type": "1EdTechJsonSchemaValidator2019" "type": "1EdTechJsonSchemaValidator2019"
} }
], ],
"proof": { "proof": [{
"type": "Ed25519Signature2020", "type": "Ed25519Signature2020",
"created": "2010-01-01T19:23:24Z", "created": "2010-01-01T19:23:24Z",
"verificationMethod": "https://state.gov/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "verificationMethod": "https://state.gov/issuers/565049#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"proofValue": "z347N8ntbL3usCGshtUZiyrBeGBhYVAqyi4HUhz4fBmU1zVwk5eRfPZJvKoendfyGaeSbJcAfQEVNpvcHLzVhDtQC" "proofValue": "z347N8ntbL3usCGshtUZiyrBeGBhYVAqyi4HUhz4fBmU1zVwk5eRfPZJvKoendfyGaeSbJcAfQEVNpvcHLzVhDtQC"
} }]
} }

View File

@ -12,9 +12,9 @@
], ],
"issuer": { "issuer": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "Profile", "type": ["Profile"],
"address": { "address": {
"type": "Address", "type": ["Address"],
"addressCountry": "Japan" "addressCountry": "Japan"
}, },
"name": "1EdTech Testing" "name": "1EdTech Testing"
@ -24,10 +24,10 @@
"name": "ob3-simple-did-web-method.json", "name": "ob3-simple-did-web-method.json",
"credentialSubject": { "credentialSubject": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:learner:6896f98f-6b42-4c75-98ec-8befd0dc0b29",
"type": "AchievementSubject", "type": ["AchievementSubject"],
"achievement": { "achievement": {
"id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/achievement/66457db3-fb3d-4ae3-8f32-bc8c79c9f0db", "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/achievement/66457db3-fb3d-4ae3-8f32-bc8c79c9f0db",
"type": "Achievement", "type": ["Achievement"],
"achievementType": "Achievement", "achievementType": "Achievement",
"criteria": { "criteria": {
"narrative": "Passes tests" "narrative": "Passes tests"
@ -37,9 +37,9 @@
}, },
"source": { "source": {
"id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c", "id": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c",
"type": "Profile", "type": ["Profile"],
"address": { "address": {
"type": "Address", "type": ["Address"],
"addressCountry": "Japan" "addressCountry": "Japan"
}, },
"name": "1EdTech Testing" "name": "1EdTech Testing"
@ -53,11 +53,11 @@
"id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/api/refresh/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca", "id": "https://dc.1edtech.org/wellspring2022/wellspring-portal/api/refresh/d002b4e9-6fd9-4af0-b1f7-faa9237b46ca",
"type": "1EdTechCredentialRefresh" "type": "1EdTechCredentialRefresh"
}, },
"proof": { "proof": [{
"type": "Ed25519Signature2020", "type": "Ed25519Signature2020",
"created": "2023-05-23T01:07:22Z", "created": "2023-05-23T01:07:22Z",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0", "verificationMethod": "did:web:dc.1edtech.org:wellspring2022:wellspring-portal:org:da1e96e9-afcc-4eed-b9a2-2ddf7353214c#key-0",
"proofValue": "z5tVhex5rV9aTxTrGh26uyVdC6BWXG8dQCkzNjgkPWtwAjGzMyYXzrQYJ2XrKUsNpYE3fTXsgUSBwDCY11vbyGBw7" "proofValue": "z5tVhex5rV9aTxTrGh26uyVdC6BWXG8dQCkzNjgkPWtwAjGzMyYXzrQYJ2XrKUsNpYE3fTXsgUSBwDCY11vbyGBw7"
} }]
} }

View File

@ -8,7 +8,7 @@
"id": "http://www.1edtech.org/ob/1", "id": "http://www.1edtech.org/ob/1",
"issuanceDate": "2022-11-27T00:00:00Z", "issuanceDate": "2022-11-27T00:00:00Z",
"credentialSubject": { "credentialSubject": {
"type": "AchievementSubject", "type": ["AchievementSubject"],
"id": "did:1edtech:1", "id": "did:1edtech:1",
"achievement": { "achievement": {
"id": "did:1edtech:achievement:1", "id": "did:1edtech:achievement:1",
@ -20,12 +20,12 @@
}, },
"name": "Some name", "name": "Some name",
"issuer": { "id": "https://example.com/issuers/876543", "type": ["Profile"] }, "issuer": { "id": "https://example.com/issuers/876543", "type": ["Profile"] },
"proof": { "proof": [{
"type": "DataIntegrityProof", "type": "DataIntegrityProof",
"created": "2023-05-29T08:42:26Z", "created": "2023-05-29T08:42:26Z",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi",
"cryptosuite": "eddsa-2022", "cryptosuite": "eddsa-2022",
"proofValue": "z2H1miRAGKPRCPUSudNTPrsWyvpRZzgtgjPBmnMkbcwR8StwEv8dr3NigviBgvZwBu8yA7wAyF5qLjyo3zN1UqLR2" "proofValue": "z2H1miRAGKPRCPUSudNTPrsWyvpRZzgtgjPBmnMkbcwR8StwEv8dr3NigviBgvZwBu8yA7wAyF5qLjyo3zN1UqLR2"
} }]
} }