@o1js/native-linux-x64 0.0.1-dev.3 → 0.0.1-dev.5
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/index.d.ts +808 -3
- package/index.js +1 -1
- package/kimchi_napi.node +0 -0
- package/package.json +2 -2
- package/plonk_napi.node +0 -0
package/index.d.ts
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
// Header section
|
|
2
2
|
// To edit this section, look for
|
|
3
3
|
// ./src/lib/crypto/kimchi_bindings/js/native/header-d.ts
|
|
4
|
-
// This file gets auto-included in the generated
|
|
4
|
+
// This file gets auto-included in the generated kimchi-napi types to supplement
|
|
5
5
|
// external pointer types.
|
|
6
6
|
|
|
7
|
+
type WasmGVesta = {};
|
|
8
|
+
type WasmGPallas = {};
|
|
9
|
+
type WasmPastaFp = {};
|
|
10
|
+
type WasmPastaFq = {};
|
|
11
|
+
type WasmLookupInfo = {};
|
|
7
12
|
type WasmPastaFpPlonkIndex = {};
|
|
13
|
+
type WasmPastaFqPlonkIndex = {};
|
|
14
|
+
type Proof = {}
|
|
15
|
+
type WasmVector<T> = {};
|
|
16
|
+
type WasmFlatVector<T> = {};
|
|
17
|
+
type WasmVecVecFp = {};
|
|
18
|
+
type WasmVecVecFq = {};
|
|
19
|
+
type WasmFpSrs = {};
|
|
20
|
+
type WasmFqSrs = {};
|
|
21
|
+
type Self = {};
|
|
8
22
|
|
|
9
23
|
// Header section end
|
|
10
24
|
export declare class ExternalObject<T> {
|
|
@@ -13,20 +27,811 @@ export declare class ExternalObject<T> {
|
|
|
13
27
|
[K: symbol]: T
|
|
14
28
|
}
|
|
15
29
|
}
|
|
30
|
+
export declare class WasmFpGateVector {
|
|
31
|
+
constructor()
|
|
32
|
+
serialize(): Uint8Array
|
|
33
|
+
static deserialize(bytes: Uint8Array): WasmFpGateVector
|
|
34
|
+
}
|
|
35
|
+
export type NapiFpGateVector = WasmFpGateVector
|
|
36
|
+
|
|
37
|
+
export declare class WasmFpLookupCommitments {
|
|
38
|
+
constructor(sorted: NapiVector<WasmFpPolyComm>, aggreg: WasmFpPolyComm, runtime?: WasmFpPolyComm | undefined | null)
|
|
39
|
+
get sorted(): NapiVector<WasmFpPolyComm>
|
|
40
|
+
get aggreg(): WasmFpPolyComm
|
|
41
|
+
get runtime(): WasmFpPolyComm | null
|
|
42
|
+
set set_sorted(s: NapiVector<WasmFpPolyComm>)
|
|
43
|
+
set set_aggreg(a: WasmFpPolyComm)
|
|
44
|
+
set set_runtime(r?: WasmFpPolyComm | undefined | null)
|
|
45
|
+
}
|
|
46
|
+
export type NapiFpLookupCommitments = WasmFpLookupCommitments
|
|
47
|
+
|
|
48
|
+
export declare class WasmFpOpeningProof {
|
|
49
|
+
z1: NapiPastaFp
|
|
50
|
+
z2: NapiPastaFp
|
|
51
|
+
constructor(lr0: NapiVector<NapiGVesta>, lr1: NapiVector<NapiGVesta>, delta: NapiGVesta, z1: NapiPastaFp, z2: NapiPastaFp, sg: NapiGVesta)
|
|
52
|
+
get lr_0(): NapiVector<NapiGVesta>
|
|
53
|
+
get lr_1(): NapiVector<NapiGVesta>
|
|
54
|
+
get delta(): NapiGVesta
|
|
55
|
+
get sg(): NapiGVesta
|
|
56
|
+
set set_lr_0(lr0: NapiVector<NapiGVesta>)
|
|
57
|
+
set set_lr_1(lr1: NapiVector<NapiGVesta>)
|
|
58
|
+
set set_delta(delta: NapiGVesta)
|
|
59
|
+
set set_sg(sg: NapiGVesta)
|
|
60
|
+
}
|
|
61
|
+
export type NapiFpOpeningProof = WasmFpOpeningProof
|
|
62
|
+
|
|
63
|
+
export declare class WasmFpOracles {
|
|
64
|
+
o: WasmFpRandomOracles
|
|
65
|
+
p_eval0: NapiPastaFp
|
|
66
|
+
p_eval1: NapiPastaFp
|
|
67
|
+
digest_before_evaluations: NapiPastaFp
|
|
68
|
+
constructor(o: NapiRandomOracles, pEval0: NapiPastaFp, pEval1: NapiPastaFp, openingPrechallenges: NapiFlatVector<NapiPastaFp>, digestBeforeEvaluations: NapiPastaFp)
|
|
69
|
+
get opening_prechallenges(): NapiFlatVector<NapiPastaFp>
|
|
70
|
+
set set_opening_prechallenges(x: NapiFlatVector<NapiPastaFp>)
|
|
71
|
+
}
|
|
72
|
+
export type NapiFpOracles = WasmFpOracles
|
|
73
|
+
|
|
74
|
+
export declare class WasmFpPolyComm {
|
|
75
|
+
constructor(unshifted: NapiVector<NapiGVesta>, shifted?: NapiGVesta | undefined | null)
|
|
76
|
+
get unshifted(): NapiVector<NapiGVesta>
|
|
77
|
+
set set_unshifted(x: NapiVector<NapiGVesta>)
|
|
78
|
+
get shifted(): NapiGVesta | null
|
|
79
|
+
set set_shifted(value?: NapiGVesta | undefined | null)
|
|
80
|
+
}
|
|
81
|
+
export type NapiFpPolyComm = WasmFpPolyComm
|
|
82
|
+
|
|
83
|
+
export declare class WasmFpProverCommitments {
|
|
84
|
+
constructor(wComm: NapiVector<WasmFpPolyComm>, zComm: WasmFpPolyComm, tComm: WasmFpPolyComm, lookup?: NapiLookupCommitments | undefined | null)
|
|
85
|
+
get w_comm(): NapiVector<WasmFpPolyComm>
|
|
86
|
+
get z_comm(): WasmFpPolyComm
|
|
87
|
+
get t_comm(): WasmFpPolyComm
|
|
88
|
+
get lookup(): NapiLookupCommitments | null
|
|
89
|
+
set set_w_comm(x: NapiVector<WasmFpPolyComm>)
|
|
90
|
+
set set_z_comm(x: WasmFpPolyComm)
|
|
91
|
+
set set_t_comm(x: WasmFpPolyComm)
|
|
92
|
+
set set_lookup(l?: NapiLookupCommitments | undefined | null)
|
|
93
|
+
}
|
|
94
|
+
export type NapiFpProverCommitments = WasmFpProverCommitments
|
|
95
|
+
|
|
96
|
+
export declare class WasmFpProverProof {
|
|
97
|
+
constructor(commitments: NapiProverCommitments, proof: NapiOpeningProof, evals: NapiProofEvaluations, ftEval1: NapiPastaFp, public: NapiFlatVector<NapiPastaFp>, prevChallengesScalars: NapiVecVecFp, prevChallengesComms: NapiVector<WasmFpPolyComm>)
|
|
98
|
+
get commitments(): NapiProverCommitments
|
|
99
|
+
get proof(): NapiOpeningProof
|
|
100
|
+
get evals(): NapiProofEvaluations
|
|
101
|
+
get ft_eval1(): NapiPastaFp
|
|
102
|
+
get public_(): NapiFlatVector<NapiPastaFp>
|
|
103
|
+
get prev_challenges_scalars(): NapiVecVecFp
|
|
104
|
+
get prev_challenges_comms(): NapiVector<WasmFpPolyComm>
|
|
105
|
+
set set_commitments(commitments: NapiProverCommitments)
|
|
106
|
+
set set_proof(proof: NapiOpeningProof)
|
|
107
|
+
set set_evals(evals: NapiProofEvaluations)
|
|
108
|
+
set set_ft_eval1(ftEval1: NapiPastaFp)
|
|
109
|
+
set set_public_(public: NapiFlatVector<NapiPastaFp>)
|
|
110
|
+
set set_prev_challenges_scalars(prevChallengesScalars: NapiVecVecFp)
|
|
111
|
+
set set_prev_challenges_comms(prevChallengesComms: NapiVector<WasmFpPolyComm>)
|
|
112
|
+
serialize(): string
|
|
113
|
+
}
|
|
114
|
+
export type NapiFpProverProof = WasmFpProverProof
|
|
115
|
+
|
|
116
|
+
export declare class WasmFpRandomOracles {
|
|
117
|
+
joint_combiner_chal?: NapiPastaFp
|
|
118
|
+
joint_combiner?: NapiPastaFp
|
|
119
|
+
beta: NapiPastaFp
|
|
120
|
+
gamma: NapiPastaFp
|
|
121
|
+
alpha_chal: NapiPastaFp
|
|
122
|
+
alpha: NapiPastaFp
|
|
123
|
+
zeta: NapiPastaFp
|
|
124
|
+
v: NapiPastaFp
|
|
125
|
+
u: NapiPastaFp
|
|
126
|
+
zeta_chal: NapiPastaFp
|
|
127
|
+
v_chal: NapiPastaFp
|
|
128
|
+
u_chal: NapiPastaFp
|
|
129
|
+
constructor(jointCombinerChal: NapiPastaFp | undefined | null, jointCombiner: NapiPastaFp | undefined | null, beta: NapiPastaFp, gamma: NapiPastaFp, alphaChal: NapiPastaFp, alpha: NapiPastaFp, zeta: NapiPastaFp, v: NapiPastaFp, u: NapiPastaFp, zetaChal: NapiPastaFp, vChal: NapiPastaFp, uChal: NapiPastaFp)
|
|
130
|
+
}
|
|
131
|
+
export type NapiFpRandomOracles = WasmFpRandomOracles
|
|
132
|
+
|
|
133
|
+
export declare class WasmFpSrs {
|
|
134
|
+
serialize(): Uint8Array
|
|
135
|
+
static deserialize(bytes: Uint8Array): WasmFpSrs
|
|
136
|
+
}
|
|
137
|
+
export type NapiFpSrs = WasmFpSrs
|
|
138
|
+
|
|
139
|
+
export declare class WasmFqGateVector {
|
|
140
|
+
constructor()
|
|
141
|
+
serialize(): Uint8Array
|
|
142
|
+
static deserialize(bytes: Uint8Array): WasmFqGateVector
|
|
143
|
+
}
|
|
144
|
+
export type NapiFqGateVector = WasmFqGateVector
|
|
145
|
+
|
|
146
|
+
export declare class WasmFqLookupCommitments {
|
|
147
|
+
constructor(sorted: NapiVector<WasmFqPolyComm>, aggreg: WasmFqPolyComm, runtime?: WasmFqPolyComm | undefined | null)
|
|
148
|
+
get sorted(): NapiVector<WasmFqPolyComm>
|
|
149
|
+
get aggreg(): WasmFqPolyComm
|
|
150
|
+
get runtime(): WasmFqPolyComm | null
|
|
151
|
+
set set_sorted(s: NapiVector<WasmFqPolyComm>)
|
|
152
|
+
set set_aggreg(a: WasmFqPolyComm)
|
|
153
|
+
set set_runtime(r?: WasmFqPolyComm | undefined | null)
|
|
154
|
+
}
|
|
155
|
+
export type NapiFqLookupCommitments = WasmFqLookupCommitments
|
|
156
|
+
|
|
157
|
+
export declare class WasmFqOpeningProof {
|
|
158
|
+
z1: NapiPastaFq
|
|
159
|
+
z2: NapiPastaFq
|
|
160
|
+
constructor(lr0: NapiVector<NapiGPallas>, lr1: NapiVector<NapiGPallas>, delta: NapiGPallas, z1: NapiPastaFq, z2: NapiPastaFq, sg: NapiGPallas)
|
|
161
|
+
get lr_0(): NapiVector<NapiGPallas>
|
|
162
|
+
get lr_1(): NapiVector<NapiGPallas>
|
|
163
|
+
get delta(): NapiGPallas
|
|
164
|
+
get sg(): NapiGPallas
|
|
165
|
+
set set_lr_0(lr0: NapiVector<NapiGPallas>)
|
|
166
|
+
set set_lr_1(lr1: NapiVector<NapiGPallas>)
|
|
167
|
+
set set_delta(delta: NapiGPallas)
|
|
168
|
+
set set_sg(sg: NapiGPallas)
|
|
169
|
+
}
|
|
170
|
+
export type NapiFqOpeningProof = WasmFqOpeningProof
|
|
171
|
+
|
|
172
|
+
export declare class WasmFqOracles {
|
|
173
|
+
o: WasmFqRandomOracles
|
|
174
|
+
p_eval0: NapiPastaFq
|
|
175
|
+
p_eval1: NapiPastaFq
|
|
176
|
+
digest_before_evaluations: NapiPastaFq
|
|
177
|
+
constructor(o: NapiRandomOracles, pEval0: NapiPastaFq, pEval1: NapiPastaFq, openingPrechallenges: NapiFlatVector<NapiPastaFq>, digestBeforeEvaluations: NapiPastaFq)
|
|
178
|
+
get opening_prechallenges(): NapiFlatVector<NapiPastaFq>
|
|
179
|
+
set set_opening_prechallenges(x: NapiFlatVector<NapiPastaFq>)
|
|
180
|
+
}
|
|
181
|
+
export type NapiFqOracles = WasmFqOracles
|
|
182
|
+
|
|
183
|
+
export declare class WasmFqPolyComm {
|
|
184
|
+
constructor(unshifted: NapiVector<NapiGPallas>, shifted?: NapiGPallas | undefined | null)
|
|
185
|
+
get unshifted(): NapiVector<NapiGPallas>
|
|
186
|
+
set set_unshifted(x: NapiVector<NapiGPallas>)
|
|
187
|
+
get shifted(): NapiGPallas | null
|
|
188
|
+
set set_shifted(value?: NapiGPallas | undefined | null)
|
|
189
|
+
}
|
|
190
|
+
export type NapiFqPolyComm = WasmFqPolyComm
|
|
191
|
+
|
|
192
|
+
export declare class WasmFqProverCommitments {
|
|
193
|
+
constructor(wComm: NapiVector<WasmFqPolyComm>, zComm: WasmFqPolyComm, tComm: WasmFqPolyComm, lookup?: NapiLookupCommitments | undefined | null)
|
|
194
|
+
get w_comm(): NapiVector<WasmFqPolyComm>
|
|
195
|
+
get z_comm(): WasmFqPolyComm
|
|
196
|
+
get t_comm(): WasmFqPolyComm
|
|
197
|
+
get lookup(): NapiLookupCommitments | null
|
|
198
|
+
set set_w_comm(x: NapiVector<WasmFqPolyComm>)
|
|
199
|
+
set set_z_comm(x: WasmFqPolyComm)
|
|
200
|
+
set set_t_comm(x: WasmFqPolyComm)
|
|
201
|
+
set set_lookup(l?: NapiLookupCommitments | undefined | null)
|
|
202
|
+
}
|
|
203
|
+
export type NapiFqProverCommitments = WasmFqProverCommitments
|
|
204
|
+
|
|
205
|
+
export declare class WasmFqProverProof {
|
|
206
|
+
constructor(commitments: NapiProverCommitments, proof: NapiOpeningProof, evals: NapiProofEvaluations, ftEval1: NapiPastaFq, public: NapiFlatVector<NapiPastaFq>, prevChallengesScalars: NapiVecVecFq, prevChallengesComms: NapiVector<WasmFqPolyComm>)
|
|
207
|
+
get commitments(): NapiProverCommitments
|
|
208
|
+
get proof(): NapiOpeningProof
|
|
209
|
+
get evals(): NapiProofEvaluations
|
|
210
|
+
get ft_eval1(): NapiPastaFq
|
|
211
|
+
get public_(): NapiFlatVector<NapiPastaFq>
|
|
212
|
+
get prev_challenges_scalars(): NapiVecVecFq
|
|
213
|
+
get prev_challenges_comms(): NapiVector<WasmFqPolyComm>
|
|
214
|
+
set set_commitments(commitments: NapiProverCommitments)
|
|
215
|
+
set set_proof(proof: NapiOpeningProof)
|
|
216
|
+
set set_evals(evals: NapiProofEvaluations)
|
|
217
|
+
set set_ft_eval1(ftEval1: NapiPastaFq)
|
|
218
|
+
set set_public_(public: NapiFlatVector<NapiPastaFq>)
|
|
219
|
+
set set_prev_challenges_scalars(prevChallengesScalars: NapiVecVecFq)
|
|
220
|
+
set set_prev_challenges_comms(prevChallengesComms: NapiVector<WasmFqPolyComm>)
|
|
221
|
+
serialize(): string
|
|
222
|
+
}
|
|
223
|
+
export type NapiFqProverProof = WasmFqProverProof
|
|
224
|
+
|
|
225
|
+
export declare class WasmFqRandomOracles {
|
|
226
|
+
joint_combiner_chal?: NapiPastaFq
|
|
227
|
+
joint_combiner?: NapiPastaFq
|
|
228
|
+
beta: NapiPastaFq
|
|
229
|
+
gamma: NapiPastaFq
|
|
230
|
+
alpha_chal: NapiPastaFq
|
|
231
|
+
alpha: NapiPastaFq
|
|
232
|
+
zeta: NapiPastaFq
|
|
233
|
+
v: NapiPastaFq
|
|
234
|
+
u: NapiPastaFq
|
|
235
|
+
zeta_chal: NapiPastaFq
|
|
236
|
+
v_chal: NapiPastaFq
|
|
237
|
+
u_chal: NapiPastaFq
|
|
238
|
+
constructor(jointCombinerChal: NapiPastaFq | undefined | null, jointCombiner: NapiPastaFq | undefined | null, beta: NapiPastaFq, gamma: NapiPastaFq, alphaChal: NapiPastaFq, alpha: NapiPastaFq, zeta: NapiPastaFq, v: NapiPastaFq, u: NapiPastaFq, zetaChal: NapiPastaFq, vChal: NapiPastaFq, uChal: NapiPastaFq)
|
|
239
|
+
}
|
|
240
|
+
export type NapiFqRandomOracles = WasmFqRandomOracles
|
|
241
|
+
|
|
242
|
+
export declare class WasmFqSrs {
|
|
243
|
+
serialize(): Uint8Array
|
|
244
|
+
static deserialize(bytes: Uint8Array): WasmFqSrs
|
|
245
|
+
}
|
|
246
|
+
export type NapiFqSrs = WasmFqSrs
|
|
247
|
+
|
|
248
|
+
export declare class WasmPastaFpLookupTable {
|
|
249
|
+
constructor(id: number, data: WasmVecVecFp)
|
|
250
|
+
get id(): number
|
|
251
|
+
set id(id: number)
|
|
252
|
+
get data(): WasmVecVecFp
|
|
253
|
+
set data(data: WasmVecVecFp)
|
|
254
|
+
}
|
|
255
|
+
export type NapiPastaFpLookupTable = WasmPastaFpLookupTable
|
|
256
|
+
|
|
257
|
+
export declare class WasmPastaFpPlonkIndex {
|
|
258
|
+
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export declare class WasmPastaFpRuntimeTableCfg {
|
|
262
|
+
constructor(id: number, firstColumn: Uint8Array)
|
|
263
|
+
get id(): number
|
|
264
|
+
set id(id: number)
|
|
265
|
+
get first_column(): Uint8Array
|
|
266
|
+
}
|
|
267
|
+
export type NapiPastaFpRuntimeTableCfg = WasmPastaFpRuntimeTableCfg
|
|
268
|
+
|
|
269
|
+
export declare class WasmPastaFqLookupTable {
|
|
270
|
+
constructor(id: number, data: WasmVecVecFq)
|
|
271
|
+
get id(): number
|
|
272
|
+
set id(id: number)
|
|
273
|
+
get data(): WasmVecVecFq
|
|
274
|
+
set data(data: WasmVecVecFq)
|
|
275
|
+
}
|
|
276
|
+
export type NapiPastaFqLookupTable = WasmPastaFqLookupTable
|
|
277
|
+
|
|
278
|
+
export declare class WasmPastaFqPlonkIndex {
|
|
279
|
+
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export declare class WasmPastaFqRuntimeTableCfg {
|
|
283
|
+
constructor(id: number, firstColumn: Uint8Array)
|
|
284
|
+
get id(): number
|
|
285
|
+
set id(id: number)
|
|
286
|
+
get first_column(): Uint8Array
|
|
287
|
+
}
|
|
288
|
+
export type NapiPastaFqRuntimeTableCfg = WasmPastaFqRuntimeTableCfg
|
|
289
|
+
|
|
290
|
+
export declare class WasmVecVecFp {
|
|
291
|
+
constructor(capacity: number)
|
|
292
|
+
push(vector: Uint8Array): void
|
|
293
|
+
get(index: number): Uint8Array
|
|
294
|
+
set(index: number, vector: Uint8Array): void
|
|
295
|
+
}
|
|
296
|
+
export type NapiVecVecFp = WasmVecVecFp
|
|
297
|
+
|
|
298
|
+
export declare class WasmVecVecFq {
|
|
299
|
+
constructor(capacity: number)
|
|
300
|
+
push(vector: Uint8Array): void
|
|
301
|
+
get(index: number): Uint8Array
|
|
302
|
+
set(index: number, vector: Uint8Array): void
|
|
303
|
+
}
|
|
304
|
+
export type NapiVecVecFq = WasmVecVecFq
|
|
305
|
+
|
|
16
306
|
export const ARCH_NAME: string
|
|
17
307
|
|
|
18
308
|
export const BACKING: string
|
|
19
309
|
|
|
310
|
+
export declare function caml_fp_srs_add_lagrange_basis(srs: WasmFpSrs, log2Size: number): void
|
|
311
|
+
|
|
312
|
+
export declare function caml_fp_srs_b_poly_commitment(srs: WasmFpSrs, chals: Uint8Array): WasmFpPolyComm
|
|
313
|
+
|
|
314
|
+
export declare function caml_fp_srs_batch_accumulator_check(srs: WasmFpSrs, comms: NapiVector<NapiGVesta>, chals: Uint8Array): boolean
|
|
315
|
+
|
|
316
|
+
export declare function caml_fp_srs_batch_accumulator_generate(srs: WasmFpSrs, comms: number, chals: Uint8Array): NapiVector<NapiGVesta>
|
|
317
|
+
|
|
318
|
+
export declare function caml_fp_srs_commit_evaluations(srs: WasmFpSrs, domainSize: number, evals: Uint8Array): WasmFpPolyComm
|
|
319
|
+
|
|
320
|
+
export declare function caml_fp_srs_create(depth: number): WasmFpSrs
|
|
321
|
+
|
|
322
|
+
export declare function caml_fp_srs_create_parallel(depth: number): WasmFpSrs
|
|
323
|
+
|
|
324
|
+
export declare function caml_fp_srs_from_bytes(bytes: Uint8Array): NapiFpSrs
|
|
325
|
+
|
|
326
|
+
export declare function caml_fp_srs_get(srs: WasmFpSrs): Array<NapiGVesta>
|
|
327
|
+
|
|
328
|
+
export declare function caml_fp_srs_get_lagrange_basis(srs: WasmFpSrs, domainSize: number): NapiVector<WasmFpPolyComm>
|
|
329
|
+
|
|
330
|
+
export declare function caml_fp_srs_h(srs: WasmFpSrs): NapiGVesta
|
|
331
|
+
|
|
332
|
+
export declare function caml_fp_srs_lagrange_commitment(srs: WasmFpSrs, domainSize: number, i: number): WasmFpPolyComm
|
|
333
|
+
|
|
334
|
+
export declare function caml_fp_srs_lagrange_commitments_whole_domain_ptr(srs: WasmFpSrs, domainSize: number): NapiVector<WasmFpPolyComm>
|
|
335
|
+
|
|
336
|
+
export declare function caml_fp_srs_maybe_lagrange_commitment(srs: WasmFpSrs, domainSize: number, i: number): WasmFpPolyComm | null
|
|
337
|
+
|
|
338
|
+
export declare function caml_fp_srs_read(offset: number | undefined | null, path: string): WasmFpSrs | null
|
|
339
|
+
|
|
340
|
+
export declare function caml_fp_srs_set(hAndGs: Array<NapiGVesta>): WasmFpSrs
|
|
341
|
+
|
|
342
|
+
export declare function caml_fp_srs_set_lagrange_basis(srs: WasmFpSrs, domainSize: number, inputBases: NapiVector<WasmFpPolyComm>): void
|
|
343
|
+
|
|
344
|
+
export declare function caml_fp_srs_to_bytes(srs: NapiFpSrs): Uint8Array
|
|
345
|
+
|
|
346
|
+
export declare function caml_fp_srs_write(append: boolean | undefined | null, srs: WasmFpSrs, path: string): void
|
|
347
|
+
|
|
348
|
+
export declare function caml_fq_srs_add_lagrange_basis(srs: WasmFqSrs, log2Size: number): void
|
|
349
|
+
|
|
350
|
+
export declare function caml_fq_srs_b_poly_commitment(srs: WasmFqSrs, chals: Uint8Array): WasmFqPolyComm
|
|
351
|
+
|
|
352
|
+
export declare function caml_fq_srs_batch_accumulator_check(srs: WasmFqSrs, comms: NapiVector<NapiGPallas>, chals: Uint8Array): boolean
|
|
353
|
+
|
|
354
|
+
export declare function caml_fq_srs_batch_accumulator_generate(srs: WasmFqSrs, comms: number, chals: Uint8Array): NapiVector<NapiGPallas>
|
|
355
|
+
|
|
356
|
+
export declare function caml_fq_srs_commit_evaluations(srs: WasmFqSrs, domainSize: number, evals: Uint8Array): WasmFqPolyComm
|
|
357
|
+
|
|
358
|
+
export declare function caml_fq_srs_create(depth: number): WasmFqSrs
|
|
359
|
+
|
|
360
|
+
export declare function caml_fq_srs_create_parallel(depth: number): WasmFqSrs
|
|
361
|
+
|
|
362
|
+
export declare function caml_fq_srs_from_bytes(bytes: Uint8Array): NapiFqSrs
|
|
363
|
+
|
|
364
|
+
export declare function caml_fq_srs_get(srs: WasmFqSrs): Array<NapiGPallas>
|
|
365
|
+
|
|
366
|
+
export declare function caml_fq_srs_get_lagrange_basis(srs: WasmFqSrs, domainSize: number): NapiVector<WasmFqPolyComm>
|
|
367
|
+
|
|
368
|
+
export declare function caml_fq_srs_h(srs: WasmFqSrs): NapiGPallas
|
|
369
|
+
|
|
370
|
+
export declare function caml_fq_srs_lagrange_commitment(srs: WasmFqSrs, domainSize: number, i: number): WasmFqPolyComm
|
|
371
|
+
|
|
372
|
+
export declare function caml_fq_srs_lagrange_commitments_whole_domain_ptr(srs: WasmFqSrs, domainSize: number): NapiVector<WasmFqPolyComm>
|
|
373
|
+
|
|
374
|
+
export declare function caml_fq_srs_maybe_lagrange_commitment(srs: WasmFqSrs, domainSize: number, i: number): WasmFqPolyComm | null
|
|
375
|
+
|
|
376
|
+
export declare function caml_fq_srs_read(offset: number | undefined | null, path: string): WasmFqSrs | null
|
|
377
|
+
|
|
378
|
+
export declare function caml_fq_srs_set(hAndGs: Array<NapiGPallas>): WasmFqSrs
|
|
379
|
+
|
|
380
|
+
export declare function caml_fq_srs_set_lagrange_basis(srs: WasmFqSrs, domainSize: number, inputBases: NapiVector<WasmFqPolyComm>): void
|
|
381
|
+
|
|
382
|
+
export declare function caml_fq_srs_to_bytes(srs: NapiFqSrs): Uint8Array
|
|
383
|
+
|
|
384
|
+
export declare function caml_fq_srs_write(append: boolean | undefined | null, srs: WasmFqSrs, path: string): void
|
|
385
|
+
|
|
386
|
+
export declare function caml_pallas_affine_one(): WasmGPallas
|
|
387
|
+
|
|
388
|
+
export declare function caml_pasta_fp_plonk_circuit_serialize(publicInputSize: number, vector: WasmFpGateVector): string
|
|
389
|
+
|
|
390
|
+
export declare function caml_pasta_fp_plonk_gate_vector_add(vector: WasmFpGateVector, gate: WasmFpGate): void
|
|
391
|
+
|
|
392
|
+
export declare function caml_pasta_fp_plonk_gate_vector_create(): WasmFpGateVector
|
|
393
|
+
|
|
394
|
+
export declare function caml_pasta_fp_plonk_gate_vector_digest(publicInputSize: number, vector: WasmFpGateVector): Uint8Array
|
|
395
|
+
|
|
396
|
+
export declare function caml_pasta_fp_plonk_gate_vector_from_bytes(bytes: Uint8Array): WasmFpGateVector
|
|
397
|
+
|
|
398
|
+
export declare function caml_pasta_fp_plonk_gate_vector_get(vector: WasmFpGateVector, index: number): WasmFpGate
|
|
399
|
+
|
|
400
|
+
export declare function caml_pasta_fp_plonk_gate_vector_len(vector: WasmFpGateVector): number
|
|
401
|
+
|
|
402
|
+
export declare function caml_pasta_fp_plonk_gate_vector_to_bytes(vector: WasmFpGateVector): Uint8Array
|
|
403
|
+
|
|
404
|
+
export declare function caml_pasta_fp_plonk_gate_vector_wrap(vector: WasmFpGateVector, target: NapiWire, head: NapiWire): void
|
|
405
|
+
|
|
406
|
+
export declare function caml_pasta_fp_plonk_index_create(gates: WasmFpGateVector, public: number, lookupTables: Array<JsLookupTableFp>, runtimeTableCfgs: Array<JsRuntimeTableCfgFp>, prevChallenges: number, srs: WasmFpSrs, lazyMode: boolean): ExternalObject<WasmPastaFpPlonkIndex>
|
|
407
|
+
|
|
408
|
+
export declare function caml_pasta_fp_plonk_index_decode(bytes: Uint8Array, srs: WasmFpSrs): ExternalObject<WasmPastaFpPlonkIndex>
|
|
409
|
+
|
|
410
|
+
export declare function caml_pasta_fp_plonk_index_domain_d1_size(index: ExternalObject<WasmPastaFpPlonkIndex>): number
|
|
411
|
+
|
|
412
|
+
export declare function caml_pasta_fp_plonk_index_domain_d4_size(index: ExternalObject<WasmPastaFpPlonkIndex>): number
|
|
413
|
+
|
|
414
|
+
export declare function caml_pasta_fp_plonk_index_encode(index: ExternalObject<WasmPastaFpPlonkIndex>): Array<number>
|
|
415
|
+
|
|
416
|
+
export declare function caml_pasta_fp_plonk_index_max_degree(index: ExternalObject<WasmPastaFpPlonkIndex>): number
|
|
417
|
+
|
|
418
|
+
export declare function caml_pasta_fp_plonk_index_public_inputs(index: ExternalObject<WasmPastaFpPlonkIndex>): number
|
|
419
|
+
|
|
420
|
+
export declare function caml_pasta_fp_plonk_index_read(offset: number | undefined | null, srs: WasmFpSrs, path: string): ExternalObject<WasmPastaFpPlonkIndex>
|
|
421
|
+
|
|
422
|
+
export declare function caml_pasta_fp_plonk_index_write(append: boolean | undefined | null, index: ExternalObject<WasmPastaFpPlonkIndex>, path: string): void
|
|
423
|
+
|
|
424
|
+
export declare function caml_pasta_fp_plonk_proof_batch_verify(indexes: NapiVector<WasmFpPlonkVerifierIndex>, proofs: NapiVector<NapiProofF>): boolean
|
|
425
|
+
|
|
426
|
+
export declare function caml_pasta_fp_plonk_proof_create(index: ExternalObject<NapiPastaFpPlonkIndex>, witness: NapiVecVecFp, runtimeTables: NapiVector<NapiFpRuntimeTable>, prevChallenges: NapiFlatVector<NapiPastaFp>, prevSgs: NapiVector<NapiGVesta>): NapiProofF
|
|
427
|
+
|
|
428
|
+
export declare function caml_pasta_fp_plonk_proof_deep_copy(x: NapiProofF): NapiProofF
|
|
429
|
+
|
|
430
|
+
export declare function caml_pasta_fp_plonk_proof_dummy(): NapiProofF
|
|
431
|
+
|
|
432
|
+
export declare function caml_pasta_fp_plonk_proof_verify(index: WasmFpPlonkVerifierIndex, proof: NapiProofF): boolean
|
|
433
|
+
|
|
434
|
+
export declare function caml_pasta_fp_plonk_verifier_index_create(index: ExternalObject<NapiPastaFpPlonkIndex>): NapiPlonkVerifierIndex
|
|
435
|
+
|
|
436
|
+
export declare function caml_pasta_fp_plonk_verifier_index_deep_copy(x: NapiPlonkVerifierIndex): NapiPlonkVerifierIndex
|
|
437
|
+
|
|
438
|
+
export declare function caml_pasta_fp_plonk_verifier_index_deserialize(srs: NapiFpSrs, index: string): NapiPlonkVerifierIndex
|
|
439
|
+
|
|
440
|
+
export declare function caml_pasta_fp_plonk_verifier_index_dummy(): NapiPlonkVerifierIndex
|
|
441
|
+
|
|
442
|
+
export declare function caml_pasta_fp_plonk_verifier_index_read(offset: number | undefined | null, srs: NapiFpSrs, path: string): NapiPlonkVerifierIndex
|
|
443
|
+
|
|
444
|
+
export declare function caml_pasta_fp_plonk_verifier_index_serialize(index: NapiPlonkVerifierIndex): string
|
|
445
|
+
|
|
446
|
+
export declare function caml_pasta_fp_plonk_verifier_index_shifts(log2Size: number): NapiShifts
|
|
447
|
+
|
|
448
|
+
export declare function caml_pasta_fp_plonk_verifier_index_write(append: boolean | undefined | null, index: NapiPlonkVerifierIndex, path: string): void
|
|
449
|
+
|
|
20
450
|
export declare function caml_pasta_fp_poseidon_block_cipher(state: Uint8Array): Uint8Array
|
|
21
451
|
|
|
452
|
+
export declare function caml_pasta_fq_plonk_circuit_serialize(publicInputSize: number, vector: WasmFqGateVector): string
|
|
453
|
+
|
|
454
|
+
export declare function caml_pasta_fq_plonk_gate_vector_add(vector: WasmFqGateVector, gate: WasmFqGate): void
|
|
455
|
+
|
|
456
|
+
export declare function caml_pasta_fq_plonk_gate_vector_create(): WasmFqGateVector
|
|
457
|
+
|
|
458
|
+
export declare function caml_pasta_fq_plonk_gate_vector_digest(publicInputSize: number, vector: WasmFqGateVector): Uint8Array
|
|
459
|
+
|
|
460
|
+
export declare function caml_pasta_fq_plonk_gate_vector_from_bytes(bytes: Uint8Array): WasmFqGateVector
|
|
461
|
+
|
|
462
|
+
export declare function caml_pasta_fq_plonk_gate_vector_get(vector: WasmFqGateVector, index: number): WasmFqGate
|
|
463
|
+
|
|
464
|
+
export declare function caml_pasta_fq_plonk_gate_vector_len(vector: WasmFqGateVector): number
|
|
465
|
+
|
|
466
|
+
export declare function caml_pasta_fq_plonk_gate_vector_to_bytes(vector: WasmFqGateVector): Uint8Array
|
|
467
|
+
|
|
468
|
+
export declare function caml_pasta_fq_plonk_gate_vector_wrap(vector: WasmFqGateVector, target: NapiWire, head: NapiWire): void
|
|
469
|
+
|
|
470
|
+
export declare function caml_pasta_fq_plonk_index_create(gates: WasmFqGateVector, public: number, lookupTables: Array<JsLookupTableFq>, runtimeTableCfgs: Array<JsRuntimeTableCfgFq>, prevChallenges: number, srs: WasmFqSrs, lazyMode: boolean): ExternalObject<WasmPastaFqPlonkIndex>
|
|
471
|
+
|
|
472
|
+
export declare function caml_pasta_fq_plonk_index_decode(bytes: Uint8Array, srs: WasmFqSrs): ExternalObject<WasmPastaFqPlonkIndex>
|
|
473
|
+
|
|
474
|
+
export declare function caml_pasta_fq_plonk_index_domain_d1_size(index: ExternalObject<WasmPastaFqPlonkIndex>): number
|
|
475
|
+
|
|
476
|
+
export declare function caml_pasta_fq_plonk_index_domain_d4_size(index: ExternalObject<WasmPastaFqPlonkIndex>): number
|
|
477
|
+
|
|
478
|
+
export declare function caml_pasta_fq_plonk_index_domain_d8_size(index: ExternalObject<WasmPastaFqPlonkIndex>): number
|
|
479
|
+
|
|
480
|
+
export declare function caml_pasta_fq_plonk_index_encode(index: ExternalObject<WasmPastaFqPlonkIndex>): Array<number>
|
|
481
|
+
|
|
482
|
+
export declare function caml_pasta_fq_plonk_index_max_degree(index: ExternalObject<WasmPastaFqPlonkIndex>): number
|
|
483
|
+
|
|
484
|
+
export declare function caml_pasta_fq_plonk_index_public_inputs(index: ExternalObject<WasmPastaFqPlonkIndex>): number
|
|
485
|
+
|
|
486
|
+
export declare function caml_pasta_fq_plonk_index_read(offset: number | undefined | null, srs: WasmFqSrs, path: string): ExternalObject<WasmPastaFqPlonkIndex>
|
|
487
|
+
|
|
488
|
+
export declare function caml_pasta_fq_plonk_index_write(append: boolean | undefined | null, index: ExternalObject<WasmPastaFqPlonkIndex>, path: string): void
|
|
489
|
+
|
|
490
|
+
export declare function caml_pasta_fq_plonk_proof_batch_verify(indexes: NapiVector<WasmFqPlonkVerifierIndex>, proofs: NapiVector<NapiProofF>): boolean
|
|
491
|
+
|
|
492
|
+
export declare function caml_pasta_fq_plonk_proof_create(index: ExternalObject<NapiPastaFqPlonkIndex>, witness: NapiVecVecFq, runtimeTables: NapiVector<NapiFqRuntimeTable>, prevChallenges: NapiFlatVector<NapiPastaFq>, prevSgs: NapiVector<NapiGPallas>): NapiProofF
|
|
493
|
+
|
|
494
|
+
export declare function caml_pasta_fq_plonk_proof_deep_copy(x: NapiProofF): NapiProofF
|
|
495
|
+
|
|
496
|
+
export declare function caml_pasta_fq_plonk_proof_dummy(): NapiProofF
|
|
497
|
+
|
|
498
|
+
export declare function caml_pasta_fq_plonk_proof_verify(index: WasmFqPlonkVerifierIndex, proof: NapiProofF): boolean
|
|
499
|
+
|
|
500
|
+
export declare function caml_pasta_fq_plonk_verifier_index_create(index: ExternalObject<NapiPastaFqPlonkIndex>): NapiPlonkVerifierIndex
|
|
501
|
+
|
|
502
|
+
export declare function caml_pasta_fq_plonk_verifier_index_deep_copy(x: NapiPlonkVerifierIndex): NapiPlonkVerifierIndex
|
|
503
|
+
|
|
504
|
+
export declare function caml_pasta_fq_plonk_verifier_index_deserialize(srs: NapiFqSrs, index: string): NapiPlonkVerifierIndex
|
|
505
|
+
|
|
506
|
+
export declare function caml_pasta_fq_plonk_verifier_index_dummy(): NapiPlonkVerifierIndex
|
|
507
|
+
|
|
508
|
+
export declare function caml_pasta_fq_plonk_verifier_index_read(offset: number | undefined | null, srs: NapiFqSrs, path: string): NapiPlonkVerifierIndex
|
|
509
|
+
|
|
510
|
+
export declare function caml_pasta_fq_plonk_verifier_index_serialize(index: NapiPlonkVerifierIndex): string
|
|
511
|
+
|
|
512
|
+
export declare function caml_pasta_fq_plonk_verifier_index_shifts(log2Size: number): NapiShifts
|
|
513
|
+
|
|
514
|
+
export declare function caml_pasta_fq_plonk_verifier_index_write(append: boolean | undefined | null, index: NapiPlonkVerifierIndex, path: string): void
|
|
515
|
+
|
|
22
516
|
export declare function caml_pasta_fq_poseidon_block_cipher(state: Uint8Array): Uint8Array
|
|
23
517
|
|
|
518
|
+
export declare function caml_vesta_affine_one(): WasmGVesta
|
|
519
|
+
|
|
520
|
+
export declare function camlPastaFpPlonkGateVectorFromBytesExternal(bytes: Uint8Array): ExternalObject<WasmFpGateVector>
|
|
521
|
+
|
|
522
|
+
export declare function camlPastaFqPlonkGateVectorFromBytesExternal(bytes: Uint8Array): ExternalObject<WasmFqGateVector>
|
|
523
|
+
|
|
524
|
+
export declare function fp_oracles_create(lgrComm: NapiVector<WasmPolyComm>, index: WasmPlonkVerifierIndex, proof: WasmProverProof): WasmFpOracles
|
|
525
|
+
|
|
526
|
+
export declare function fp_oracles_deep_copy(x: WasmProverProof): WasmProverProof
|
|
527
|
+
|
|
528
|
+
export declare function fp_oracles_dummy(): WasmFpOracles
|
|
529
|
+
|
|
530
|
+
export declare function fq_oracles_create(lgrComm: NapiVector<WasmPolyComm>, index: WasmPlonkVerifierIndex, proof: WasmProverProof): WasmFqOracles
|
|
531
|
+
|
|
532
|
+
export declare function fq_oracles_deep_copy(x: WasmProverProof): WasmProverProof
|
|
533
|
+
|
|
534
|
+
export declare function fq_oracles_dummy(): WasmFqOracles
|
|
535
|
+
|
|
24
536
|
export declare function getNativeCalls(): bigint
|
|
25
537
|
|
|
538
|
+
export interface JsLookupTableFp {
|
|
539
|
+
id: number
|
|
540
|
+
data: Array<Uint8Array>
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export interface JsLookupTableFq {
|
|
544
|
+
id: number
|
|
545
|
+
data: Array<Uint8Array>
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export interface JsRuntimeTableCfgFp {
|
|
549
|
+
id: number
|
|
550
|
+
firstColumn: Uint8Array
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export interface JsRuntimeTableCfgFq {
|
|
554
|
+
id: number
|
|
555
|
+
firstColumn: Uint8Array
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface NapiWire {
|
|
559
|
+
row: number
|
|
560
|
+
col: number
|
|
561
|
+
}
|
|
562
|
+
|
|
26
563
|
export const OS_NAME: string
|
|
27
564
|
|
|
28
|
-
export declare function
|
|
565
|
+
export declare function pasta_fp_plonk_index_domain_d8_size(index: ExternalObject<WasmPastaFpPlonkIndex>): number
|
|
566
|
+
|
|
567
|
+
export declare function prover_index_fp_deserialize(bytes: Uint8Array): ExternalObject<WasmPastaFpPlonkIndex>
|
|
568
|
+
|
|
569
|
+
export declare function prover_index_fp_serialize(index: ExternalObject<WasmPastaFpPlonkIndex>): Uint8Array
|
|
570
|
+
|
|
571
|
+
export declare function prover_index_fq_deserialize(bytes: Uint8Array): ExternalObject<WasmPastaFqPlonkIndex>
|
|
29
572
|
|
|
30
|
-
export declare function
|
|
573
|
+
export declare function prover_index_fq_serialize(index: ExternalObject<WasmPastaFqPlonkIndex>): Uint8Array
|
|
31
574
|
|
|
32
575
|
export declare function prover_to_json(proverIndex: ExternalObject<WasmPastaFpPlonkIndex>): string
|
|
576
|
+
|
|
577
|
+
export interface WasmFeatureFlags {
|
|
578
|
+
range_check0: boolean
|
|
579
|
+
range_check1: boolean
|
|
580
|
+
foreign_field_add: boolean
|
|
581
|
+
foreign_field_mul: boolean
|
|
582
|
+
xor: boolean
|
|
583
|
+
rot: boolean
|
|
584
|
+
lookup: boolean
|
|
585
|
+
runtime_tables: boolean
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export interface WasmFpDomain {
|
|
589
|
+
log_size_of_group: number
|
|
590
|
+
group_gen: NapiPastaFp
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export interface WasmFpGate {
|
|
594
|
+
typ: number
|
|
595
|
+
wires: WasmGateWires
|
|
596
|
+
coeffs: Array<number>
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
export interface WasmFpLookupSelectors {
|
|
600
|
+
xor?: NapiPolyComm
|
|
601
|
+
lookup?: NapiPolyComm
|
|
602
|
+
range_check?: NapiPolyComm
|
|
603
|
+
ffmul?: NapiPolyComm
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export interface WasmFpLookupVerifierIndex {
|
|
607
|
+
joint_lookup_used: boolean
|
|
608
|
+
lookup_table: NapiVector<NapiPolyComm>
|
|
609
|
+
lookup_selectors: NapiLookupSelectors
|
|
610
|
+
table_ids?: NapiPolyComm
|
|
611
|
+
lookup_info: NapiLookupInfo
|
|
612
|
+
runtime_tables_selector?: NapiPolyComm
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
export interface WasmFpPlonkVerificationEvals {
|
|
616
|
+
sigma_comm: NapiVector<NapiPolyComm>
|
|
617
|
+
coefficients_comm: NapiVector<NapiPolyComm>
|
|
618
|
+
generic_comm: NapiPolyComm
|
|
619
|
+
psm_comm: NapiPolyComm
|
|
620
|
+
complete_add_comm: NapiPolyComm
|
|
621
|
+
mul_comm: NapiPolyComm
|
|
622
|
+
emul_comm: NapiPolyComm
|
|
623
|
+
endomul_scalar_comm: NapiPolyComm
|
|
624
|
+
xor_comm?: NapiPolyComm
|
|
625
|
+
range_check0_comm?: NapiPolyComm
|
|
626
|
+
range_check1_comm?: NapiPolyComm
|
|
627
|
+
foreign_field_add_comm?: NapiPolyComm
|
|
628
|
+
foreign_field_mul_comm?: NapiPolyComm
|
|
629
|
+
rot_comm?: NapiPolyComm
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export interface WasmFpPlonkVerifierIndex {
|
|
633
|
+
domain: NapiDomain
|
|
634
|
+
max_poly_size: number
|
|
635
|
+
public_: number
|
|
636
|
+
prev_challenges: number
|
|
637
|
+
srs: NapiFpSrs
|
|
638
|
+
evals: NapiPlonkVerificationEvals
|
|
639
|
+
shifts: NapiShifts
|
|
640
|
+
lookup_index?: NapiLookupVerifierIndex
|
|
641
|
+
zk_rows: number
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
export interface WasmFpPointEvaluations {
|
|
645
|
+
zeta: NapiVector<NapiPastaFp>
|
|
646
|
+
zetaOmega: NapiVector<NapiPastaFp>
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
export interface WasmFpProofEvaluationsObject {
|
|
650
|
+
public?: NapiPointEvaluations
|
|
651
|
+
w: NapiVector<NapiPointEvaluations>
|
|
652
|
+
z: NapiPointEvaluations
|
|
653
|
+
s: NapiVector<NapiPointEvaluations>
|
|
654
|
+
coefficients: NapiVector<NapiPointEvaluations>
|
|
655
|
+
genericSelector: NapiPointEvaluations
|
|
656
|
+
poseidonSelector: NapiPointEvaluations
|
|
657
|
+
completeAddSelector: NapiPointEvaluations
|
|
658
|
+
mulSelector: NapiPointEvaluations
|
|
659
|
+
emulSelector: NapiPointEvaluations
|
|
660
|
+
endomulScalarSelector: NapiPointEvaluations
|
|
661
|
+
rangeCheck0Selector?: NapiPointEvaluations
|
|
662
|
+
rangeCheck1Selector?: NapiPointEvaluations
|
|
663
|
+
foreignFieldAddSelector?: NapiPointEvaluations
|
|
664
|
+
foreignFieldMulSelector?: NapiPointEvaluations
|
|
665
|
+
xorSelector?: NapiPointEvaluations
|
|
666
|
+
rotSelector?: NapiPointEvaluations
|
|
667
|
+
lookupAggregation?: NapiPointEvaluations
|
|
668
|
+
lookupTable?: NapiPointEvaluations
|
|
669
|
+
lookupSorted: NapiVector<NapiPointEvaluations | undefined | null>
|
|
670
|
+
runtimeLookupTable?: NapiPointEvaluations
|
|
671
|
+
runtimeLookupTableSelector?: NapiPointEvaluations
|
|
672
|
+
xorLookupSelector?: NapiPointEvaluations
|
|
673
|
+
lookupGateLookupSelector?: NapiPointEvaluations
|
|
674
|
+
rangeCheckLookupSelector?: NapiPointEvaluations
|
|
675
|
+
foreignFieldMulLookupSelector?: NapiPointEvaluations
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
export interface WasmFpRuntimeTable {
|
|
679
|
+
id: number
|
|
680
|
+
data: NapiFlatVector<NapiPastaFp>
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
export interface WasmFpShifts {
|
|
684
|
+
s0: NapiPastaFp
|
|
685
|
+
s1: NapiPastaFp
|
|
686
|
+
s2: NapiPastaFp
|
|
687
|
+
s3: NapiPastaFp
|
|
688
|
+
s4: NapiPastaFp
|
|
689
|
+
s5: NapiPastaFp
|
|
690
|
+
s6: NapiPastaFp
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export interface WasmFqDomain {
|
|
694
|
+
log_size_of_group: number
|
|
695
|
+
group_gen: NapiPastaFq
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export interface WasmFqGate {
|
|
699
|
+
typ: number
|
|
700
|
+
wires: WasmGateWires
|
|
701
|
+
coeffs: Array<number>
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export interface WasmFqLookupSelectors {
|
|
705
|
+
xor?: NapiPolyComm
|
|
706
|
+
lookup?: NapiPolyComm
|
|
707
|
+
range_check?: NapiPolyComm
|
|
708
|
+
ffmul?: NapiPolyComm
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export interface WasmFqLookupVerifierIndex {
|
|
712
|
+
joint_lookup_used: boolean
|
|
713
|
+
lookup_table: NapiVector<NapiPolyComm>
|
|
714
|
+
lookup_selectors: NapiLookupSelectors
|
|
715
|
+
table_ids?: NapiPolyComm
|
|
716
|
+
lookup_info: NapiLookupInfo
|
|
717
|
+
runtime_tables_selector?: NapiPolyComm
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export interface WasmFqPlonkVerificationEvals {
|
|
721
|
+
sigma_comm: NapiVector<NapiPolyComm>
|
|
722
|
+
coefficients_comm: NapiVector<NapiPolyComm>
|
|
723
|
+
generic_comm: NapiPolyComm
|
|
724
|
+
psm_comm: NapiPolyComm
|
|
725
|
+
complete_add_comm: NapiPolyComm
|
|
726
|
+
mul_comm: NapiPolyComm
|
|
727
|
+
emul_comm: NapiPolyComm
|
|
728
|
+
endomul_scalar_comm: NapiPolyComm
|
|
729
|
+
xor_comm?: NapiPolyComm
|
|
730
|
+
range_check0_comm?: NapiPolyComm
|
|
731
|
+
range_check1_comm?: NapiPolyComm
|
|
732
|
+
foreign_field_add_comm?: NapiPolyComm
|
|
733
|
+
foreign_field_mul_comm?: NapiPolyComm
|
|
734
|
+
rot_comm?: NapiPolyComm
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
export interface WasmFqPlonkVerifierIndex {
|
|
738
|
+
domain: NapiDomain
|
|
739
|
+
max_poly_size: number
|
|
740
|
+
public_: number
|
|
741
|
+
prev_challenges: number
|
|
742
|
+
srs: NapiFqSrs
|
|
743
|
+
evals: NapiPlonkVerificationEvals
|
|
744
|
+
shifts: NapiShifts
|
|
745
|
+
lookup_index?: NapiLookupVerifierIndex
|
|
746
|
+
zk_rows: number
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
export interface WasmFqPointEvaluations {
|
|
750
|
+
zeta: NapiVector<NapiPastaFq>
|
|
751
|
+
zetaOmega: NapiVector<NapiPastaFq>
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export interface WasmFqProofEvaluationsObject {
|
|
755
|
+
public?: NapiPointEvaluations
|
|
756
|
+
w: NapiVector<NapiPointEvaluations>
|
|
757
|
+
z: NapiPointEvaluations
|
|
758
|
+
s: NapiVector<NapiPointEvaluations>
|
|
759
|
+
coefficients: NapiVector<NapiPointEvaluations>
|
|
760
|
+
genericSelector: NapiPointEvaluations
|
|
761
|
+
poseidonSelector: NapiPointEvaluations
|
|
762
|
+
completeAddSelector: NapiPointEvaluations
|
|
763
|
+
mulSelector: NapiPointEvaluations
|
|
764
|
+
emulSelector: NapiPointEvaluations
|
|
765
|
+
endomulScalarSelector: NapiPointEvaluations
|
|
766
|
+
rangeCheck0Selector?: NapiPointEvaluations
|
|
767
|
+
rangeCheck1Selector?: NapiPointEvaluations
|
|
768
|
+
foreignFieldAddSelector?: NapiPointEvaluations
|
|
769
|
+
foreignFieldMulSelector?: NapiPointEvaluations
|
|
770
|
+
xorSelector?: NapiPointEvaluations
|
|
771
|
+
rotSelector?: NapiPointEvaluations
|
|
772
|
+
lookupAggregation?: NapiPointEvaluations
|
|
773
|
+
lookupTable?: NapiPointEvaluations
|
|
774
|
+
lookupSorted: NapiVector<NapiPointEvaluations | undefined | null>
|
|
775
|
+
runtimeLookupTable?: NapiPointEvaluations
|
|
776
|
+
runtimeLookupTableSelector?: NapiPointEvaluations
|
|
777
|
+
xorLookupSelector?: NapiPointEvaluations
|
|
778
|
+
lookupGateLookupSelector?: NapiPointEvaluations
|
|
779
|
+
rangeCheckLookupSelector?: NapiPointEvaluations
|
|
780
|
+
foreignFieldMulLookupSelector?: NapiPointEvaluations
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
export interface WasmFqRuntimeTable {
|
|
784
|
+
id: number
|
|
785
|
+
data: NapiFlatVector<NapiPastaFq>
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export interface WasmFqShifts {
|
|
789
|
+
s0: NapiPastaFq
|
|
790
|
+
s1: NapiPastaFq
|
|
791
|
+
s2: NapiPastaFq
|
|
792
|
+
s3: NapiPastaFq
|
|
793
|
+
s4: NapiPastaFq
|
|
794
|
+
s5: NapiPastaFq
|
|
795
|
+
s6: NapiPastaFq
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export interface WasmGateWires {
|
|
799
|
+
w0: NapiWire
|
|
800
|
+
w1: NapiWire
|
|
801
|
+
w2: NapiWire
|
|
802
|
+
w3: NapiWire
|
|
803
|
+
w4: NapiWire
|
|
804
|
+
w5: NapiWire
|
|
805
|
+
w6: NapiWire
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export interface WasmGPallas {
|
|
809
|
+
x: NapiPastaFp
|
|
810
|
+
y: NapiPastaFp
|
|
811
|
+
infinity: boolean
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
export interface WasmGVesta {
|
|
815
|
+
x: NapiPastaFq
|
|
816
|
+
y: NapiPastaFq
|
|
817
|
+
infinity: boolean
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export interface WasmLookupFeatures {
|
|
821
|
+
patterns: WasmLookupPatterns
|
|
822
|
+
joint_lookup_used: boolean
|
|
823
|
+
uses_runtime_tables: boolean
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export interface WasmLookupInfo {
|
|
827
|
+
max_per_row: number
|
|
828
|
+
max_joint_size: number
|
|
829
|
+
features: WasmLookupFeatures
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface WasmLookupPatterns {
|
|
833
|
+
xor: boolean
|
|
834
|
+
lookup: boolean
|
|
835
|
+
range_check: boolean
|
|
836
|
+
foreign_field_mul: boolean
|
|
837
|
+
}
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = require('./
|
|
1
|
+
module.exports = require('./kimchi_napi.node')
|
package/kimchi_napi.node
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o1js/native-linux-x64",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.5",
|
|
4
4
|
"author": "O(1) Labs",
|
|
5
5
|
"os": [
|
|
6
6
|
"linux"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
|
-
"
|
|
19
|
+
"kimchi_napi.node",
|
|
20
20
|
"index.d.ts",
|
|
21
21
|
"index.js"
|
|
22
22
|
],
|
package/plonk_napi.node
DELETED
|
Binary file
|