@hinkal/common 0.0.36 → 0.0.38
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-BQ4zqGJJ.js → snarkjsWorkerLogic-CLrSWcNt.js} +2 -2
- package/assets/{utxoWorkerLogic-BthoGkYp.js → utxoWorkerLogic-BgOyVxuc.js} +2 -2
- package/assets/viteWorkerURL.constant-CQNSvlud.js +11 -0
- package/assets/{zkProofWorkerLauncher-B2C2_BED.js → zkProofWorkerLauncher-3zvFwfyC.js} +1 -1
- package/assets/{zkProofWorkerLogic-vjSyGOya.js → zkProofWorkerLogic-DjFkre1v.js} +4 -4
- package/{index-DSRkx6gL.js → index-B2h7Ehka.js} +36260 -36323
- package/index.js +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-CC5wBg5V.js → snarkjsWorkerLogic-CVOSTl5c.js} +2 -2
- package/{utxoWorkerLogic-aaBiDpYT.js → utxoWorkerLogic-BG98Iib9.js} +2 -2
- package/viteWorkerURL.constant-DtthAV1C.js +9 -0
- package/{workerProxy-CdISks2D.js → workerProxy-AhHfF6hk.js} +1 -1
- package/{zkProofWorkerLogic-tLglzki9.js → zkProofWorkerLogic-Dk3zCanr.js} +2 -2
- package/assets/viteWorkerURL.constant-A3dxrwE0.js +0 -11
- package/viteWorkerURL.constant-CkkzA-Qt.js +0 -9
|
@@ -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-3zvFwfyC.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-DjFkre1v.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)
|
|
@@ -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 x } from "./zkProofWorkerLogic-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-3zvFwfyC.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 x } from "./zkProofWorkerLogic-DjFkre1v.js";
|
|
3
3
|
const g = (e) => {
|
|
4
4
|
const t = T.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-DjFkre1v.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-3zvFwfyC.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-CA30lfwg.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-DD2MTdrZ.js", import.meta.url).href;
|
|
4
|
+
const n = {
|
|
5
|
+
[r.ZKProof]: o,
|
|
6
|
+
[r.SnarkJS]: e,
|
|
7
|
+
[r.UTXO]: a
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
n as workerViteURL
|
|
11
|
+
};
|
|
@@ -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-DjFkre1v.js").then(function(h) {
|
|
1196
1196
|
return h.z;
|
|
1197
1197
|
});
|
|
1198
1198
|
addEventListener("message", async (h) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-
|
|
1
|
+
import { d as dist$1, p as process$1, B as Buffer } from "./zkProofWorkerLauncher-3zvFwfyC.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$1(a, d) {
|
|
4
4
|
if (!d || d == 10)
|
|
@@ -161581,7 +161581,7 @@ class WorkerFactory {
|
|
|
161581
161581
|
constructor() {
|
|
161582
161582
|
}
|
|
161583
161583
|
static resolveWorkerURL = async (d) => {
|
|
161584
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
161584
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-CQNSvlud.js");
|
|
161585
161585
|
return new URL(c[d], n);
|
|
161586
161586
|
};
|
|
161587
161587
|
static createWorker = async (d) => {
|
|
@@ -161589,12 +161589,12 @@ class WorkerFactory {
|
|
|
161589
161589
|
let c;
|
|
161590
161590
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
161591
161591
|
/* @vite-ignore */
|
|
161592
|
-
"./snarkjsWorkerLogic-
|
|
161592
|
+
"./snarkjsWorkerLogic-CLrSWcNt.js"
|
|
161593
161593
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
161594
161594
|
return zkProofWorkerLogic;
|
|
161595
161595
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
161596
161596
|
/* @vite-ignore */
|
|
161597
|
-
"./utxoWorkerLogic-
|
|
161597
|
+
"./utxoWorkerLogic-BgOyVxuc.js"
|
|
161598
161598
|
)), c.default;
|
|
161599
161599
|
}
|
|
161600
161600
|
const n = await WorkerFactory.resolveWorkerURL(d);
|