@hinkal/common 0.0.20 → 0.0.21
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/assets/{snarkjsWorkerLogic-scy9tbGQ.js → snarkjsWorkerLogic-DbPzt8sK.js} +2 -2
- package/assets/{utxoWorkerLauncher-949gA7j-.js → utxoWorkerLauncher-BEUpD_S3.js} +2 -1
- package/assets/{utxoWorkerLogic-CWVrduGP.js → utxoWorkerLogic-BFs3JZ0z.js} +3 -3
- package/assets/{utxoWorkerLogic-CyWO48JX.js → utxoWorkerLogic-BIinmUe9.js} +2 -2
- package/assets/{viteWorkerURL.constant-D9TTkFfm.js → viteWorkerURL.constant-2FqFkgj-.js} +3 -3
- package/assets/{zkProofWorkerLauncher-B54jpyIs.js → zkProofWorkerLauncher-CkAXJL76.js} +1 -1
- package/assets/{zkProofWorkerLogic-g413cUJh.js → zkProofWorkerLogic-DO1mhw9j.js} +57538 -57511
- package/{index-CRZ_sTGy.js → index-hawBcGgA.js} +36315 -36245
- package/index.js +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-CJ6jLJrl.js → snarkjsWorkerLogic-BSQcU9Zo.js} +2 -2
- package/{utxoWorkerLogic-CxyTY-Iw.js → utxoWorkerLogic-Ck6_gew5.js} +5 -5
- package/{viteWorkerURL.constant-gZWY_Fas.js → viteWorkerURL.constant-CruO8mkG.js} +2 -2
- package/{workerProxy-DTKGeJe4.js → workerProxy-Bcp7Fkbp.js} +1 -1
- package/{zkProofWorkerLogic-B9OTFcZv.js → zkProofWorkerLogic-DP4Ejyeo.js} +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Se, B as po } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-
|
|
1
|
+
import { p as Se, B as po } from "./zkProofWorkerLauncher-CkAXJL76.js";
|
|
2
|
+
import { e as Ua, r as ho, g as Lo, a as mo, b as bo, c as en, d as ja, f as $a, u as zn, h as yo } from "./zkProofWorkerLogic-DO1mhw9j.js";
|
|
3
3
|
const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function sn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -1192,8 +1192,9 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
globalThis.process = It;
|
|
1194
1194
|
globalThis.Buffer = gr;
|
|
1195
|
-
const Tt = import("./utxoWorkerLogic-
|
|
1195
|
+
const Tt = import("./utxoWorkerLogic-BIinmUe9.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
|
+
console.log("addEventListener in Launcher starts");
|
|
1197
1198
|
const { onWorkerMessage: f } = await Tt;
|
|
1198
1199
|
f(h.data);
|
|
1199
1200
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as U } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as S } from "./zkProofWorkerLogic-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-CkAXJL76.js";
|
|
2
|
+
import { U as l, i as T, h as I, j as f, k as y, l as m, m as h, p as S } from "./zkProofWorkerLogic-DO1mhw9j.js";
|
|
3
3
|
const g = (e) => {
|
|
4
4
|
const t = T.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
@@ -70,7 +70,7 @@ const u = new I(), E = async ({ data: e }) => {
|
|
|
70
70
|
}
|
|
71
71
|
u.postMessageToMainThread({ additionalEncryptedOutputs: o, lastOutput: s });
|
|
72
72
|
}, B = async (e) => {
|
|
73
|
-
await S();
|
|
73
|
+
console.log("onWorkerMessage starts"), await S();
|
|
74
74
|
const { type: t } = e.payload;
|
|
75
75
|
switch (t) {
|
|
76
76
|
case d.BATCH_FILTER_UTXOS_WITH_NULLIFIER:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dist, p as process$1, B as Buffer } from "./utxoWorkerLauncher-
|
|
1
|
+
import { d as dist, p as process$1, B as Buffer } from "./utxoWorkerLauncher-BEUpD_S3.js";
|
|
2
2
|
const hexLen = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
3
3
|
function fromString(_, c) {
|
|
4
4
|
if (!c || c == 10)
|
|
@@ -67767,7 +67767,7 @@ const workerProxy = new WorkerProxy(), handleFilterUtxosWithNullifier = async ({
|
|
|
67767
67767
|
}
|
|
67768
67768
|
workerProxy.postMessageToMainThread({ additionalEncryptedOutputs: h, lastOutput: B });
|
|
67769
67769
|
}, onWorkerMessage = async (_) => {
|
|
67770
|
-
await preProcessing();
|
|
67770
|
+
console.log("onWorkerMessage starts"), await preProcessing();
|
|
67771
67771
|
const { type: c } = _.payload;
|
|
67772
67772
|
switch (c) {
|
|
67773
67773
|
case UtxoWorkerActionType.BATCH_FILTER_UTXOS_WITH_NULLIFIER:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as r } from "./zkProofWorkerLogic-
|
|
2
|
-
import "./zkProofWorkerLauncher-
|
|
3
|
-
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-Cxayz-rO.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-DO1mhw9j.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-CkAXJL76.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-Cxayz-rO.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-BEUpD_S3.js", import.meta.url).href;
|
|
4
4
|
const n = {
|
|
5
5
|
[r.ZKProof]: o,
|
|
6
6
|
[r.SnarkJS]: e,
|
|
@@ -1192,7 +1192,7 @@ const It = /* @__PURE__ */ dt(mt), Ft = () => {
|
|
|
1192
1192
|
};
|
|
1193
1193
|
globalThis.process = It;
|
|
1194
1194
|
globalThis.Buffer = gr;
|
|
1195
|
-
const Tt = import("./zkProofWorkerLogic-
|
|
1195
|
+
const Tt = import("./zkProofWorkerLogic-DO1mhw9j.js").then(function(h) {
|
|
1196
1196
|
return h.z;
|
|
1197
1197
|
});
|
|
1198
1198
|
addEventListener("message", async (h) => {
|