@hinkal/common 0.0.70 → 0.0.72
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-PNxvlwKO.js → snarkjsWorkerLauncher-BazhiJ3V.js} +1 -1
- package/assets/{snarkjsWorkerLogic-BM5eHRag.js → snarkjsWorkerLogic-DRlN78hN.js} +2 -3
- package/assets/{snarkjsWorkerLogic-ohVl0vL6.js → snarkjsWorkerLogic-xEosgVqd.js} +3 -4
- package/assets/{utxoWorkerLogic-ZKl217ml.js → utxoWorkerLogic-CtGXPhV-.js} +2 -2
- package/assets/{viteWorkerURL.constant-BRHuvXSB.js → viteWorkerURL.constant-DwTgUInh.js} +3 -3
- package/assets/{zkProofWorkerLauncher-dWCGQ8dO.js → zkProofWorkerLauncher--xKCZpsZ.js} +1 -1
- package/assets/{zkProofWorkerLogic-DQ4fDadZ.js → zkProofWorkerLogic-BR49pUpc.js} +4 -4
- package/{index-BJbiA_Ps.mjs → index-COtY0yBH.mjs} +39547 -39694
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{snarkjsWorkerLogic-E1iBj06f.mjs → snarkjsWorkerLogic-Bs3SIoLL.mjs} +3 -4
- package/{utxoWorkerLogic-D5I_iD0G.mjs → utxoWorkerLogic-CAL9q5Kd.mjs} +2 -2
- package/{viteWorkerURL.constant-Cd5K3aIj.mjs → viteWorkerURL.constant-C-PYOxoi.mjs} +2 -2
- package/{workerProxy-Cr0jYPSU.mjs → workerProxy-DLbCe7TH.mjs} +1 -1
- package/{zkProofWorkerLogic-CcfKXWbE.mjs → zkProofWorkerLogic-D6KYVWG7.mjs} +2 -2
|
@@ -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-DRlN78hN.js");
|
|
1196
1196
|
addEventListener("message", async (h) => {
|
|
1197
1197
|
const { onWorkerMessage: f } = await Tt;
|
|
1198
1198
|
f(h.data);
|
|
@@ -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-BazhiJ3V.js";
|
|
2
2
|
class WorkerProxy {
|
|
3
3
|
isNode = !1;
|
|
4
4
|
/**
|
|
@@ -37300,8 +37300,7 @@ const isNode = typeof process$1 < "u" && process$1.versions != null && process$1
|
|
|
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
|
-
}
|
|
37304
|
-
d === M.localhost && (S = `${u}/${n}`, B = `${u}/${a}`);
|
|
37303
|
+
}
|
|
37305
37304
|
console.log({ wasmFullFilePath: S });
|
|
37306
37305
|
try {
|
|
37307
37306
|
const { proof: _, publicSignals: I } = await groth16FullProve(t, S, B), O = await groth16ExportSolidityCallData(_, I), $ = JSON.parse(`[${O}]`);
|
|
@@ -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--xKCZpsZ.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-BR49pUpc.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)
|
|
@@ -15670,8 +15670,7 @@ const il = typeof Se < "u" && Se.versions != null && Se.versions.node != null, x
|
|
|
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
|
-
}
|
|
15674
|
-
a === d.localhost && (C = `${s}/${e}`, l = `${s}/${n}`);
|
|
15673
|
+
}
|
|
15675
15674
|
console.log({ wasmFullFilePath: C });
|
|
15676
15675
|
try {
|
|
15677
15676
|
const { proof: o, publicSignals: y } = await Ir(t, C, l), E = await Or(o, y), m = JSON.parse(`[${E}]`);
|
|
@@ -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--xKCZpsZ.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-BR49pUpc.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-BR49pUpc.js";
|
|
2
|
+
import "./zkProofWorkerLauncher--xKCZpsZ.js";
|
|
3
|
+
var o = self.location.href, e = "" + new URL("snarkjsWorkerLauncher-BazhiJ3V.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-BR49pUpc.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--xKCZpsZ.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)
|
|
@@ -165242,7 +165242,7 @@ class WorkerFactory {
|
|
|
165242
165242
|
constructor() {
|
|
165243
165243
|
}
|
|
165244
165244
|
static resolveWorkerURL = async (d) => {
|
|
165245
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
165245
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-DwTgUInh.js");
|
|
165246
165246
|
return new URL(c[d], n);
|
|
165247
165247
|
};
|
|
165248
165248
|
static createWorker = async (d) => {
|
|
@@ -165250,12 +165250,12 @@ class WorkerFactory {
|
|
|
165250
165250
|
let c;
|
|
165251
165251
|
return d === WorkerVariant.SnarkJS ? c = await import(
|
|
165252
165252
|
/* @vite-ignore */
|
|
165253
|
-
"./snarkjsWorkerLogic-
|
|
165253
|
+
"./snarkjsWorkerLogic-xEosgVqd.js"
|
|
165254
165254
|
) : d === WorkerVariant.ZKProof ? c = await Promise.resolve().then(function() {
|
|
165255
165255
|
return zkProofWorkerLogic;
|
|
165256
165256
|
}) : d === WorkerVariant.UTXO && (c = await import(
|
|
165257
165257
|
/* @vite-ignore */
|
|
165258
|
-
"./utxoWorkerLogic-
|
|
165258
|
+
"./utxoWorkerLogic-CtGXPhV-.js"
|
|
165259
165259
|
)), c.default;
|
|
165260
165260
|
}
|
|
165261
165261
|
const n = await WorkerFactory.resolveWorkerURL(d);
|