@learncard/openid4vc-plugin 0.3.11 → 0.3.12

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.
@@ -61653,7 +61653,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
61653
61653
  verificationMethod: external_exports2.string(),
61654
61654
  jws: external_exports2.string().optional()
61655
61655
  }).catchall(external_exports2.any()).superRefine((proof, ctx) => {
61656
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
61656
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
61657
+ // Keep the prior requirement for legacy and unknown proof suites.
61658
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
61659
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
61660
+ (proof.type !== "DataIntegrityProof" || ![
61661
+ "ecdsa-rdfc-2019",
61662
+ "ecdsa-jcs-2019",
61663
+ "ecdsa-sd-2023",
61664
+ "eddsa-rdfc-2022",
61665
+ "eddsa-jcs-2022",
61666
+ "bbs-2023"
61667
+ ].includes(proof.cryptosuite))) {
61657
61668
  ctx.addIssue({
61658
61669
  code: "custom",
61659
61670
  path: ["created"],