@learncard/react 2.3.13 → 2.3.14
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/cjs/{VCCard-9675f8d2.js → VCCard-2983ff1d.js} +14 -13
- package/dist/{esm/VCCard-ce69ff8d.js.map → cjs/VCCard-2983ff1d.js.map} +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index14.js +1 -1
- package/dist/cjs/index5.js +1 -1
- package/dist/esm/{VCCard-ce69ff8d.js → VCCard-779741a4.js} +14 -13
- package/dist/{cjs/VCCard-9675f8d2.js.map → esm/VCCard-779741a4.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index14.js +1 -1
- package/dist/esm/index5.js +1 -1
- package/package.json +2 -2
|
@@ -156028,11 +156028,7 @@ var verifyCredential = /* @__PURE__ */ __name((initWallet) => {
|
|
|
156028
156028
|
});
|
|
156029
156029
|
}, "verifyCredential");
|
|
156030
156030
|
var issuePresentation = /* @__PURE__ */ __name((initWallet) => {
|
|
156031
|
-
return (wallet,
|
|
156032
|
-
const did = wallet.pluginMethods.getSubjectDid("key");
|
|
156033
|
-
if (!did)
|
|
156034
|
-
throw new Error("Cannot create presentation: No holder key found");
|
|
156035
|
-
const holder = did;
|
|
156031
|
+
return (wallet, presentation) => __async$1(void 0, null, function* () {
|
|
156036
156032
|
const kp = wallet.pluginMethods.getSubjectKeypair();
|
|
156037
156033
|
if (!kp)
|
|
156038
156034
|
throw new Error("Cannot issue credential: Could not get subject keypair");
|
|
@@ -156040,12 +156036,6 @@ var issuePresentation = /* @__PURE__ */ __name((initWallet) => {
|
|
|
156040
156036
|
verificationMethod: yield initWallet.pluginMethods.keyToVerificationMethod("key", kp),
|
|
156041
156037
|
proofPurpose: "assertionMethod"
|
|
156042
156038
|
};
|
|
156043
|
-
const presentation = {
|
|
156044
|
-
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
|
156045
|
-
type: ["VerifiablePresentation"],
|
|
156046
|
-
holder,
|
|
156047
|
-
verifiableCredential: credential
|
|
156048
|
-
};
|
|
156049
156039
|
return initWallet.pluginMethods.issuePresentation(presentation, options, kp);
|
|
156050
156040
|
});
|
|
156051
156041
|
}, "issuePresentation");
|
|
@@ -156071,7 +156061,17 @@ var getVCPlugin = /* @__PURE__ */ __name((wallet) => __async$1(void 0, null, fun
|
|
|
156071
156061
|
issuanceDate: "2020-08-19T21:41:50Z",
|
|
156072
156062
|
credentialSubject: { id: subject }
|
|
156073
156063
|
};
|
|
156074
|
-
}
|
|
156064
|
+
},
|
|
156065
|
+
getTestVp: (_wallet, _credential) => __async$1(void 0, null, function* () {
|
|
156066
|
+
const credential = _credential || (yield _wallet.pluginMethods.issueCredential(_wallet.pluginMethods.getTestVc()));
|
|
156067
|
+
const did = _wallet.pluginMethods.getSubjectDid("key");
|
|
156068
|
+
return {
|
|
156069
|
+
"@context": ["https://www.w3.org/2018/credentials/v1"],
|
|
156070
|
+
type: ["VerifiablePresentation"],
|
|
156071
|
+
holder: did,
|
|
156072
|
+
verifiableCredential: credential
|
|
156073
|
+
};
|
|
156074
|
+
})
|
|
156075
156075
|
})
|
|
156076
156076
|
};
|
|
156077
156077
|
}), "getVCPlugin");
|
|
@@ -161462,6 +161462,7 @@ var walletFromKey = /* @__PURE__ */ __name((_0, ..._1) => __async$1(void 0, [_0,
|
|
|
161462
161462
|
}),
|
|
161463
161463
|
readFromCeramic: wallet.pluginMethods.readContentFromCeramic,
|
|
161464
161464
|
getTestVc: wallet.pluginMethods.getTestVc,
|
|
161465
|
+
getTestVp: wallet.pluginMethods.getTestVp,
|
|
161465
161466
|
checkMyEth: wallet.pluginMethods.checkMyEth,
|
|
161466
161467
|
checkMyDai: wallet.pluginMethods.checkMyDai,
|
|
161467
161468
|
checkMyUsdc: wallet.pluginMethods.checkMyUsdc
|
|
@@ -161528,4 +161529,4 @@ const VCCard = ({ credential, issueeOverride, className = "" }) => {
|
|
|
161528
161529
|
};
|
|
161529
161530
|
|
|
161530
161531
|
exports.VCCard = VCCard;
|
|
161531
|
-
//# sourceMappingURL=VCCard-
|
|
161532
|
+
//# sourceMappingURL=VCCard-2983ff1d.js.map
|