@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.
@@ -61732,7 +61732,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
61732
61732
  verificationMethod: external_exports2.string(),
61733
61733
  jws: external_exports2.string().optional()
61734
61734
  }).catchall(external_exports2.any()).superRefine((proof, ctx) => {
61735
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
61735
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
61736
+ // Keep the prior requirement for legacy and unknown proof suites.
61737
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
61738
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
61739
+ (proof.type !== "DataIntegrityProof" || ![
61740
+ "ecdsa-rdfc-2019",
61741
+ "ecdsa-jcs-2019",
61742
+ "ecdsa-sd-2023",
61743
+ "eddsa-rdfc-2022",
61744
+ "eddsa-jcs-2022",
61745
+ "bbs-2023"
61746
+ ].includes(proof.cryptosuite))) {
61736
61747
  ctx.addIssue({
61737
61748
  code: "custom",
61738
61749
  path: ["created"],