@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.
@@ -21247,7 +21247,18 @@ var ProofValidator = external_exports.object({
21247
21247
  verificationMethod: external_exports.string(),
21248
21248
  jws: external_exports.string().optional()
21249
21249
  }).catchall(external_exports.any()).superRefine((proof, ctx) => {
21250
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
21250
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
21251
+ // Keep the prior requirement for legacy and unknown proof suites.
21252
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
21253
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
21254
+ (proof.type !== "DataIntegrityProof" || ![
21255
+ "ecdsa-rdfc-2019",
21256
+ "ecdsa-jcs-2019",
21257
+ "ecdsa-sd-2023",
21258
+ "eddsa-rdfc-2022",
21259
+ "eddsa-jcs-2022",
21260
+ "bbs-2023"
21261
+ ].includes(proof.cryptosuite))) {
21251
21262
  ctx.addIssue({
21252
21263
  code: "custom",
21253
21264
  path: ["created"],