@hinkal/common 0.0.14 → 0.0.15
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-DbN7AhXw.js → snarkjsWorkerLogic-PT_bvjbJ.js} +2 -2
- package/assets/{utxoWorkerLogic-Bkshrlp4.js → utxoWorkerLogic-CaRjg9tk.js} +2 -2
- package/assets/viteWorkerURL.constant-C7fE1hzc.js +11 -0
- package/assets/{zkProofWorkerLauncher-DGaNFkI2.js → zkProofWorkerLauncher-D1ef-Gxp.js} +1 -1
- package/assets/{zkProofWorkerLogic-InUBQakA.js → zkProofWorkerLogic-BwAAGTST.js} +4 -4
- package/{index-DhzLG43o.cjs → index-B8ePiYjC.js} +24 -24
- package/{index-DT99VnQG.js → index-BZ-pPp0Y.mjs} +4023 -4010
- package/index.js +1 -448
- package/index.mjs +448 -0
- package/package.json +2 -2
- package/{snarkjsWorkerLogic-1mhiyYcS.cjs → snarkjsWorkerLogic-DertJLwB.js} +1 -1
- package/{snarkjsWorkerLogic-ByjUSKVU.js → snarkjsWorkerLogic-wQM4709R.mjs} +2 -2
- package/{utxoWorkerLogic-B2tb16OQ.js → utxoWorkerLogic-DGQxcKX5.mjs} +2 -2
- package/utxoWorkerLogic-DtyjPuS3.js +1 -0
- package/viteWorkerURL.constant-B4ERp5DP.js +1 -0
- package/viteWorkerURL.constant-DNNogPOI.mjs +9 -0
- package/zkProofWorkerLogic-C5kAcugj.js +1 -0
- package/{zkProofWorkerLogic-CZxvrCnr.js → zkProofWorkerLogic-CS9jd81C.mjs} +2 -2
- package/assets/viteWorkerURL.constant-DQ9bjg_P.js +0 -11
- package/index.cjs +0 -1
- package/utxoWorkerLogic-DtxfaOdY.cjs +0 -1
- package/viteWorkerURL.constant-CHyBNUFm.js +0 -9
- package/viteWorkerURL.constant-DafWv1zI.cjs +0 -1
- package/zkProofWorkerLogic-BMxmT4el.cjs +0 -1
- /package/{workerProxy-BDj498Ht.js → workerProxy-BDj498Ht.mjs} +0 -0
- /package/{workerProxy-C2KnRvuH.cjs → workerProxy-C2KnRvuH.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as on, r as vn, e as Ua, u as zn, a as _o } from "./zkProofWorkerLogic-
|
|
2
|
-
import { c as Ye } from "./zkProofWorkerLauncher-
|
|
1
|
+
import { f as on, r as vn, e as Ua, u as zn, a as _o } from "./zkProofWorkerLogic-BwAAGTST.js";
|
|
2
|
+
import { c as Ye } from "./zkProofWorkerLauncher-D1ef-Gxp.js";
|
|
3
3
|
const go = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function cn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as l, d as p, a as T, b as f, c as I, g as y, l as h, p as m } from "./zkProofWorkerLogic-
|
|
2
|
-
import "./zkProofWorkerLauncher-
|
|
1
|
+
import { U as l, d as p, a as T, b as f, c as I, g as y, l as h, p as m } from "./zkProofWorkerLogic-BwAAGTST.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-D1ef-Gxp.js";
|
|
3
3
|
const U = (e) => {
|
|
4
4
|
const t = p.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-BwAAGTST.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-D1ef-Gxp.js";
|
|
3
|
+
var o = self.location.href, e = "/assets/snarkjsWorkerLauncher-CaBCnle3.js", a = "/assets/utxoWorkerLauncher-TRT6Cdzd.js";
|
|
4
|
+
const t = {
|
|
5
|
+
[r.ZKProof]: o,
|
|
6
|
+
[r.SnarkJS]: e,
|
|
7
|
+
[r.UTXO]: a
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
t as workerViteURL
|
|
11
|
+
};
|
|
@@ -1190,7 +1190,7 @@ const et = () => {
|
|
|
1190
1190
|
};
|
|
1191
1191
|
globalThis.process = tt;
|
|
1192
1192
|
globalThis.Buffer = xr.Buffer;
|
|
1193
|
-
const nt = import("./zkProofWorkerLogic-
|
|
1193
|
+
const nt = import("./zkProofWorkerLogic-BwAAGTST.js").then(function(f) {
|
|
1194
1194
|
return f.z;
|
|
1195
1195
|
});
|
|
1196
1196
|
addEventListener("message", async (f) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-
|
|
1
|
+
import { g as getAugmentedNamespace, b as buffer, c as commonjsGlobal, a as getDefaultExportFromCjs$1, d as base64Js } from "./zkProofWorkerLauncher-D1ef-Gxp.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)
|
|
@@ -145760,7 +145760,7 @@ class WorkerFactory {
|
|
|
145760
145760
|
constructor() {
|
|
145761
145761
|
}
|
|
145762
145762
|
static resolveWorkerURL = async (d) => {
|
|
145763
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
145763
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-C7fE1hzc.js");
|
|
145764
145764
|
return new URL(c[d], n);
|
|
145765
145765
|
};
|
|
145766
145766
|
static createWorker = async (d) => {
|
|
@@ -145768,12 +145768,12 @@ class WorkerFactory {
|
|
|
145768
145768
|
let c;
|
|
145769
145769
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
145770
145770
|
/* @vite-ignore */
|
|
145771
|
-
"./snarkjsWorkerLogic-
|
|
145771
|
+
"./snarkjsWorkerLogic-PT_bvjbJ.js"
|
|
145772
145772
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
145773
145773
|
return zkProofWorkerLogic;
|
|
145774
145774
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
145775
145775
|
/* @vite-ignore */
|
|
145776
|
-
"./utxoWorkerLogic-
|
|
145776
|
+
"./utxoWorkerLogic-CaRjg9tk.js"
|
|
145777
145777
|
)), c.default;
|
|
145778
145778
|
}
|
|
145779
145779
|
const n = await WorkerFactory.resolveWorkerURL(d);
|