@o1js/native-linux-x64 0.0.1-dev.3 → 0.0.1-dev.4
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 +492 -3
- package/package.json +1 -1
- package/plonk_napi.node +0 -0
package/index.d.ts
CHANGED
|
@@ -5,6 +5,14 @@
|
|
|
5
5
|
// external pointer types.
|
|
6
6
|
|
|
7
7
|
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 = {};
|
|
8
16
|
|
|
9
17
|
// Header section end
|
|
10
18
|
export declare class ExternalObject<T> {
|
|
@@ -13,20 +21,501 @@ export declare class ExternalObject<T> {
|
|
|
13
21
|
[K: symbol]: T
|
|
14
22
|
}
|
|
15
23
|
}
|
|
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
|
+
export declare class WasmFpGateVector {
|
|
39
|
+
constructor()
|
|
40
|
+
serialize(): Uint8Array
|
|
41
|
+
static deserialize(bytes: Uint8Array): WasmFpGateVector
|
|
42
|
+
}
|
|
43
|
+
export type NapiFpGateVector = WasmFpGateVector
|
|
44
|
+
|
|
45
|
+
export declare class WasmFpPolyComm {
|
|
46
|
+
constructor(unshifted: NapiVector<NapiGVesta>, shifted?: NapiGVesta | undefined | null)
|
|
47
|
+
get unshifted(): NapiVector<NapiGVesta>
|
|
48
|
+
set set_unshifted(x: NapiVector<NapiGVesta>)
|
|
49
|
+
get shifted(): NapiGVesta | null
|
|
50
|
+
set set_shifted(value?: NapiGVesta | undefined | null)
|
|
51
|
+
}
|
|
52
|
+
export type NapiFpPolyComm = WasmFpPolyComm
|
|
53
|
+
|
|
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
|
|
61
|
+
|
|
62
|
+
export declare class WasmFpSrs {
|
|
63
|
+
serialize(): Uint8Array
|
|
64
|
+
static deserialize(bytes: Uint8Array): WasmFpSrs
|
|
65
|
+
}
|
|
66
|
+
export type NapiFpSrs = WasmFpSrs
|
|
67
|
+
|
|
68
|
+
export declare class WasmFqGateVector {
|
|
69
|
+
constructor()
|
|
70
|
+
serialize(): Uint8Array
|
|
71
|
+
static deserialize(bytes: Uint8Array): WasmFqGateVector
|
|
72
|
+
}
|
|
73
|
+
export type NapiFqGateVector = WasmFqGateVector
|
|
74
|
+
|
|
75
|
+
export declare class WasmFqPolyComm {
|
|
76
|
+
constructor(unshifted: NapiVector<NapiGPallas>, shifted?: NapiGPallas | undefined | null)
|
|
77
|
+
get unshifted(): NapiVector<NapiGPallas>
|
|
78
|
+
set set_unshifted(x: NapiVector<NapiGPallas>)
|
|
79
|
+
get shifted(): NapiGPallas | null
|
|
80
|
+
set set_shifted(value?: NapiGPallas | undefined | null)
|
|
81
|
+
}
|
|
82
|
+
export type NapiFqPolyComm = WasmFqPolyComm
|
|
83
|
+
|
|
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
|
|
91
|
+
|
|
92
|
+
export declare class WasmFqSrs {
|
|
93
|
+
serialize(): Uint8Array
|
|
94
|
+
static deserialize(bytes: Uint8Array): WasmFqSrs
|
|
95
|
+
}
|
|
96
|
+
export type NapiFqSrs = WasmFqSrs
|
|
97
|
+
|
|
98
|
+
export declare class WasmPastaFpLookupTable {
|
|
99
|
+
constructor(id: number, data: NapiVecVecFp)
|
|
100
|
+
get id(): number
|
|
101
|
+
set id(id: number)
|
|
102
|
+
get data(): NapiVecVecFp
|
|
103
|
+
set data(data: NapiVecVecFp)
|
|
104
|
+
}
|
|
105
|
+
export type NapiPastaFpLookupTable = WasmPastaFpLookupTable
|
|
106
|
+
|
|
107
|
+
export declare class WasmPastaFpRuntimeTableCfg {
|
|
108
|
+
constructor(id: number, firstColumn: Uint8Array)
|
|
109
|
+
get id(): number
|
|
110
|
+
set id(id: number)
|
|
111
|
+
get firstColumn(): Uint8Array
|
|
112
|
+
}
|
|
113
|
+
export type NapiPastaFpRuntimeTableCfg = WasmPastaFpRuntimeTableCfg
|
|
114
|
+
|
|
115
|
+
export declare class WasmPastaFqLookupTable {
|
|
116
|
+
constructor(id: number, data: NapiVecVecFq)
|
|
117
|
+
get id(): number
|
|
118
|
+
set id(id: number)
|
|
119
|
+
get data(): NapiVecVecFq
|
|
120
|
+
set data(data: NapiVecVecFq)
|
|
121
|
+
}
|
|
122
|
+
export type NapiPastaFqLookupTable = WasmPastaFqLookupTable
|
|
123
|
+
|
|
124
|
+
export declare class WasmPastaFqRuntimeTableCfg {
|
|
125
|
+
constructor(id: number, firstColumn: Uint8Array)
|
|
126
|
+
get id(): number
|
|
127
|
+
set id(id: number)
|
|
128
|
+
get firstColumn(): Uint8Array
|
|
129
|
+
}
|
|
130
|
+
export type NapiPastaFqRuntimeTableCfg = WasmPastaFqRuntimeTableCfg
|
|
131
|
+
|
|
16
132
|
export const ARCH_NAME: string
|
|
17
133
|
|
|
18
134
|
export const BACKING: string
|
|
19
135
|
|
|
136
|
+
export declare function caml_fp_srs_add_lagrange_basis(srs: WasmFpSrs, log2Size: number): void
|
|
137
|
+
|
|
138
|
+
export declare function caml_fp_srs_b_poly_commitment(srs: WasmFpSrs, chals: Uint8Array): WasmFpPolyComm
|
|
139
|
+
|
|
140
|
+
export declare function caml_fp_srs_batch_accumulator_check(srs: WasmFpSrs, comms: NapiVector<NapiGVesta>, chals: Uint8Array): boolean
|
|
141
|
+
|
|
142
|
+
export declare function caml_fp_srs_batch_accumulator_generate(srs: WasmFpSrs, comms: number, chals: Uint8Array): NapiVector<NapiGVesta>
|
|
143
|
+
|
|
144
|
+
export declare function caml_fp_srs_commit_evaluations(srs: WasmFpSrs, domainSize: number, evals: Uint8Array): WasmFpPolyComm
|
|
145
|
+
|
|
146
|
+
export declare function caml_fp_srs_create(depth: number): WasmFpSrs
|
|
147
|
+
|
|
148
|
+
export declare function caml_fp_srs_create_parallel(depth: number): WasmFpSrs
|
|
149
|
+
|
|
150
|
+
export declare function caml_fp_srs_from_bytes(bytes: Uint8Array): NapiFpSrs
|
|
151
|
+
|
|
152
|
+
export declare function caml_fp_srs_from_bytes(bytes: Uint8Array): WasmFpSrs
|
|
153
|
+
|
|
154
|
+
export declare function caml_fp_srs_get(srs: WasmFpSrs): Array<NapiGVesta>
|
|
155
|
+
|
|
156
|
+
export declare function caml_fp_srs_get_h(srs: WasmFpSrs): NapiGVesta
|
|
157
|
+
|
|
158
|
+
export declare function caml_fp_srs_get_lagrange_basis(srs: WasmFpSrs, domainSize: number): NapiVector<WasmFpPolyComm>
|
|
159
|
+
|
|
160
|
+
export declare function caml_fp_srs_maybe_lagrange_commitment(srs: WasmFpSrs, domainSize: number, i: number): WasmFpPolyComm | null
|
|
161
|
+
|
|
162
|
+
export declare function caml_fp_srs_read(offset: number | undefined | null, path: string): WasmFpSrs | null
|
|
163
|
+
|
|
164
|
+
export declare function caml_fp_srs_set(hAndGs: Array<NapiGVesta>): WasmFpSrs
|
|
165
|
+
|
|
166
|
+
export declare function caml_fp_srs_set_lagrange_basis(srs: WasmFpSrs, domainSize: number, inputBases: NapiVector<WasmFpPolyComm>): void
|
|
167
|
+
|
|
168
|
+
export declare function caml_fp_srs_to_bytes(srs: NapiFpSrs): Uint8Array
|
|
169
|
+
|
|
170
|
+
export declare function caml_fp_srs_to_bytes(srs: WasmFpSrs): Uint8Array
|
|
171
|
+
|
|
172
|
+
export declare function caml_fp_srs_write(append: boolean | undefined | null, srs: WasmFpSrs, path: string): void
|
|
173
|
+
|
|
174
|
+
export declare function caml_fq_srs_add_lagrange_basis(srs: WasmFqSrs, log2Size: number): void
|
|
175
|
+
|
|
176
|
+
export declare function caml_fq_srs_b_poly_commitment(srs: WasmFqSrs, chals: Uint8Array): WasmFqPolyComm
|
|
177
|
+
|
|
178
|
+
export declare function caml_fq_srs_batch_accumulator_check(srs: WasmFqSrs, comms: NapiVector<NapiGPallas>, chals: Uint8Array): boolean
|
|
179
|
+
|
|
180
|
+
export declare function caml_fq_srs_batch_accumulator_generate(srs: WasmFqSrs, comms: number, chals: Uint8Array): NapiVector<NapiGPallas>
|
|
181
|
+
|
|
182
|
+
export declare function caml_fq_srs_commit_evaluations(srs: WasmFqSrs, domainSize: number, evals: Uint8Array): WasmFqPolyComm
|
|
183
|
+
|
|
184
|
+
export declare function caml_fq_srs_create(depth: number): WasmFqSrs
|
|
185
|
+
|
|
186
|
+
export declare function caml_fq_srs_create_parallel(depth: number): WasmFqSrs
|
|
187
|
+
|
|
188
|
+
export declare function caml_fq_srs_from_bytes(bytes: Uint8Array): NapiFqSrs
|
|
189
|
+
|
|
190
|
+
export declare function caml_fq_srs_from_bytes(bytes: Uint8Array): WasmFqSrs
|
|
191
|
+
|
|
192
|
+
export declare function caml_fq_srs_get(srs: WasmFqSrs): Array<NapiGPallas>
|
|
193
|
+
|
|
194
|
+
export declare function caml_fq_srs_get_h(srs: WasmFqSrs): NapiGPallas
|
|
195
|
+
|
|
196
|
+
export declare function caml_fq_srs_get_lagrange_basis(srs: WasmFqSrs, domainSize: number): NapiVector<WasmFqPolyComm>
|
|
197
|
+
|
|
198
|
+
export declare function caml_fq_srs_maybe_lagrange_commitment(srs: WasmFqSrs, domainSize: number, i: number): WasmFqPolyComm | null
|
|
199
|
+
|
|
200
|
+
export declare function caml_fq_srs_read(offset: number | undefined | null, path: string): WasmFqSrs | null
|
|
201
|
+
|
|
202
|
+
export declare function caml_fq_srs_set(hAndGs: Array<NapiGPallas>): WasmFqSrs
|
|
203
|
+
|
|
204
|
+
export declare function caml_fq_srs_set_lagrange_basis(srs: WasmFqSrs, domainSize: number, inputBases: NapiVector<WasmFqPolyComm>): void
|
|
205
|
+
|
|
206
|
+
export declare function caml_fq_srs_to_bytes(srs: NapiFqSrs): Uint8Array
|
|
207
|
+
|
|
208
|
+
export declare function caml_fq_srs_to_bytes(srs: WasmFqSrs): Uint8Array
|
|
209
|
+
|
|
210
|
+
export declare function caml_fq_srs_write(append: boolean | undefined | null, srs: WasmFqSrs, path: string): void
|
|
211
|
+
|
|
212
|
+
export declare function caml_pallas_affine_one(): WasmGPallas
|
|
213
|
+
|
|
214
|
+
export declare function caml_pasta_fp_plonk_circuit_serialize(publicInputSize: number, vector: WasmFpGateVector): string
|
|
215
|
+
|
|
216
|
+
export declare function caml_pasta_fp_plonk_gate_vector_add(vector: WasmFpGateVector, gate: WasmFpGate): void
|
|
217
|
+
|
|
218
|
+
export declare function caml_pasta_fp_plonk_gate_vector_create(): WasmFpGateVector
|
|
219
|
+
|
|
220
|
+
export declare function caml_pasta_fp_plonk_gate_vector_digest(publicInputSize: number, vector: WasmFpGateVector): Uint8Array
|
|
221
|
+
|
|
222
|
+
export declare function caml_pasta_fp_plonk_gate_vector_from_bytes(bytes: Uint8Array): WasmFpGateVector
|
|
223
|
+
|
|
224
|
+
export declare function caml_pasta_fp_plonk_gate_vector_get(vector: WasmFpGateVector, index: number): WasmFpGate
|
|
225
|
+
|
|
226
|
+
export declare function caml_pasta_fp_plonk_gate_vector_len(vector: WasmFpGateVector): number
|
|
227
|
+
|
|
228
|
+
export declare function caml_pasta_fp_plonk_gate_vector_to_bytes(vector: WasmFpGateVector): Uint8Array
|
|
229
|
+
|
|
230
|
+
export declare function caml_pasta_fp_plonk_gate_vector_wrap(vector: WasmFpGateVector, target: NapiWire, head: NapiWire): void
|
|
231
|
+
|
|
20
232
|
export declare function caml_pasta_fp_poseidon_block_cipher(state: Uint8Array): Uint8Array
|
|
21
233
|
|
|
234
|
+
export declare function caml_pasta_fq_plonk_circuit_serialize(publicInputSize: number, vector: WasmFqGateVector): string
|
|
235
|
+
|
|
236
|
+
export declare function caml_pasta_fq_plonk_gate_vector_add(vector: WasmFqGateVector, gate: WasmFqGate): void
|
|
237
|
+
|
|
238
|
+
export declare function caml_pasta_fq_plonk_gate_vector_create(): WasmFqGateVector
|
|
239
|
+
|
|
240
|
+
export declare function caml_pasta_fq_plonk_gate_vector_digest(publicInputSize: number, vector: WasmFqGateVector): Uint8Array
|
|
241
|
+
|
|
242
|
+
export declare function caml_pasta_fq_plonk_gate_vector_from_bytes(bytes: Uint8Array): WasmFqGateVector
|
|
243
|
+
|
|
244
|
+
export declare function caml_pasta_fq_plonk_gate_vector_get(vector: WasmFqGateVector, index: number): WasmFqGate
|
|
245
|
+
|
|
246
|
+
export declare function caml_pasta_fq_plonk_gate_vector_len(vector: WasmFqGateVector): number
|
|
247
|
+
|
|
248
|
+
export declare function caml_pasta_fq_plonk_gate_vector_to_bytes(vector: WasmFqGateVector): Uint8Array
|
|
249
|
+
|
|
250
|
+
export declare function caml_pasta_fq_plonk_gate_vector_wrap(vector: WasmFqGateVector, target: NapiWire, head: NapiWire): void
|
|
251
|
+
|
|
22
252
|
export declare function caml_pasta_fq_poseidon_block_cipher(state: Uint8Array): Uint8Array
|
|
23
253
|
|
|
254
|
+
export declare function caml_vesta_affine_one(): WasmGVesta
|
|
255
|
+
|
|
24
256
|
export declare function getNativeCalls(): bigint
|
|
25
257
|
|
|
258
|
+
export interface JsLookupTableFp {
|
|
259
|
+
id: number
|
|
260
|
+
data: Array<Uint8Array>
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface JsLookupTableFq {
|
|
264
|
+
id: number
|
|
265
|
+
data: Array<Uint8Array>
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface JsRuntimeTableCfgFp {
|
|
269
|
+
id: number
|
|
270
|
+
firstColumn: Uint8Array
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
export interface JsRuntimeTableCfgFq {
|
|
274
|
+
id: number
|
|
275
|
+
firstColumn: Uint8Array
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export interface NapiWire {
|
|
279
|
+
row: number
|
|
280
|
+
col: number
|
|
281
|
+
}
|
|
282
|
+
|
|
26
283
|
export const OS_NAME: string
|
|
27
284
|
|
|
28
|
-
export declare function
|
|
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
|
|
29
298
|
|
|
30
|
-
export declare function
|
|
299
|
+
export declare function pasta_fp_plonk_index_public_inputs(index: ExternalObject<NapiPastaFpPlonkIndex>): number
|
|
31
300
|
|
|
32
|
-
export declare function
|
|
301
|
+
export declare function pasta_fp_plonk_index_read(offset: number | undefined | null, srs: ExternalObject<NapiFpSrs>, path: string): ExternalObject<NapiPastaFpPlonkIndex>
|
|
302
|
+
|
|
303
|
+
export declare function pasta_fp_plonk_index_write(append: boolean | undefined | null, index: ExternalObject<NapiPastaFpPlonkIndex>, path: string): void
|
|
304
|
+
|
|
305
|
+
export declare function pasta_fp_plonk_verifier_index_shifts(log2Size: number): WasmFpShifts
|
|
306
|
+
|
|
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>
|
|
308
|
+
|
|
309
|
+
export declare function pasta_fq_plonk_index_decode(bytes: Uint8Array, srs: ExternalObject<NapiFqSrs>): ExternalObject<NapiPastaFqPlonkIndex>
|
|
310
|
+
|
|
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
|
|
338
|
+
|
|
339
|
+
export interface WasmFeatureFlags {
|
|
340
|
+
rangeCheck0: boolean
|
|
341
|
+
rangeCheck1: boolean
|
|
342
|
+
foreignFieldAdd: boolean
|
|
343
|
+
foreignFieldMul: boolean
|
|
344
|
+
xor: boolean
|
|
345
|
+
rot: boolean
|
|
346
|
+
lookup: boolean
|
|
347
|
+
runtimeTables: boolean
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export interface WasmFpDomain {
|
|
351
|
+
logSizeOfGroup: number
|
|
352
|
+
groupGen: Array<number>
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export interface WasmFpGate {
|
|
356
|
+
typ: number
|
|
357
|
+
wires: WasmGateWires
|
|
358
|
+
coeffs: Array<number>
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
export interface WasmFpLookupSelectors {
|
|
362
|
+
xor?: NapiFpPolyComm
|
|
363
|
+
lookup?: NapiFpPolyComm
|
|
364
|
+
rangeCheck?: NapiFpPolyComm
|
|
365
|
+
ffmul?: NapiFpPolyComm
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export interface WasmFpLookupVerifierIndex {
|
|
369
|
+
jointLookupUsed: boolean
|
|
370
|
+
lookupTable: Array<NapiFpPolyComm>
|
|
371
|
+
lookupSelectors: WasmFpLookupSelectors
|
|
372
|
+
tableIds?: NapiFpPolyComm
|
|
373
|
+
lookupInfo: NapiLookupInfo
|
|
374
|
+
runtimeTablesSelector?: NapiFpPolyComm
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
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
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
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
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
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>
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export interface WasmFqDomain {
|
|
417
|
+
logSizeOfGroup: number
|
|
418
|
+
groupGen: Array<number>
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
export interface WasmFqGate {
|
|
422
|
+
typ: number
|
|
423
|
+
wires: WasmGateWires
|
|
424
|
+
coeffs: Array<number>
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export interface WasmFqLookupSelectors {
|
|
428
|
+
xor?: NapiFqPolyComm
|
|
429
|
+
lookup?: NapiFqPolyComm
|
|
430
|
+
rangeCheck?: NapiFqPolyComm
|
|
431
|
+
ffmul?: NapiFqPolyComm
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
export interface WasmFqLookupVerifierIndex {
|
|
435
|
+
jointLookupUsed: boolean
|
|
436
|
+
lookupTable: Array<NapiFqPolyComm>
|
|
437
|
+
lookupSelectors: WasmFqLookupSelectors
|
|
438
|
+
tableIds?: NapiFqPolyComm
|
|
439
|
+
lookupInfo: NapiLookupInfo
|
|
440
|
+
runtimeTablesSelector?: NapiFqPolyComm
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
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
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
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
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
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>
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export interface WasmGateWires {
|
|
483
|
+
w0: NapiWire
|
|
484
|
+
w1: NapiWire
|
|
485
|
+
w2: NapiWire
|
|
486
|
+
w3: NapiWire
|
|
487
|
+
w4: NapiWire
|
|
488
|
+
w5: NapiWire
|
|
489
|
+
w6: NapiWire
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface WasmGPallas {
|
|
493
|
+
x: NapiPastaFp
|
|
494
|
+
y: NapiPastaFp
|
|
495
|
+
infinity: boolean
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export interface WasmGVesta {
|
|
499
|
+
x: NapiPastaFq
|
|
500
|
+
y: NapiPastaFq
|
|
501
|
+
infinity: boolean
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface WasmLookupFeatures {
|
|
505
|
+
patterns: WasmLookupPatterns
|
|
506
|
+
jointLookupUsed: boolean
|
|
507
|
+
usesRuntimeTables: boolean
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
export interface WasmLookupInfo {
|
|
511
|
+
maxPerRow: number
|
|
512
|
+
maxJointSize: number
|
|
513
|
+
features: WasmLookupFeatures
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export interface WasmLookupPatterns {
|
|
517
|
+
xor: boolean
|
|
518
|
+
lookup: boolean
|
|
519
|
+
rangeCheck: boolean
|
|
520
|
+
foreignFieldMul: boolean
|
|
521
|
+
}
|
package/package.json
CHANGED
package/plonk_napi.node
CHANGED
|
Binary file
|