@nihilium/client-sdk 0.1.2 → 0.2.0
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/dist/{browser.esm-kreqNYRZ-BLoDyLFh.js → browser.esm-kreqNYRZ-7qAQ13Pg.js} +18 -17
- package/dist/{browser.esm-kreqNYRZ-CV3K9CfO-DeSbuL7e.js → browser.esm-kreqNYRZ-CV3K9CfO-Crj74K-4.js} +1 -1
- package/dist/index-3PKMWW6b.js +48913 -0
- package/dist/{index-C3cHMpbE-BjZqbn-8.js → index-DEtC2xfH-DOqvYJY5.js} +97 -96
- package/dist/{index-DFD-0QrS-BD9Z8naZ.js → index-DFD-0QrS-CQSN52v_.js} +15 -14
- package/dist/{index-DFD-0QrS-DqRwsoRk-DaSQ-uF-.js → index-DFD-0QrS-T8cg-3OU-Dqbi8PAZ.js} +118 -118
- package/dist/index.d.ts +1616 -1631
- package/dist/index.mjs +34 -38
- package/dist/types-C-XvYweP.js +78196 -0
- package/dist/types.d.ts +989 -0
- package/dist/types.mjs +29 -0
- package/package.json +5 -1
- package/dist/index-78RSe_cY.js +0 -126823
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as Io } from "./index-3PKMWW6b.js";
|
|
2
|
+
import { p as si } from "./types-C-XvYweP.js";
|
|
2
3
|
const Ql = [0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4];
|
|
3
4
|
function ei(i, e) {
|
|
4
5
|
if (!e || e == 10)
|
|
@@ -10618,7 +10619,7 @@ async function We(i, e) {
|
|
|
10618
10619
|
return c.toUpperCase().match(/[A-Za-z0-9]+/g).join("");
|
|
10619
10620
|
}
|
|
10620
10621
|
}
|
|
10621
|
-
var
|
|
10622
|
+
var hu = /* @__PURE__ */ Object.freeze({
|
|
10622
10623
|
__proto__: null,
|
|
10623
10624
|
getCurveFromR: ll,
|
|
10624
10625
|
getCurveFromQ: ce,
|
|
@@ -11918,7 +11919,7 @@ async function xc(i, e) {
|
|
|
11918
11919
|
let l;
|
|
11919
11920
|
return l = `[${Ee(t.pi_a[0])}, ${Ee(t.pi_a[1])}],[[${Ee(t.pi_b[0][1])}, ${Ee(t.pi_b[0][0])}],[${Ee(t.pi_b[1][1])}, ${Ee(t.pi_b[1][0])}]],[${Ee(t.pi_c[0])}, ${Ee(t.pi_c[1])}],[${n}]`, l;
|
|
11920
11921
|
}
|
|
11921
|
-
var
|
|
11922
|
+
var _u = /* @__PURE__ */ Object.freeze({
|
|
11922
11923
|
__proto__: null,
|
|
11923
11924
|
fullProve: Cc,
|
|
11924
11925
|
prove: pl,
|
|
@@ -12662,7 +12663,7 @@ async function Dc(i, e) {
|
|
|
12662
12663
|
return await Ht(t, !0), S;
|
|
12663
12664
|
}
|
|
12664
12665
|
}
|
|
12665
|
-
var
|
|
12666
|
+
var pu = /* @__PURE__ */ Object.freeze({
|
|
12666
12667
|
__proto__: null,
|
|
12667
12668
|
newAccumulator: Gc,
|
|
12668
12669
|
exportChallenge: Tc,
|
|
@@ -12887,7 +12888,7 @@ async function Xc(i, e) {
|
|
|
12887
12888
|
const t = await Il(i, !0, !0, !0, e), a = t.curve.Fr;
|
|
12888
12889
|
return delete t.curve, delete t.F, Ya(a, t);
|
|
12889
12890
|
}
|
|
12890
|
-
var
|
|
12891
|
+
var mu = /* @__PURE__ */ Object.freeze({
|
|
12891
12892
|
__proto__: null,
|
|
12892
12893
|
print: $c,
|
|
12893
12894
|
info: Jc,
|
|
@@ -12981,7 +12982,7 @@ async function id(i, e, t) {
|
|
|
12981
12982
|
return f.fromRprLE(d.slice(C * u, C * u + u));
|
|
12982
12983
|
}
|
|
12983
12984
|
}
|
|
12984
|
-
var
|
|
12985
|
+
var wu = /* @__PURE__ */ Object.freeze({
|
|
12985
12986
|
__proto__: null,
|
|
12986
12987
|
calculate: li,
|
|
12987
12988
|
debug: ed,
|
|
@@ -13774,7 +13775,7 @@ async function wd(i, e, t) {
|
|
|
13774
13775
|
let n = e[a.protocol];
|
|
13775
13776
|
return Bl.render(n, a);
|
|
13776
13777
|
}
|
|
13777
|
-
var
|
|
13778
|
+
var Lu = /* @__PURE__ */ Object.freeze({
|
|
13778
13779
|
__proto__: null,
|
|
13779
13780
|
newZKey: El,
|
|
13780
13781
|
exportBellman: ld,
|
|
@@ -15266,7 +15267,7 @@ async function Rd(i, e) {
|
|
|
15266
15267
|
n != "" && (n = n + ","), n = n + Wt(a[l]);
|
|
15267
15268
|
return `[${Wt(t.A[0])}, ${Wt(t.A[1])},${Wt(t.B[0])},${Wt(t.B[1])},${Wt(t.C[0])},${Wt(t.C[1])},${Wt(t.Z[0])},${Wt(t.Z[1])},${Wt(t.T1[0])},${Wt(t.T1[1])},${Wt(t.T2[0])},${Wt(t.T2[1])},${Wt(t.T3[0])},${Wt(t.T3[1])},${Wt(t.Wxi[0])},${Wt(t.Wxi[1])},${Wt(t.Wxiw[0])},${Wt(t.Wxiw[1])},${Wt(t.eval_a)},${Wt(t.eval_b)},${Wt(t.eval_c)},${Wt(t.eval_s1)},${Wt(t.eval_s2)},${Wt(t.eval_zw)}][${n}]`;
|
|
15268
15269
|
}
|
|
15269
|
-
var
|
|
15270
|
+
var bu = /* @__PURE__ */ Object.freeze({
|
|
15270
15271
|
__proto__: null,
|
|
15271
15272
|
setup: Ld,
|
|
15272
15273
|
fullProve: vd,
|
|
@@ -16250,7 +16251,7 @@ async function uu(i, e) {
|
|
|
16250
16251
|
n !== "" && (n = n + ","), n = n + Yt(a[l]);
|
|
16251
16252
|
return `[${Yt(t.polynomials.C1[0])}, ${Yt(t.polynomials.C1[1])},${Yt(t.polynomials.C2[0])},${Yt(t.polynomials.C2[1])},${Yt(t.polynomials.W1[0])},${Yt(t.polynomials.W1[1])},${Yt(t.polynomials.W2[0])},${Yt(t.polynomials.W2[1])},${Yt(t.evaluations.ql)},${Yt(t.evaluations.qr)},${Yt(t.evaluations.qm)},${Yt(t.evaluations.qo)},${Yt(t.evaluations.qc)},${Yt(t.evaluations.s1)},${Yt(t.evaluations.s2)},${Yt(t.evaluations.s3)},${Yt(t.evaluations.a)},${Yt(t.evaluations.b)},${Yt(t.evaluations.c)},${Yt(t.evaluations.z)},${Yt(t.evaluations.zw)},${Yt(t.evaluations.t1w)},${Yt(t.evaluations.t2w)},${Yt(t.evaluations.inv)}],[${n}]`;
|
|
16252
16253
|
}
|
|
16253
|
-
var
|
|
16254
|
+
var yu = /* @__PURE__ */ Object.freeze({
|
|
16254
16255
|
__proto__: null,
|
|
16255
16256
|
setup: Kd,
|
|
16256
16257
|
prove: Tl,
|
|
@@ -16260,12 +16261,12 @@ var bu = /* @__PURE__ */ Object.freeze({
|
|
|
16260
16261
|
exportSolidityCallData: uu
|
|
16261
16262
|
});
|
|
16262
16263
|
export {
|
|
16263
|
-
|
|
16264
|
-
|
|
16265
|
-
|
|
16266
|
-
|
|
16267
|
-
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16264
|
+
hu as curves,
|
|
16265
|
+
yu as fflonk,
|
|
16266
|
+
_u as groth16,
|
|
16267
|
+
bu as plonk,
|
|
16268
|
+
pu as powersOfTau,
|
|
16269
|
+
mu as r1cs,
|
|
16270
|
+
wu as wtns,
|
|
16271
|
+
Lu as zKey
|
|
16271
16272
|
};
|