Fixed tests

This commit is contained in:
Xavi Aracil 2024-03-21 18:00:16 +01:00
parent ef8d4b08c4
commit 4b9b1d4147
2 changed files with 24 additions and 17 deletions

View File

@ -35,12 +35,12 @@
"name": "Teamwork" "name": "Teamwork"
} }
}, },
"proof": { "proof": [{
"type": "DataIntegrityProof", "type": "DataIntegrityProof",
"created": "2010-01-01T19:23:24Z", "created": "2010-01-01T19:23:24Z",
"verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi", "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi",
"cryptosuite": "eddsa-rdfc-2022", "cryptosuite": "eddsa-rdfc-2022",
"proofPurpose": "assertionMethod", "proofPurpose": "assertionMethod",
"proofValue": "z2mAP6ezimojRWSHDhS1VfJgDdMCqa4oPbmJT1tCs43t5bRiwsrrhHxrmTEeAF2EBjErrzxoJj3HCKsdkyVkno11f" "proofValue": "z2mAP6ezimojRWSHDhS1VfJgDdMCqa4oPbmJT1tCs43t5bRiwsrrhHxrmTEeAF2EBjErrzxoJj3HCKsdkyVkno11f"
} }]
} }

View File

@ -4,20 +4,29 @@
"https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json" "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json"
], ],
"id": "http://example.com/credentials/3527", "id": "http://example.com/credentials/3527",
"type": ["VerifiableCredential", "OpenBadgeCredential"], "type": [
"VerifiableCredential",
"OpenBadgeCredential"
],
"issuer": { "issuer": {
"id": "https://example.com/issuers/876543", "id": "https://example.com/issuers/876543",
"type": ["Profile"], "type": [
"Profile"
],
"name": "Example Corp" "name": "Example Corp"
}, },
"validFrom": "2010-01-01T00:00:00Z", "validFrom": "2010-01-01T00:00:00Z",
"name": "Teamwork Badge", "name": "Teamwork Badge",
"credentialSubject": { "credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21", "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
"type": ["AchievementSubject"], "type": [
"AchievementSubject"
],
"achievement": { "achievement": {
"id": "https://example.com/achievements/21st-century-skills/teamwork", "id": "https://example.com/achievements/21st-century-skills/teamwork",
"type": ["Achievement"], "type": [
"Achievement"
],
"criteria": { "criteria": {
"narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management." "narrative": "Team members are nominated for this badge by their peers and recognized upon review by Example Corp management."
}, },
@ -25,14 +34,12 @@
"name": "Teamwork" "name": "Teamwork"
} }
}, },
"proof": [ "proof": [{
{ "type": "DataIntegrityProof",
"type": "DataIntegrityProof", "created": "2010-01-01T19:23:24Z",
"created": "2024-03-20T14:53:19Z", "verificationMethod": "https://example.com/issuers/876543#z6MkjZRZv3aez3r18pB1RBFJR1kwUVJ5jHt92JmQwXbd5hwi",
"verificationMethod": "https://example.com/issuers/876543#z6MkrvfzkMnvCroEUP2DVc9SHPE48CRsvHiVSusHioxTYu1x", "cryptosuite": "eddsa-rdfc-2022",
"cryptosuite": "eddsa-rdfc-2022", "proofPurpose": "assertionMethod",
"proofPurpose": "assertionMethod", "proofValue": "z41ZsNkz78FHSGkAD5J4b8EN49DkywMMJSL3UdUNffbsCAWmTLPvtnJpd3JGGooYX7TNrzgsTLkXUWiGsRRZ788ML"
"proofValue": "z76jrNcyxHg5fV17h96yCRwqUaTQZD2QQivyNqHyLSvqu3aWGC3nLShzZEGbH3LnVFodwov9rPQxi3QRP7adCrzV" }]
} }
]
}