@learncard/network-plugin 3.1.0 → 3.1.2

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.
@@ -15182,7 +15182,18 @@ var ProofValidator = external_exports.object({
15182
15182
  verificationMethod: external_exports.string(),
15183
15183
  jws: external_exports.string().optional()
15184
15184
  }).catchall(external_exports.any()).superRefine((proof, ctx) => {
15185
- if (proof.created === void 0 && (proof.type !== "DataIntegrityProof" || proof.cryptosuite !== "ecdsa-rdfc-2019")) {
15185
+ if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
15186
+ // Keep the prior requirement for legacy and unknown proof suites.
15187
+ // https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
15188
+ // https://www.w3.org/TR/vc-di-bbs/#proof-configuration
15189
+ (proof.type !== "DataIntegrityProof" || ![
15190
+ "ecdsa-rdfc-2019",
15191
+ "ecdsa-jcs-2019",
15192
+ "ecdsa-sd-2023",
15193
+ "eddsa-rdfc-2022",
15194
+ "eddsa-jcs-2022",
15195
+ "bbs-2023"
15196
+ ].includes(proof.cryptosuite))) {
15186
15197
  ctx.addIssue({
15187
15198
  code: "custom",
15188
15199
  path: ["created"],