@hinkal/common 0.0.102 → 0.0.104
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/README.md +18 -11
- package/{index-f5eNXqZp.mjs → index-DbehuQxV.mjs} +22 -17
- package/index.mjs +1 -1
- package/package.json +1 -1
- package/{utxoWorkerLogic-BFMMdUgE.mjs → utxoWorkerLogic-D7NuHk_K.mjs} +1 -1
- package/{viteWorkerURL.constant-B4zHpxcT.mjs → viteWorkerURL.constant-Bc7ufzqC.mjs} +1 -1
- package/{zkProofWorkerLogic-CtgrDfdp.mjs → zkProofWorkerLogic-Bnalmuka.mjs} +1 -1
package/README.md
CHANGED
|
@@ -22,10 +22,10 @@ yarn add @hinkal/common
|
|
|
22
22
|
|
|
23
23
|
1. Import hinkal from @hinkal/common package and initiate a Hinkal instance:
|
|
24
24
|
|
|
25
|
-
```
|
|
26
|
-
|
|
25
|
+
```typescript
|
|
26
|
+
import { Hinkal } from '@hinkal/common';
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const hinkal = new Hinkal<Connector>();
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
2. Initialize a ProviderAdapter object, where the connector should be an instance of the wagmi Connector.
|
|
@@ -51,16 +51,20 @@ const balances = await hinkal.getBalances();
|
|
|
51
51
|
5. A user can deposit to their shielded account using:
|
|
52
52
|
|
|
53
53
|
```typescript
|
|
54
|
-
|
|
54
|
+
function deposit(erc20addresses: string[], amountChanges: bigint[]): Promise<TransactionObject>;
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
where erc20Addresses is an array of token addresses, and amountChanges represents the token amounts for the deposit.
|
|
58
58
|
|
|
59
59
|
6. Once a user’s balance is updated, they can perform any smart contract interaction:
|
|
60
60
|
|
|
61
|
-
|
|
62
61
|
```typescript
|
|
63
|
-
|
|
62
|
+
function actionPrivateWallet(
|
|
63
|
+
erc20Addresses: string[],
|
|
64
|
+
amountChanges: bigint[],
|
|
65
|
+
onChainCreation: boolean[],
|
|
66
|
+
ops: string[],
|
|
67
|
+
): Promise<TransactionObject>;
|
|
64
68
|
```
|
|
65
69
|
|
|
66
70
|
where onChainCreation indicates the amounts of tokens that are uncertain before the transaction is executed on-chain. The ops array is an encoded array of user operations.
|
|
@@ -72,15 +76,18 @@ Before interacting with Hinkal smart contracts, a user needs to mint an access t
|
|
|
72
76
|
To check whether the user already has an access token, one can use the checkAccessToken function:
|
|
73
77
|
|
|
74
78
|
```typescript
|
|
75
|
-
|
|
79
|
+
function checkAccessToken(): Promise<boolean>;
|
|
76
80
|
```
|
|
81
|
+
|
|
77
82
|
If the user does not have an access token, one of the compliance providers should be used to pass the check. To view the available providers:
|
|
83
|
+
|
|
78
84
|
```typescript
|
|
79
|
-
|
|
85
|
+
function getSupportedPassportLinks(): string[];
|
|
80
86
|
```
|
|
81
87
|
|
|
82
88
|
Once the user has passed the check, they can mint an access token using:
|
|
89
|
+
|
|
83
90
|
```typescript
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
```
|
|
91
|
+
const { signatureData } = await hinkal.getAPI().getAccessTokenSignature(chainId, ethereumAddress, accessKey);
|
|
92
|
+
await mintAccessToken(this, signatureData);
|
|
93
|
+
```
|
|
@@ -276561,21 +276561,28 @@ var doEval = function a(t) {
|
|
|
276561
276561
|
}
|
|
276562
276562
|
}
|
|
276563
276563
|
return T;
|
|
276564
|
-
}, callBind$2 = { exports: {} },
|
|
276565
|
-
|
|
276566
|
-
|
|
276567
|
-
|
|
276568
|
-
|
|
276569
|
-
|
|
276570
|
-
|
|
276571
|
-
|
|
276564
|
+
}, callBind$2 = { exports: {} }, esDefineProperty, hasRequiredEsDefineProperty;
|
|
276565
|
+
function requireEsDefineProperty() {
|
|
276566
|
+
if (hasRequiredEsDefineProperty)
|
|
276567
|
+
return esDefineProperty;
|
|
276568
|
+
hasRequiredEsDefineProperty = 1;
|
|
276569
|
+
var a = getIntrinsic, t = a("%Object.defineProperty%", !0) || !1;
|
|
276570
|
+
if (t)
|
|
276571
|
+
try {
|
|
276572
|
+
t({}, "a", { value: 1 });
|
|
276573
|
+
} catch {
|
|
276574
|
+
t = !1;
|
|
276575
|
+
}
|
|
276576
|
+
return esDefineProperty = t, esDefineProperty;
|
|
276577
|
+
}
|
|
276578
|
+
var GetIntrinsic$2 = getIntrinsic, $gOPD = GetIntrinsic$2("%Object.getOwnPropertyDescriptor%", !0);
|
|
276572
276579
|
if ($gOPD)
|
|
276573
276580
|
try {
|
|
276574
276581
|
$gOPD([], "length");
|
|
276575
276582
|
} catch {
|
|
276576
276583
|
$gOPD = null;
|
|
276577
276584
|
}
|
|
276578
|
-
var gopd$1 = $gOPD, $defineProperty$1 =
|
|
276585
|
+
var gopd$1 = $gOPD, $defineProperty$1 = requireEsDefineProperty(), $SyntaxError = syntax, $TypeError$1 = type, gopd = gopd$1, defineDataProperty$1 = function(t, n, c) {
|
|
276579
276586
|
if (!t || typeof t != "object" && typeof t != "function")
|
|
276580
276587
|
throw new $TypeError$1("`obj` must be an object or a function`");
|
|
276581
276588
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -276600,7 +276607,7 @@ var gopd$1 = $gOPD, $defineProperty$1 = esDefineProperty, $SyntaxError = syntax,
|
|
|
276600
276607
|
t[n] = c;
|
|
276601
276608
|
else
|
|
276602
276609
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
276603
|
-
}, $defineProperty =
|
|
276610
|
+
}, $defineProperty = requireEsDefineProperty(), hasPropertyDescriptors = function() {
|
|
276604
276611
|
return !!$defineProperty;
|
|
276605
276612
|
};
|
|
276606
276613
|
hasPropertyDescriptors.hasArrayLengthDefineBug = function() {
|
|
@@ -276637,7 +276644,7 @@ var hasPropertyDescriptors_1 = hasPropertyDescriptors, GetIntrinsic$1 = getIntri
|
|
|
276637
276644
|
)), t;
|
|
276638
276645
|
};
|
|
276639
276646
|
(function(a) {
|
|
276640
|
-
var t = functionBind, n = getIntrinsic, c = setFunctionLength, l = type, h = n("%Function.prototype.apply%"), A = n("%Function.prototype.call%"), T = n("%Reflect.apply%", !0) || t.call(A, h), O =
|
|
276647
|
+
var t = functionBind, n = getIntrinsic, c = setFunctionLength, l = type, h = n("%Function.prototype.apply%"), A = n("%Function.prototype.call%"), T = n("%Reflect.apply%", !0) || t.call(A, h), O = requireEsDefineProperty(), Q = n("%Math.max%");
|
|
276641
276648
|
a.exports = function(S) {
|
|
276642
276649
|
if (typeof S != "function")
|
|
276643
276650
|
throw new l("a function is required");
|
|
@@ -288406,7 +288413,7 @@ class WorkerFactory {
|
|
|
288406
288413
|
constructor() {
|
|
288407
288414
|
}
|
|
288408
288415
|
static resolveWorkerURL = async (t) => {
|
|
288409
|
-
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-
|
|
288416
|
+
const n = typeof document < "u" && document?.location?.href || "", { workerViteURL: c } = await import("./viteWorkerURL.constant-Bc7ufzqC.mjs");
|
|
288410
288417
|
return new URL(c[t], n);
|
|
288411
288418
|
};
|
|
288412
288419
|
static createWorker = async (t) => {
|
|
@@ -288417,10 +288424,10 @@ class WorkerFactory {
|
|
|
288417
288424
|
"./snarkjsWorkerLogic-BpNWzeoy.mjs"
|
|
288418
288425
|
) : t === WorkerVariant.ZKProof ? c = await import(
|
|
288419
288426
|
/* @vite-ignore */
|
|
288420
|
-
"./zkProofWorkerLogic-
|
|
288427
|
+
"./zkProofWorkerLogic-Bnalmuka.mjs"
|
|
288421
288428
|
) : t === WorkerVariant.UTXO && (c = await import(
|
|
288422
288429
|
/* @vite-ignore */
|
|
288423
|
-
"./utxoWorkerLogic-
|
|
288430
|
+
"./utxoWorkerLogic-D7NuHk_K.mjs"
|
|
288424
288431
|
)), c.default;
|
|
288425
288432
|
}
|
|
288426
288433
|
const n = await WorkerFactory.resolveWorkerURL(t);
|
|
@@ -288976,9 +288983,7 @@ const emporiumOp = (a, t, n, c, l) => {
|
|
|
288976
288983
|
te,
|
|
288977
288984
|
ne,
|
|
288978
288985
|
defaultHookData
|
|
288979
|
-
)
|
|
288980
|
-
console.log({ circomTimestamp: le.timeStamp });
|
|
288981
|
-
const _e = {
|
|
288986
|
+
), _e = {
|
|
288982
288987
|
tokenNumber: n.length,
|
|
288983
288988
|
nullifierAmount: n[0].length,
|
|
288984
288989
|
outputAmount: c[0].length
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b$ as s, aR as t, aQ as r, B as i, aT as o, aS as n, cA as c, cB as d, cE as l, cC as g, cD as p, c$ as A, fw as b, by as u, d8 as y, dh as T, fl as R, d0 as P, g0 as f, b_ as m, bi as S, bj as I, bq as k, f_ as C, bx as E, fe as h, fk as D, fj as v, cY as x, cX as L, aV as U, a_ as F, aZ as _, aY as B, b5 as M, d1 as O, ck as N, cW as w, aq as V, fg as W, ff as H, cO as G, di as K, aw as Y, av as z, cn as Z, gj as q, I as j, fr as Q, dk as X, fh as J, fu as $, fv as aa, fQ as ea, fn as sa, fm as ta, fN as ra, M as ia, cz as oa, cM as na, bz as ca, f6 as da, b4 as la, b1 as ga, aX as pa, aN as Aa, fZ as ba, fo as ua, gc as ya, gb as Ta, g9 as Ra, ga as Pa, fp as fa, ge as ma, g8 as Sa, g6 as Ia, g7 as ka, gd as Ca, g3 as Ea, g4 as ha, g5 as Da, fX as va, a6 as xa, aU as La, b2 as Ua, bT as Fa, c0 as _a, fW as Ba, f$ as Ma, fV as Oa, fU as Na, fT as wa, fS as Va, fR as Wa, a$ as Ha, b3 as Ga, b0 as Ka, aW as Ya, fx as za, fi as Za, gi as qa, aO as ja, fP as Qa, fY as Xa, cG as Ja, cH as $a, cJ as ae, cI as ee, d2 as se, d5 as te, d4 as re, d6 as ie, gh as oe, cS as ne, d as ce, U as de, fs as le, cg as ge, ft as pe, fq as Ae, cL as be, d7 as ue, ch as ye, dF as Te, ex as Re, aL as Pe, aM as fe, bD as me, aa as Se, T as Ie, K as ke, c7 as Ce, bF as Ee, ad as he, Y as De, O as ve, ai as xe, aj as Le, cf as Ue, eA as Fe, bG as _e, af as Be, $ as Me, Q as Oe, bo as Ne, ds as we, dy as Ve, dz as We, ag as He, a0 as Ge, R as Ke, c1 as Ye, a9 as ze, V as Ze, L as qe, c5 as je, bZ as Qe, e5 as Xe, eK as Je, eL as $e, a as as, eM as es, c as ss, eN as ts, eR as rs, eS as is, dt as os, es as ns, f2 as cs, dr as ds, r as ls, t as gs, ed as ps, eg as As, ak as bs, ar as us, cV as ys, dl as Ts, z as Rs, h as Ps, bs as fs, bt as ms, a2 as Ss, bu as Is, eJ as ks, eI as Cs, aJ as Es, dY as hs, eQ as Ds, dM as vs, f1 as xs, ap as Ls, bl as Us, gf as Fs, gg as _s, bk as Bs, bd as Ms, cF as Os, bn as Ns, d3 as ws, f8 as Vs, fD as Ws, dQ as Hs, e7 as Gs, e8 as Ks, ci as Ys, f as zs, f0 as Zs, g as qs, e as js, fb as Qs, fc as Xs, fd as Js, b6 as $s, eP as at, e9 as et, eY as st, eZ as tt, fO as rt, f4 as it, fz as ot, fa as nt, g2 as ct, g1 as dt, f5 as lt, f3 as gt, e$ as pt, cj as At, eW as bt, c2 as ut, bB as yt, ab as Tt, S as Rt, J as Pt, c4 as ft, bP as mt, el as St, be as It, cK as kt, cT as Ct, c_ as Et, cb as ht, dA as Dt, eT as vt, dP as xt, aC as Lt, aE as Ut, aA as Ft, aD as _t, en as Bt, eo as Mt, eq as Ot, er as Nt, et as wt, aB as Vt, eX as Wt, u as Ht, e4 as Gt, s as Kt, c3 as Yt, eU as zt, eV as Zt, bI as qt, cm as jt, bv as Qt, bw as Xt, m as Jt, n as $t, o as ar, q as er, bH as sr, fH as tr, E as rr, F as ir, k as or, fF as nr, ez as cr, a7 as dr, dS as lr, dT as gr, cU as pr, G as Ar, dO as br, dN as ur, dR as yr, a8 as Tr, e1 as Rr, v as Pr, bA as fr, cP as mr, dU as Sr, dH as Ir, ax as kr, aK as Cr, A as Er, ev as hr, eu as Dr, dZ as vr, e2 as xr, e3 as Lr, fM as Ur, an as Fr, eF as _r, eG as Br, c8 as Mr, ay as Or, H as Nr, dX as wr, j as Vr, ew as Wr, az as Hr, e_ as Gr, w as Kr, x as Yr, y as zr, eD as Zr, eE as qr, eC as jr, dB as Qr, fG as Xr, c9 as Jr, fL as $r, co as ai, cp as ei, cq as si, cr as ti, cs as ri, ct as ii, cx as oi, cu as ni, cv as ci, cw as di, fC as li, f9 as gi, cl as pi, b9 as Ai, am as bi, ef as ui, ba as yi, ee as Ti, at as Ri, as as Pi, au as fi, b8 as mi, b7 as Si, fK as Ii, ca as ki, ce as Ci, da as Ei, bM as hi, db as Di, bO as vi, df as xi, bK as Li, dc as Ui, bJ as Fi, dd as _i, bL as Bi, dL as Mi, ah as Oi, al as Ni, a1 as wi, l as Vi, eh as Wi, ei as Hi, bW as Gi, bX as Ki, C as Yi, D as zi, bQ as Zi, dG as qi, dm as ji, dn as Qi, fB as Xi, cN as Ji, ao as $i, bc as ao, dp as eo, dq as so, bE as to, ae as ro, dj as io, c6 as oo, _ as no, P as co, d_ as lo, bg as go, fI as po, ek as Ao, bh as bo, de as uo, bN as yo, bV as To, bC as Ro, ac as Po, X as fo, N as mo, p as So, cd as Io, cc as ko, b as Co, bp as Eo, br as ho, e0 as Do, d$ as vo, f7 as xo, cZ as Lo, bY as Uo, em as Fo, bU as _o, eb as Bo, dV as Mo, dJ as Oo, cy as No, dW as wo, cQ as Vo, ey as Wo, eH as Ho, d9 as Go, dK as Ko, eB as Yo, fA as zo, eO as Zo, ea as qo, dI as jo, bf as Qo, fy as Xo, bS as Jo, aP as $o, bm as an, du as en, dv as sn, ep as tn, dD as rn, fJ as on, dx as nn, dw as cn, ec as dn, cR as ln, dg as gn, dC as pn, dE as An, aH as bn, aF as un, aG as yn, aI as Tn, a4 as Rn, a3 as Pn, a5 as fn, ej as mn, e6 as Sn, fE as In, bR as kn, bb as Cn } from "./index-
|
|
1
|
+
import { b$ as s, aR as t, aQ as r, B as i, aT as o, aS as n, cA as c, cB as d, cE as l, cC as g, cD as p, c$ as A, fw as b, by as u, d8 as y, dh as T, fl as R, d0 as P, g0 as f, b_ as m, bi as S, bj as I, bq as k, f_ as C, bx as E, fe as h, fk as D, fj as v, cY as x, cX as L, aV as U, a_ as F, aZ as _, aY as B, b5 as M, d1 as O, ck as N, cW as w, aq as V, fg as W, ff as H, cO as G, di as K, aw as Y, av as z, cn as Z, gj as q, I as j, fr as Q, dk as X, fh as J, fu as $, fv as aa, fQ as ea, fn as sa, fm as ta, fN as ra, M as ia, cz as oa, cM as na, bz as ca, f6 as da, b4 as la, b1 as ga, aX as pa, aN as Aa, fZ as ba, fo as ua, gc as ya, gb as Ta, g9 as Ra, ga as Pa, fp as fa, ge as ma, g8 as Sa, g6 as Ia, g7 as ka, gd as Ca, g3 as Ea, g4 as ha, g5 as Da, fX as va, a6 as xa, aU as La, b2 as Ua, bT as Fa, c0 as _a, fW as Ba, f$ as Ma, fV as Oa, fU as Na, fT as wa, fS as Va, fR as Wa, a$ as Ha, b3 as Ga, b0 as Ka, aW as Ya, fx as za, fi as Za, gi as qa, aO as ja, fP as Qa, fY as Xa, cG as Ja, cH as $a, cJ as ae, cI as ee, d2 as se, d5 as te, d4 as re, d6 as ie, gh as oe, cS as ne, d as ce, U as de, fs as le, cg as ge, ft as pe, fq as Ae, cL as be, d7 as ue, ch as ye, dF as Te, ex as Re, aL as Pe, aM as fe, bD as me, aa as Se, T as Ie, K as ke, c7 as Ce, bF as Ee, ad as he, Y as De, O as ve, ai as xe, aj as Le, cf as Ue, eA as Fe, bG as _e, af as Be, $ as Me, Q as Oe, bo as Ne, ds as we, dy as Ve, dz as We, ag as He, a0 as Ge, R as Ke, c1 as Ye, a9 as ze, V as Ze, L as qe, c5 as je, bZ as Qe, e5 as Xe, eK as Je, eL as $e, a as as, eM as es, c as ss, eN as ts, eR as rs, eS as is, dt as os, es as ns, f2 as cs, dr as ds, r as ls, t as gs, ed as ps, eg as As, ak as bs, ar as us, cV as ys, dl as Ts, z as Rs, h as Ps, bs as fs, bt as ms, a2 as Ss, bu as Is, eJ as ks, eI as Cs, aJ as Es, dY as hs, eQ as Ds, dM as vs, f1 as xs, ap as Ls, bl as Us, gf as Fs, gg as _s, bk as Bs, bd as Ms, cF as Os, bn as Ns, d3 as ws, f8 as Vs, fD as Ws, dQ as Hs, e7 as Gs, e8 as Ks, ci as Ys, f as zs, f0 as Zs, g as qs, e as js, fb as Qs, fc as Xs, fd as Js, b6 as $s, eP as at, e9 as et, eY as st, eZ as tt, fO as rt, f4 as it, fz as ot, fa as nt, g2 as ct, g1 as dt, f5 as lt, f3 as gt, e$ as pt, cj as At, eW as bt, c2 as ut, bB as yt, ab as Tt, S as Rt, J as Pt, c4 as ft, bP as mt, el as St, be as It, cK as kt, cT as Ct, c_ as Et, cb as ht, dA as Dt, eT as vt, dP as xt, aC as Lt, aE as Ut, aA as Ft, aD as _t, en as Bt, eo as Mt, eq as Ot, er as Nt, et as wt, aB as Vt, eX as Wt, u as Ht, e4 as Gt, s as Kt, c3 as Yt, eU as zt, eV as Zt, bI as qt, cm as jt, bv as Qt, bw as Xt, m as Jt, n as $t, o as ar, q as er, bH as sr, fH as tr, E as rr, F as ir, k as or, fF as nr, ez as cr, a7 as dr, dS as lr, dT as gr, cU as pr, G as Ar, dO as br, dN as ur, dR as yr, a8 as Tr, e1 as Rr, v as Pr, bA as fr, cP as mr, dU as Sr, dH as Ir, ax as kr, aK as Cr, A as Er, ev as hr, eu as Dr, dZ as vr, e2 as xr, e3 as Lr, fM as Ur, an as Fr, eF as _r, eG as Br, c8 as Mr, ay as Or, H as Nr, dX as wr, j as Vr, ew as Wr, az as Hr, e_ as Gr, w as Kr, x as Yr, y as zr, eD as Zr, eE as qr, eC as jr, dB as Qr, fG as Xr, c9 as Jr, fL as $r, co as ai, cp as ei, cq as si, cr as ti, cs as ri, ct as ii, cx as oi, cu as ni, cv as ci, cw as di, fC as li, f9 as gi, cl as pi, b9 as Ai, am as bi, ef as ui, ba as yi, ee as Ti, at as Ri, as as Pi, au as fi, b8 as mi, b7 as Si, fK as Ii, ca as ki, ce as Ci, da as Ei, bM as hi, db as Di, bO as vi, df as xi, bK as Li, dc as Ui, bJ as Fi, dd as _i, bL as Bi, dL as Mi, ah as Oi, al as Ni, a1 as wi, l as Vi, eh as Wi, ei as Hi, bW as Gi, bX as Ki, C as Yi, D as zi, bQ as Zi, dG as qi, dm as ji, dn as Qi, fB as Xi, cN as Ji, ao as $i, bc as ao, dp as eo, dq as so, bE as to, ae as ro, dj as io, c6 as oo, _ as no, P as co, d_ as lo, bg as go, fI as po, ek as Ao, bh as bo, de as uo, bN as yo, bV as To, bC as Ro, ac as Po, X as fo, N as mo, p as So, cd as Io, cc as ko, b as Co, bp as Eo, br as ho, e0 as Do, d$ as vo, f7 as xo, cZ as Lo, bY as Uo, em as Fo, bU as _o, eb as Bo, dV as Mo, dJ as Oo, cy as No, dW as wo, cQ as Vo, ey as Wo, eH as Ho, d9 as Go, dK as Ko, eB as Yo, fA as zo, eO as Zo, ea as qo, dI as jo, bf as Qo, fy as Xo, bS as Jo, aP as $o, bm as an, du as en, dv as sn, ep as tn, dD as rn, fJ as on, dx as nn, dw as cn, ec as dn, cR as ln, dg as gn, dC as pn, dE as An, aH as bn, aF as un, aG as yn, aI as Tn, a4 as Rn, a3 as Pn, a5 as fn, ej as mn, e6 as Sn, fE as In, bR as kn, bb as Cn } from "./index-DbehuQxV.mjs";
|
|
2
2
|
export {
|
|
3
3
|
s as ACCESS_TOKEN_MINTING_POINTS,
|
|
4
4
|
t as AIPRISE_KYB_TEMPLATE_ID_PROD,
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as p, d as h, e as y, f, g as U, l as d, h as g, b as x, i as u } from "./index-
|
|
1
|
+
import { U as p, d as h, e as y, f, g as U, l as d, h as g, b as x, i as u } from "./index-DbehuQxV.mjs";
|
|
2
2
|
import { W as T } from "./workerProxy-BDj498Ht.mjs";
|
|
3
3
|
const i = new T(), v = async ({ data: e }) => {
|
|
4
4
|
const { utxos: s, nullifiers: r } = e, o = s.filter((t) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as r } from "./index-
|
|
1
|
+
import { W as r } from "./index-DbehuQxV.mjs";
|
|
2
2
|
const o = "" + new URL("assets/zkProofWorkerLauncher-C-pvCm0b.js", import.meta.url).href, e = "" + new URL("assets/snarkjsWorkerLauncher-fuD5h_j0.js", import.meta.url).href, s = "" + new URL("assets/utxoWorkerLauncher-TRT6Cdzd.js", import.meta.url).href, a = {
|
|
3
3
|
[r.ZKProof]: o,
|
|
4
4
|
[r.SnarkJS]: e,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as p, p as g, U as T, c as u, a as I, b as k, Z as m, d as C } from "./index-
|
|
1
|
+
import { M as p, p as g, U as T, c as u, a as I, b as k, Z as m, d as C } from "./index-DbehuQxV.mjs";
|
|
2
2
|
import { W as M } from "./workerProxy-BDj498Ht.mjs";
|
|
3
3
|
const d = new M(), A = (e) => {
|
|
4
4
|
const { inputUtxosSerialized: s, merkleTreeSerialized: n } = e.data, l = n.tree, a = new Map(
|