@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.
- package/dist/lcn-plugin.cjs.development.cjs +12 -1
- package/dist/lcn-plugin.cjs.development.cjs.map +2 -2
- package/dist/lcn-plugin.cjs.production.min.cjs +1 -1
- package/dist/lcn-plugin.cjs.production.min.cjs.map +2 -2
- package/dist/lcn-plugin.esm.js +12 -1
- package/dist/lcn-plugin.esm.js.map +2 -2
- package/package.json +8 -8
package/dist/lcn-plugin.esm.js
CHANGED
|
@@ -15160,7 +15160,18 @@ var ProofValidator = external_exports.object({
|
|
|
15160
15160
|
verificationMethod: external_exports.string(),
|
|
15161
15161
|
jws: external_exports.string().optional()
|
|
15162
15162
|
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
15163
|
-
if (proof.created === void 0 &&
|
|
15163
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
15164
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
15165
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
15166
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
15167
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
15168
|
+
"ecdsa-rdfc-2019",
|
|
15169
|
+
"ecdsa-jcs-2019",
|
|
15170
|
+
"ecdsa-sd-2023",
|
|
15171
|
+
"eddsa-rdfc-2022",
|
|
15172
|
+
"eddsa-jcs-2022",
|
|
15173
|
+
"bbs-2023"
|
|
15174
|
+
].includes(proof.cryptosuite))) {
|
|
15164
15175
|
ctx.addIssue({
|
|
15165
15176
|
code: "custom",
|
|
15166
15177
|
path: ["created"],
|