@learncard/core 8.0.3 → 8.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/core.cjs.development.js +42 -1
- package/dist/core.cjs.development.js.map +2 -2
- package/dist/core.cjs.production.min.js +25 -25
- package/dist/core.cjs.production.min.js.map +2 -2
- package/dist/core.d.ts +55 -50
- package/dist/core.esm.js +42 -1
- package/dist/core.esm.js.map +2 -2
- package/package.json +2 -2
@@ -41472,6 +41472,47 @@ var VC_TEMPLATES = {
|
|
41472
41472
|
name: achievementName
|
41473
41473
|
}
|
41474
41474
|
}
|
41475
|
+
}),
|
41476
|
+
jff2: ({
|
41477
|
+
did = "did:example:d23dd687a7dc6787646f2eb98d0",
|
41478
|
+
subject = "did:example:d23dd687a7dc6787646f2eb98d0",
|
41479
|
+
issuanceDate = "2020-08-19T21:41:50Z"
|
41480
|
+
} = {}) => ({
|
41481
|
+
"@context": [
|
41482
|
+
"https://www.w3.org/2018/credentials/v1",
|
41483
|
+
"https://purl.imsglobal.org/spec/ob/v3p0/context.json",
|
41484
|
+
"https://w3id.org/security/suites/ed25519-2020/v1"
|
41485
|
+
],
|
41486
|
+
id: "urn:uuid:a63a60be-f4af-491c-87fc-2c8fd3007a58",
|
41487
|
+
type: ["VerifiableCredential", "OpenBadgeCredential"],
|
41488
|
+
name: "JFF x vc-edu PlugFest 2 Interoperability",
|
41489
|
+
issuer: {
|
41490
|
+
type: ["Profile"],
|
41491
|
+
id: did,
|
41492
|
+
name: "Jobs for the Future (JFF)",
|
41493
|
+
image: {
|
41494
|
+
id: "https://w3c-ccg.github.io/vc-ed/plugfest-1-2022/images/JFF_LogoLockup.png",
|
41495
|
+
type: "Image"
|
41496
|
+
}
|
41497
|
+
},
|
41498
|
+
issuanceDate,
|
41499
|
+
credentialSubject: {
|
41500
|
+
type: ["AchievementSubject"],
|
41501
|
+
id: subject,
|
41502
|
+
achievement: {
|
41503
|
+
id: "urn:uuid:bd6d9316-f7ae-4073-a1e5-2f7f5bd22922",
|
41504
|
+
type: ["Achievement"],
|
41505
|
+
name: "JFF x vc-edu PlugFest 2 Interoperability",
|
41506
|
+
description: "This credential solution supports the use of OBv3 and w3c Verifiable Credentials and is interoperable with at least two other solutions. This was demonstrated successfully during JFF x vc-edu PlugFest 2.",
|
41507
|
+
criteria: {
|
41508
|
+
narrative: "Solutions providers earned this badge by demonstrating interoperability between multiple providers based on the OBv3 candidate final standard, with some additional required fields. Credential issuers earning this badge successfully issued a credential into at least two wallets. Wallet implementers earning this badge successfully displayed credentials issued by at least two different credential issuers."
|
41509
|
+
},
|
41510
|
+
image: {
|
41511
|
+
id: "https://w3c-ccg.github.io/vc-ed/plugfest-2-2022/images/JFF-VC-EDU-PLUGFEST2-badge-image.png",
|
41512
|
+
type: "Image"
|
41513
|
+
}
|
41514
|
+
}
|
41515
|
+
}
|
41475
41516
|
})
|
41476
41517
|
};
|
41477
41518
|
|
@@ -46075,7 +46116,7 @@ var UnsignedVPValidator = mod.object({
|
|
46075
46116
|
"@context": ContextValidator,
|
46076
46117
|
id: mod.string().optional(),
|
46077
46118
|
type: mod.string().array().nonempty(),
|
46078
|
-
verifiableCredential: VCValidator.or(VCValidator.array()),
|
46119
|
+
verifiableCredential: VCValidator.or(VCValidator.array()).optional(),
|
46079
46120
|
holder: mod.string().optional()
|
46080
46121
|
}).catchall(mod.any());
|
46081
46122
|
var VPValidator = UnsignedVPValidator.extend({
|