@learncard/learn-cloud-plugin 2.3.45 → 2.3.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/learn-cloud-plugin.cjs.development.cjs +12 -1
- package/dist/learn-cloud-plugin.cjs.development.cjs.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.cjs +1 -1
- package/dist/learn-cloud-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/learn-cloud-plugin.esm.js +12 -1
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/package.json +7 -7
|
@@ -21238,7 +21238,18 @@ var ProofValidator = external_exports.object({
|
|
|
21238
21238
|
verificationMethod: external_exports.string(),
|
|
21239
21239
|
jws: external_exports.string().optional()
|
|
21240
21240
|
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
21241
|
-
if (proof.created === void 0 &&
|
|
21241
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
21242
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
21243
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
21244
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
21245
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
21246
|
+
"ecdsa-rdfc-2019",
|
|
21247
|
+
"ecdsa-jcs-2019",
|
|
21248
|
+
"ecdsa-sd-2023",
|
|
21249
|
+
"eddsa-rdfc-2022",
|
|
21250
|
+
"eddsa-jcs-2022",
|
|
21251
|
+
"bbs-2023"
|
|
21252
|
+
].includes(proof.cryptosuite))) {
|
|
21242
21253
|
ctx.addIssue({
|
|
21243
21254
|
code: "custom",
|
|
21244
21255
|
path: ["created"],
|