@learncard/learn-cloud-plugin 2.1.6 → 2.1.8
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/helpers.d.ts.map +1 -1
- package/dist/learn-cloud-plugin.cjs.development.js +3 -0
- package/dist/learn-cloud-plugin.cjs.development.js.map +2 -2
- package/dist/learn-cloud-plugin.cjs.production.min.js +6 -6
- package/dist/learn-cloud-plugin.cjs.production.min.js.map +3 -3
- package/dist/learn-cloud-plugin.esm.js +3 -0
- package/dist/learn-cloud-plugin.esm.js.map +2 -2
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -15651,6 +15651,9 @@ __name(n, "n");
|
|
|
15651
15651
|
|
|
15652
15652
|
// src/helpers.ts
|
|
15653
15653
|
var hash = /* @__PURE__ */ __name(async (learnCard, message) => {
|
|
15654
|
+
const lcHash = await learnCard.invoke.hash?.(message, "PBKDF2-HMAC-SHA256");
|
|
15655
|
+
if (lcHash)
|
|
15656
|
+
return lcHash;
|
|
15654
15657
|
const crypto2 = learnCard.invoke.crypto();
|
|
15655
15658
|
const uint8Message = new TextEncoder().encode(message);
|
|
15656
15659
|
const pk = learnCard.id.keypair("secp256k1").d;
|