@hinkal/common 0.0.67 → 0.0.69
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/{snarkjsWorkerLauncher-CAfPlZZk.js → snarkjsWorkerLauncher-BvlkhcoG.js} +1 -1
- package/assets/{snarkjsWorkerLogic-BkSolcWj.js → snarkjsWorkerLogic-PaPhlcXM.js} +4 -3
- package/assets/{snarkjsWorkerLogic-CfOGOfbH.js → snarkjsWorkerLogic-lF_GoZvZ.js} +3 -2
- package/assets/{utxoWorkerLogic-YmFgVUCJ.js → utxoWorkerLogic-B4G5_oGC.js} +2 -2
- package/assets/{viteWorkerURL.constant-DU3D7LKk.js → viteWorkerURL.constant-CgwN0AtP.js} +3 -3
- package/assets/{zkProofWorkerLauncher-C2KuMm7O.js → zkProofWorkerLauncher-BUnka4vM.js} +1 -1
- package/assets/{zkProofWorkerLogic-Bd0sRQ50.js → zkProofWorkerLogic-2Y3vwGGg.js} +57777 -57803
- package/{index-BCgedduK.mjs → index-Dt0DvKhx.mjs} +163 -157
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-B7Hr8R4L.mjs → snarkjsWorkerLogic-13VPb8Lr.mjs} +4 -3
- package/{utxoWorkerLogic-BEfHrOd3.mjs → utxoWorkerLogic-Fd42zERH.mjs} +2 -2
- package/viteWorkerURL.constant-Zb9b1rwg.mjs +9 -0
- package/{workerProxy-D7RxpMZi.mjs → workerProxy-B2Utj5Kd.mjs} +1 -1
- package/{zkProofWorkerLogic-C0Khxd9i.mjs → zkProofWorkerLogic-Dwhh2cXc.mjs} +2 -2
- package/viteWorkerURL.constant-Dj8YKvHN.mjs +0 -9
|
@@ -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("./snarkjsWorkerLogic-
|
|
1195
|
+
const Tt = import("./snarkjsWorkerLogic-lF_GoZvZ.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
1197
|
const { onWorkerMessage: f } = await Tt;
|
|
1198
1198
|
f(h.data);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { p as Se, B as Lo } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { r as sn, g as ja, a as mo, b as bo, c as en, e as $a, d as Ga, u as Un, f as yo } from "./zkProofWorkerLogic-
|
|
1
|
+
import { p as Se, B as Lo } from "./zkProofWorkerLauncher-BUnka4vM.js";
|
|
2
|
+
import { r as sn, g as ja, a as mo, b as bo, c as en, e as $a, d as Ga, u as Un, f as yo } from "./zkProofWorkerLogic-2Y3vwGGg.js";
|
|
3
3
|
const Co = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
4
4
|
function rn(c, t) {
|
|
5
5
|
if (!t || t == 10)
|
|
@@ -15666,12 +15666,13 @@ const il = typeof Se < "u" && Se.versions != null && Se.versions.node != null, x
|
|
|
15666
15666
|
}
|
|
15667
15667
|
} = c.metadata;
|
|
15668
15668
|
let C = e, l = n;
|
|
15669
|
-
if (console.log({ isWebpack: xn }), il) {
|
|
15669
|
+
if (console.log({ isWebpack: xn, wasmFilePath: e }), il) {
|
|
15670
15670
|
g && !xn ? (C = `test/circuits/${e}`, l = `test/circuits/${n}`) : xn && (C = `libs/hardhat/test/circuits/${e}`, l = `libs/hardhat/test/circuits/${n}`);
|
|
15671
15671
|
const o = require("path");
|
|
15672
15672
|
C = o.resolve(C), l = o.resolve(l);
|
|
15673
15673
|
} else
|
|
15674
15674
|
a === d.localhost && (C = `${s}/${e}`, l = `${s}/${n}`);
|
|
15675
|
+
console.log({ wasmFullFilePath: C });
|
|
15675
15676
|
try {
|
|
15676
15677
|
const { proof: o, publicSignals: y } = await Ir(t, C, l), E = await Or(o, y), m = JSON.parse(`[${E}]`);
|
|
15677
15678
|
Qi.postMessageToMainThread({ zkCallData: m, proof: o, publicSignals: y });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-
|
|
1
|
+
import { p as process$1, d as dist, B as Buffer$C } from "./snarkjsWorkerLauncher-BvlkhcoG.js";
|
|
2
2
|
class WorkerProxy {
|
|
3
3
|
isNode = !1;
|
|
4
4
|
/**
|
|
@@ -37296,12 +37296,13 @@ const isNode = typeof process$1 < "u" && process$1.versions != null && process$1
|
|
|
37296
37296
|
}
|
|
37297
37297
|
} = c.metadata;
|
|
37298
37298
|
let S = n, B = a;
|
|
37299
|
-
if (console.log({ isWebpack }), isNode) {
|
|
37299
|
+
if (console.log({ isWebpack, wasmFilePath: n }), isNode) {
|
|
37300
37300
|
A && !isWebpack ? (S = `test/circuits/${n}`, B = `test/circuits/${a}`) : isWebpack && (S = `libs/hardhat/test/circuits/${n}`, B = `libs/hardhat/test/circuits/${a}`);
|
|
37301
37301
|
const _ = require("path");
|
|
37302
37302
|
S = _.resolve(S), B = _.resolve(B);
|
|
37303
37303
|
} else
|
|
37304
37304
|
d === M.localhost && (S = `${u}/${n}`, B = `${u}/${a}`);
|
|
37305
|
+
console.log({ wasmFullFilePath: S });
|
|
37305
37306
|
try {
|
|
37306
37307
|
const { proof: _, publicSignals: I } = await groth16FullProve(t, S, B), O = await groth16ExportSolidityCallData(_, I), $ = JSON.parse(`[${O}]`);
|
|
37307
37308
|
workerProxy.postMessageToMainThread({ zkCallData: $, proof: _, publicSignals: I });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as U } from "./zkProofWorkerLauncher-
|
|
2
|
-
import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-
|
|
1
|
+
import { B as U } from "./zkProofWorkerLauncher-BUnka4vM.js";
|
|
2
|
+
import { U as l, h as T, f, i as I, j as y, k as m, l as h, p as S } from "./zkProofWorkerLogic-2Y3vwGGg.js";
|
|
3
3
|
const g = (e) => {
|
|
4
4
|
const t = T.decode(
|
|
5
5
|
["uint256", "address", "tuple(uint256, uint256, uint256, uint256)", "uint256", "uint256"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W as r } from "./zkProofWorkerLogic-
|
|
2
|
-
import "./zkProofWorkerLauncher-
|
|
3
|
-
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-
|
|
1
|
+
import { W as r } from "./zkProofWorkerLogic-2Y3vwGGg.js";
|
|
2
|
+
import "./zkProofWorkerLauncher-BUnka4vM.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-BvlkhcoG.js", import.meta.url).href, a = "" + new URL("utxoWorkerLauncher-DnwHvvqe.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-2Y3vwGGg.js").then(function(h) {
|
|
1196
1196
|
return h.z;
|
|
1197
1197
|
});
|
|
1198
1198
|
addEventListener("message", async (h) => {
|