@o1js/native-darwin-x64 0.0.1-dev.4 → 0.0.1-dev.6

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 CHANGED
@@ -1,18 +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 plonk-napi types to supplement
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 = {};
8
- type NapiVector<T> = {};
9
- type NapiGVesta = {};
10
- type NapiGPallas = {};
11
- type NapiPastaFpPlonkIndex = {};
12
- type NapiPastaFqPlonkIndex = {};
13
- type NapiLookupInfo = {};
14
- type NapiPastaFp = {};
15
- type NapiPastaFq = {};
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 = {};
16
22
 
17
23
  // Header section end
18
24
  export declare class ExternalObject<T> {
@@ -21,20 +27,6 @@ export declare class ExternalObject<T> {
21
27
  [K: symbol]: T
22
28
  }
23
29
  }
24
- export declare class NapiVecVecFp {
25
- constructor(capacity: number)
26
- push(vector: Uint8Array): void
27
- get(index: number): Uint8Array
28
- set(index: number, vector: Uint8Array): void
29
- }
30
-
31
- export declare class NapiVecVecFq {
32
- constructor(capacity: number)
33
- push(vector: Uint8Array): void
34
- get(index: number): Uint8Array
35
- set(index: number, vector: Uint8Array): void
36
- }
37
-
38
30
  export declare class WasmFpGateVector {
39
31
  constructor()
40
32
  serialize(): Uint8Array
@@ -42,6 +34,43 @@ export declare class WasmFpGateVector {
42
34
  }
43
35
  export type NapiFpGateVector = WasmFpGateVector
44
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
+
45
74
  export declare class WasmFpPolyComm {
46
75
  constructor(unshifted: NapiVector<NapiGVesta>, shifted?: NapiGVesta | undefined | null)
47
76
  get unshifted(): NapiVector<NapiGVesta>
@@ -51,13 +80,55 @@ export declare class WasmFpPolyComm {
51
80
  }
52
81
  export type NapiFpPolyComm = WasmFpPolyComm
53
82
 
54
- export declare class WasmFpRuntimeTable {
55
- constructor(id: number, data: Uint8Array)
56
- get id(): number
57
- set id(id: number)
58
- get data(): Uint8Array
59
- }
60
- export type NapiFpRuntimeTable = WasmFpRuntimeTable
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
61
132
 
62
133
  export declare class WasmFpSrs {
63
134
  serialize(): Uint8Array
@@ -72,6 +143,43 @@ export declare class WasmFqGateVector {
72
143
  }
73
144
  export type NapiFqGateVector = WasmFqGateVector
74
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
+
75
183
  export declare class WasmFqPolyComm {
76
184
  constructor(unshifted: NapiVector<NapiGPallas>, shifted?: NapiGPallas | undefined | null)
77
185
  get unshifted(): NapiVector<NapiGPallas>
@@ -81,13 +189,55 @@ export declare class WasmFqPolyComm {
81
189
  }
82
190
  export type NapiFqPolyComm = WasmFqPolyComm
83
191
 
84
- export declare class WasmFqRuntimeTable {
85
- constructor(id: number, data: Uint8Array)
86
- get id(): number
87
- set id(id: number)
88
- get data(): Uint8Array
89
- }
90
- export type NapiFqRuntimeTable = WasmFqRuntimeTable
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
91
241
 
92
242
  export declare class WasmFqSrs {
93
243
  serialize(): Uint8Array
@@ -96,39 +246,63 @@ export declare class WasmFqSrs {
96
246
  export type NapiFqSrs = WasmFqSrs
97
247
 
98
248
  export declare class WasmPastaFpLookupTable {
99
- constructor(id: number, data: NapiVecVecFp)
249
+ constructor(id: number, data: WasmVecVecFp)
100
250
  get id(): number
101
251
  set id(id: number)
102
- get data(): NapiVecVecFp
103
- set data(data: NapiVecVecFp)
252
+ get data(): WasmVecVecFp
253
+ set data(data: WasmVecVecFp)
104
254
  }
105
255
  export type NapiPastaFpLookupTable = WasmPastaFpLookupTable
106
256
 
257
+ export declare class WasmPastaFpPlonkIndex {
258
+
259
+ }
260
+
107
261
  export declare class WasmPastaFpRuntimeTableCfg {
108
262
  constructor(id: number, firstColumn: Uint8Array)
109
263
  get id(): number
110
264
  set id(id: number)
111
- get firstColumn(): Uint8Array
265
+ get first_column(): Uint8Array
112
266
  }
113
267
  export type NapiPastaFpRuntimeTableCfg = WasmPastaFpRuntimeTableCfg
114
268
 
115
269
  export declare class WasmPastaFqLookupTable {
116
- constructor(id: number, data: NapiVecVecFq)
270
+ constructor(id: number, data: WasmVecVecFq)
117
271
  get id(): number
118
272
  set id(id: number)
119
- get data(): NapiVecVecFq
120
- set data(data: NapiVecVecFq)
273
+ get data(): WasmVecVecFq
274
+ set data(data: WasmVecVecFq)
121
275
  }
122
276
  export type NapiPastaFqLookupTable = WasmPastaFqLookupTable
123
277
 
278
+ export declare class WasmPastaFqPlonkIndex {
279
+
280
+ }
281
+
124
282
  export declare class WasmPastaFqRuntimeTableCfg {
125
283
  constructor(id: number, firstColumn: Uint8Array)
126
284
  get id(): number
127
285
  set id(id: number)
128
- get firstColumn(): Uint8Array
286
+ get first_column(): Uint8Array
129
287
  }
130
288
  export type NapiPastaFqRuntimeTableCfg = WasmPastaFqRuntimeTableCfg
131
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
+
132
306
  export const ARCH_NAME: string
133
307
 
134
308
  export const BACKING: string
@@ -149,14 +323,16 @@ export declare function caml_fp_srs_create_parallel(depth: number): WasmFpSrs
149
323
 
150
324
  export declare function caml_fp_srs_from_bytes(bytes: Uint8Array): NapiFpSrs
151
325
 
152
- export declare function caml_fp_srs_from_bytes(bytes: Uint8Array): WasmFpSrs
153
-
154
326
  export declare function caml_fp_srs_get(srs: WasmFpSrs): Array<NapiGVesta>
155
327
 
156
- export declare function caml_fp_srs_get_h(srs: WasmFpSrs): NapiGVesta
157
-
158
328
  export declare function caml_fp_srs_get_lagrange_basis(srs: WasmFpSrs, domainSize: number): NapiVector<WasmFpPolyComm>
159
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
+
160
336
  export declare function caml_fp_srs_maybe_lagrange_commitment(srs: WasmFpSrs, domainSize: number, i: number): WasmFpPolyComm | null
161
337
 
162
338
  export declare function caml_fp_srs_read(offset: number | undefined | null, path: string): WasmFpSrs | null
@@ -167,8 +343,6 @@ export declare function caml_fp_srs_set_lagrange_basis(srs: WasmFpSrs, domainSiz
167
343
 
168
344
  export declare function caml_fp_srs_to_bytes(srs: NapiFpSrs): Uint8Array
169
345
 
170
- export declare function caml_fp_srs_to_bytes(srs: WasmFpSrs): Uint8Array
171
-
172
346
  export declare function caml_fp_srs_write(append: boolean | undefined | null, srs: WasmFpSrs, path: string): void
173
347
 
174
348
  export declare function caml_fq_srs_add_lagrange_basis(srs: WasmFqSrs, log2Size: number): void
@@ -187,14 +361,16 @@ export declare function caml_fq_srs_create_parallel(depth: number): WasmFqSrs
187
361
 
188
362
  export declare function caml_fq_srs_from_bytes(bytes: Uint8Array): NapiFqSrs
189
363
 
190
- export declare function caml_fq_srs_from_bytes(bytes: Uint8Array): WasmFqSrs
191
-
192
364
  export declare function caml_fq_srs_get(srs: WasmFqSrs): Array<NapiGPallas>
193
365
 
194
- export declare function caml_fq_srs_get_h(srs: WasmFqSrs): NapiGPallas
195
-
196
366
  export declare function caml_fq_srs_get_lagrange_basis(srs: WasmFqSrs, domainSize: number): NapiVector<WasmFqPolyComm>
197
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
+
198
374
  export declare function caml_fq_srs_maybe_lagrange_commitment(srs: WasmFqSrs, domainSize: number, i: number): WasmFqPolyComm | null
199
375
 
200
376
  export declare function caml_fq_srs_read(offset: number | undefined | null, path: string): WasmFqSrs | null
@@ -205,8 +381,6 @@ export declare function caml_fq_srs_set_lagrange_basis(srs: WasmFqSrs, domainSiz
205
381
 
206
382
  export declare function caml_fq_srs_to_bytes(srs: NapiFqSrs): Uint8Array
207
383
 
208
- export declare function caml_fq_srs_to_bytes(srs: WasmFqSrs): Uint8Array
209
-
210
384
  export declare function caml_fq_srs_write(append: boolean | undefined | null, srs: WasmFqSrs, path: string): void
211
385
 
212
386
  export declare function caml_pallas_affine_one(): WasmGPallas
@@ -229,6 +403,50 @@ export declare function caml_pasta_fp_plonk_gate_vector_to_bytes(vector: WasmFpG
229
403
 
230
404
  export declare function caml_pasta_fp_plonk_gate_vector_wrap(vector: WasmFpGateVector, target: NapiWire, head: NapiWire): void
231
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
+
232
450
  export declare function caml_pasta_fp_poseidon_block_cipher(state: Uint8Array): Uint8Array
233
451
 
234
452
  export declare function caml_pasta_fq_plonk_circuit_serialize(publicInputSize: number, vector: WasmFqGateVector): string
@@ -249,10 +467,72 @@ export declare function caml_pasta_fq_plonk_gate_vector_to_bytes(vector: WasmFqG
249
467
 
250
468
  export declare function caml_pasta_fq_plonk_gate_vector_wrap(vector: WasmFqGateVector, target: NapiWire, head: NapiWire): void
251
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
+
252
516
  export declare function caml_pasta_fq_poseidon_block_cipher(state: Uint8Array): Uint8Array
253
517
 
254
518
  export declare function caml_vesta_affine_one(): WasmGVesta
255
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
+
256
536
  export declare function getNativeCalls(): bigint
257
537
 
258
538
  export interface JsLookupTableFp {
@@ -282,74 +562,32 @@ export interface NapiWire {
282
562
 
283
563
  export const OS_NAME: string
284
564
 
285
- export declare function pasta_fp_plonk_index_create(gates: WasmFpGateVector, public: number, lookupTables: Array<JsLookupTableFp>, runtimeTableCfgs: Array<JsRuntimeTableCfgFp>, prevChallenges: number, srs: ExternalObject<NapiFpSrs>, lazyMode: boolean): ExternalObject<NapiPastaFpPlonkIndex>
286
-
287
- export declare function pasta_fp_plonk_index_decode(bytes: Uint8Array, srs: ExternalObject<NapiFpSrs>): ExternalObject<NapiPastaFpPlonkIndex>
288
-
289
- export declare function pasta_fp_plonk_index_domain_d1_size(index: ExternalObject<NapiPastaFpPlonkIndex>): number
290
-
291
- export declare function pasta_fp_plonk_index_domain_d4_size(index: ExternalObject<NapiPastaFpPlonkIndex>): number
292
-
293
- export declare function pasta_fp_plonk_index_domain_d8_size(index: ExternalObject<NapiPastaFpPlonkIndex>): number
294
-
295
- export declare function pasta_fp_plonk_index_encode(index: ExternalObject<NapiPastaFpPlonkIndex>): Array<number>
296
-
297
- export declare function pasta_fp_plonk_index_max_degree(index: ExternalObject<NapiPastaFpPlonkIndex>): number
298
-
299
- export declare function pasta_fp_plonk_index_public_inputs(index: ExternalObject<NapiPastaFpPlonkIndex>): number
300
-
301
- export declare function pasta_fp_plonk_index_read(offset: number | undefined | null, srs: ExternalObject<NapiFpSrs>, path: string): ExternalObject<NapiPastaFpPlonkIndex>
565
+ export declare function pasta_fp_plonk_index_domain_d8_size(index: ExternalObject<WasmPastaFpPlonkIndex>): number
302
566
 
303
- export declare function pasta_fp_plonk_index_write(append: boolean | undefined | null, index: ExternalObject<NapiPastaFpPlonkIndex>, path: string): void
567
+ export declare function prover_index_fp_deserialize(bytes: Uint8Array): ExternalObject<WasmPastaFpPlonkIndex>
304
568
 
305
- export declare function pasta_fp_plonk_verifier_index_shifts(log2Size: number): WasmFpShifts
569
+ export declare function prover_index_fp_serialize(index: ExternalObject<WasmPastaFpPlonkIndex>): Uint8Array
306
570
 
307
- export declare function pasta_fq_plonk_index_create(gates: WasmFqGateVector, public: number, lookupTables: Array<JsLookupTableFq>, runtimeTableCfgs: Array<JsRuntimeTableCfgFq>, prevChallenges: number, srs: ExternalObject<NapiFqSrs>, lazyMode: boolean): ExternalObject<NapiPastaFqPlonkIndex>
571
+ export declare function prover_index_fq_deserialize(bytes: Uint8Array): ExternalObject<WasmPastaFqPlonkIndex>
308
572
 
309
- export declare function pasta_fq_plonk_index_decode(bytes: Uint8Array, srs: ExternalObject<NapiFqSrs>): ExternalObject<NapiPastaFqPlonkIndex>
573
+ export declare function prover_index_fq_serialize(index: ExternalObject<WasmPastaFqPlonkIndex>): Uint8Array
310
574
 
311
- export declare function pasta_fq_plonk_index_domain_d1_size(index: ExternalObject<NapiPastaFqPlonkIndex>): number
312
-
313
- export declare function pasta_fq_plonk_index_domain_d4_size(index: ExternalObject<NapiPastaFqPlonkIndex>): number
314
-
315
- export declare function pasta_fq_plonk_index_domain_d8_size(index: ExternalObject<NapiPastaFqPlonkIndex>): number
316
-
317
- export declare function pasta_fq_plonk_index_encode(index: ExternalObject<NapiPastaFqPlonkIndex>): Array<number>
318
-
319
- export declare function pasta_fq_plonk_index_max_degree(index: ExternalObject<NapiPastaFqPlonkIndex>): number
320
-
321
- export declare function pasta_fq_plonk_index_public_inputs(index: ExternalObject<NapiPastaFqPlonkIndex>): number
322
-
323
- export declare function pasta_fq_plonk_index_read(offset: number | undefined | null, srs: ExternalObject<NapiFqSrs>, path: string): ExternalObject<NapiPastaFqPlonkIndex>
324
-
325
- export declare function pasta_fq_plonk_index_write(append: boolean | undefined | null, index: ExternalObject<NapiPastaFqPlonkIndex>, path: string): void
326
-
327
- export declare function pasta_fq_plonk_verifier_index_shifts(log2Size: number): WasmFqShifts
328
-
329
- export declare function prover_index_fp_from_bytes(bytes: Uint8Array): ExternalObject<NapiPastaFpPlonkIndex>
330
-
331
- export declare function prover_index_fp_to_bytes(index: ExternalObject<NapiPastaFpPlonkIndex>): Uint8Array
332
-
333
- export declare function prover_index_fq_from_bytes(bytes: Uint8Array): ExternalObject<NapiPastaFqPlonkIndex>
334
-
335
- export declare function prover_index_fq_to_bytes(index: ExternalObject<NapiPastaFqPlonkIndex>): Uint8Array
336
-
337
- export declare function prover_to_json(proverIndex: ExternalObject<NapiPastaFpPlonkIndex>): string
575
+ export declare function prover_to_json(proverIndex: ExternalObject<WasmPastaFpPlonkIndex>): string
338
576
 
339
577
  export interface WasmFeatureFlags {
340
- rangeCheck0: boolean
341
- rangeCheck1: boolean
342
- foreignFieldAdd: boolean
343
- foreignFieldMul: boolean
578
+ range_check0: boolean
579
+ range_check1: boolean
580
+ foreign_field_add: boolean
581
+ foreign_field_mul: boolean
344
582
  xor: boolean
345
583
  rot: boolean
346
584
  lookup: boolean
347
- runtimeTables: boolean
585
+ runtime_tables: boolean
348
586
  }
349
587
 
350
588
  export interface WasmFpDomain {
351
- logSizeOfGroup: number
352
- groupGen: Array<number>
589
+ log_size_of_group: number
590
+ group_gen: NapiPastaFp
353
591
  }
354
592
 
355
593
  export interface WasmFpGate {
@@ -359,63 +597,102 @@ export interface WasmFpGate {
359
597
  }
360
598
 
361
599
  export interface WasmFpLookupSelectors {
362
- xor?: NapiFpPolyComm
363
- lookup?: NapiFpPolyComm
364
- rangeCheck?: NapiFpPolyComm
365
- ffmul?: NapiFpPolyComm
600
+ xor?: NapiPolyComm
601
+ lookup?: NapiPolyComm
602
+ range_check?: NapiPolyComm
603
+ ffmul?: NapiPolyComm
366
604
  }
367
605
 
368
606
  export interface WasmFpLookupVerifierIndex {
369
- jointLookupUsed: boolean
370
- lookupTable: Array<NapiFpPolyComm>
371
- lookupSelectors: WasmFpLookupSelectors
372
- tableIds?: NapiFpPolyComm
373
- lookupInfo: NapiLookupInfo
374
- runtimeTablesSelector?: NapiFpPolyComm
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
375
613
  }
376
614
 
377
615
  export interface WasmFpPlonkVerificationEvals {
378
- sigmaComm: Array<NapiFpPolyComm>
379
- coefficientsComm: Array<NapiFpPolyComm>
380
- genericComm: NapiFpPolyComm
381
- psmComm: NapiFpPolyComm
382
- completeAddComm: NapiFpPolyComm
383
- mulComm: NapiFpPolyComm
384
- emulComm: NapiFpPolyComm
385
- endomulScalarComm: NapiFpPolyComm
386
- xorComm?: NapiFpPolyComm
387
- rangeCheck0Comm?: NapiFpPolyComm
388
- rangeCheck1Comm?: NapiFpPolyComm
389
- foreignFieldAddComm?: NapiFpPolyComm
390
- foreignFieldMulComm?: NapiFpPolyComm
391
- rotComm?: NapiFpPolyComm
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
392
630
  }
393
631
 
394
632
  export interface WasmFpPlonkVerifierIndex {
395
- domain: WasmFpDomain
396
- maxPolySize: number
397
- public: number
398
- prevChallenges: number
399
- srs: Array<number>
400
- evals: WasmFpPlonkVerificationEvals
401
- shifts: WasmFpShifts
402
- lookupIndex?: WasmFpLookupVerifierIndex
403
- zkRows: number
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>
404
681
  }
405
682
 
406
683
  export interface WasmFpShifts {
407
- s0: Array<number>
408
- s1: Array<number>
409
- s2: Array<number>
410
- s3: Array<number>
411
- s4: Array<number>
412
- s5: Array<number>
413
- s6: Array<number>
684
+ s0: NapiPastaFp
685
+ s1: NapiPastaFp
686
+ s2: NapiPastaFp
687
+ s3: NapiPastaFp
688
+ s4: NapiPastaFp
689
+ s5: NapiPastaFp
690
+ s6: NapiPastaFp
414
691
  }
415
692
 
416
693
  export interface WasmFqDomain {
417
- logSizeOfGroup: number
418
- groupGen: Array<number>
694
+ log_size_of_group: number
695
+ group_gen: NapiPastaFq
419
696
  }
420
697
 
421
698
  export interface WasmFqGate {
@@ -425,58 +702,97 @@ export interface WasmFqGate {
425
702
  }
426
703
 
427
704
  export interface WasmFqLookupSelectors {
428
- xor?: NapiFqPolyComm
429
- lookup?: NapiFqPolyComm
430
- rangeCheck?: NapiFqPolyComm
431
- ffmul?: NapiFqPolyComm
705
+ xor?: NapiPolyComm
706
+ lookup?: NapiPolyComm
707
+ range_check?: NapiPolyComm
708
+ ffmul?: NapiPolyComm
432
709
  }
433
710
 
434
711
  export interface WasmFqLookupVerifierIndex {
435
- jointLookupUsed: boolean
436
- lookupTable: Array<NapiFqPolyComm>
437
- lookupSelectors: WasmFqLookupSelectors
438
- tableIds?: NapiFqPolyComm
439
- lookupInfo: NapiLookupInfo
440
- runtimeTablesSelector?: NapiFqPolyComm
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
441
718
  }
442
719
 
443
720
  export interface WasmFqPlonkVerificationEvals {
444
- sigmaComm: Array<NapiFqPolyComm>
445
- coefficientsComm: Array<NapiFqPolyComm>
446
- genericComm: NapiFqPolyComm
447
- psmComm: NapiFqPolyComm
448
- completeAddComm: NapiFqPolyComm
449
- mulComm: NapiFqPolyComm
450
- emulComm: NapiFqPolyComm
451
- endomulScalarComm: NapiFqPolyComm
452
- xorComm?: NapiFqPolyComm
453
- rangeCheck0Comm?: NapiFqPolyComm
454
- rangeCheck1Comm?: NapiFqPolyComm
455
- foreignFieldAddComm?: NapiFqPolyComm
456
- foreignFieldMulComm?: NapiFqPolyComm
457
- rotComm?: NapiFqPolyComm
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
458
735
  }
459
736
 
460
737
  export interface WasmFqPlonkVerifierIndex {
461
- domain: WasmFqDomain
462
- maxPolySize: number
463
- public: number
464
- prevChallenges: number
465
- srs: Array<number>
466
- evals: WasmFqPlonkVerificationEvals
467
- shifts: WasmFqShifts
468
- lookupIndex?: WasmFqLookupVerifierIndex
469
- zkRows: number
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>
470
786
  }
471
787
 
472
788
  export interface WasmFqShifts {
473
- s0: Array<number>
474
- s1: Array<number>
475
- s2: Array<number>
476
- s3: Array<number>
477
- s4: Array<number>
478
- s5: Array<number>
479
- s6: Array<number>
789
+ s0: NapiPastaFq
790
+ s1: NapiPastaFq
791
+ s2: NapiPastaFq
792
+ s3: NapiPastaFq
793
+ s4: NapiPastaFq
794
+ s5: NapiPastaFq
795
+ s6: NapiPastaFq
480
796
  }
481
797
 
482
798
  export interface WasmGateWires {
@@ -503,19 +819,19 @@ export interface WasmGVesta {
503
819
 
504
820
  export interface WasmLookupFeatures {
505
821
  patterns: WasmLookupPatterns
506
- jointLookupUsed: boolean
507
- usesRuntimeTables: boolean
822
+ joint_lookup_used: boolean
823
+ uses_runtime_tables: boolean
508
824
  }
509
825
 
510
826
  export interface WasmLookupInfo {
511
- maxPerRow: number
512
- maxJointSize: number
827
+ max_per_row: number
828
+ max_joint_size: number
513
829
  features: WasmLookupFeatures
514
830
  }
515
831
 
516
832
  export interface WasmLookupPatterns {
517
833
  xor: boolean
518
834
  lookup: boolean
519
- rangeCheck: boolean
520
- foreignFieldMul: boolean
835
+ range_check: boolean
836
+ foreign_field_mul: boolean
521
837
  }
package/index.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('./plonk_napi.node')
1
+ module.exports = require('./kimchi_napi.node')
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o1js/native-darwin-x64",
3
- "version": "0.0.1-dev.4",
3
+ "version": "0.0.1-dev.6",
4
4
  "author": "O(1) Labs",
5
5
  "os": [
6
6
  "darwin"
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "files": [
19
- "plonk_napi.node",
19
+ "kimchi_napi.node",
20
20
  "index.d.ts",
21
21
  "index.js"
22
22
  ],
package/plonk_napi.node DELETED
Binary file