@aztec/bb.js 3.0.0-nightly.20251203 → 3.0.0-nightly.20251204
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/build/amd64-linux/bb +0 -0
- package/build/amd64-macos/bb +0 -0
- package/build/arm64-linux/bb +0 -0
- package/build/arm64-macos/bb +0 -0
- package/package.json +1 -1
- package/src/cbind/generated/api_types.ts +0 -4271
- package/src/cbind/generated/async.ts +0 -717
- package/src/cbind/generated/curve_constants.ts +0 -53
- package/src/cbind/generated/sync.ts +0 -663
|
@@ -1,4271 +0,0 @@
|
|
|
1
|
-
// AUTOGENERATED FILE - DO NOT EDIT
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
// Type aliases
|
|
5
|
-
export type Field2 = [Uint8Array, Uint8Array];
|
|
6
|
-
export type Fq = Uint8Array;
|
|
7
|
-
export type Fr = Uint8Array;
|
|
8
|
-
export type Secp256k1Fq = Uint8Array;
|
|
9
|
-
export type Secp256k1Fr = Uint8Array;
|
|
10
|
-
export type Secp256r1Fq = Uint8Array;
|
|
11
|
-
export type Secp256r1Fr = Uint8Array;
|
|
12
|
-
export type Uint256T = Uint8Array;
|
|
13
|
-
|
|
14
|
-
// Public interfaces (exported)
|
|
15
|
-
export interface AesDecrypt {
|
|
16
|
-
ciphertext: Uint8Array;
|
|
17
|
-
iv: Uint8Array;
|
|
18
|
-
key: Uint8Array;
|
|
19
|
-
length: number;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface MsgpackAesDecrypt {
|
|
23
|
-
ciphertext: Uint8Array;
|
|
24
|
-
iv: Uint8Array;
|
|
25
|
-
key: Uint8Array;
|
|
26
|
-
length: number;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface AesDecryptResponse {
|
|
30
|
-
plaintext: Uint8Array;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface MsgpackAesDecryptResponse {
|
|
34
|
-
plaintext: Uint8Array;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface AesEncrypt {
|
|
38
|
-
plaintext: Uint8Array;
|
|
39
|
-
iv: Uint8Array;
|
|
40
|
-
key: Uint8Array;
|
|
41
|
-
length: number;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface MsgpackAesEncrypt {
|
|
45
|
-
plaintext: Uint8Array;
|
|
46
|
-
iv: Uint8Array;
|
|
47
|
-
key: Uint8Array;
|
|
48
|
-
length: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface AesEncryptResponse {
|
|
52
|
-
ciphertext: Uint8Array;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface MsgpackAesEncryptResponse {
|
|
56
|
-
ciphertext: Uint8Array;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface Blake2s {
|
|
60
|
-
data: Uint8Array;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
interface MsgpackBlake2s {
|
|
64
|
-
data: Uint8Array;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface Blake2sResponse {
|
|
68
|
-
hash: Uint8Array;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
interface MsgpackBlake2sResponse {
|
|
72
|
-
hash: Uint8Array;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface Blake2sToField {
|
|
76
|
-
data: Uint8Array;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface MsgpackBlake2sToField {
|
|
80
|
-
data: Uint8Array;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface Blake2sToFieldResponse {
|
|
84
|
-
field: Fr;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
interface MsgpackBlake2sToFieldResponse {
|
|
88
|
-
field: Uint8Array;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface Bn254FqSqrt {
|
|
92
|
-
input: Fq;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
interface MsgpackBn254FqSqrt {
|
|
96
|
-
input: Uint8Array;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export interface Bn254FqSqrtResponse {
|
|
100
|
-
isSquareRoot: boolean;
|
|
101
|
-
value: Fq;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface MsgpackBn254FqSqrtResponse {
|
|
105
|
-
is_square_root: boolean;
|
|
106
|
-
value: Uint8Array;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export interface Bn254FrSqrt {
|
|
110
|
-
input: Fr;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
interface MsgpackBn254FrSqrt {
|
|
114
|
-
input: Uint8Array;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface Bn254FrSqrtResponse {
|
|
118
|
-
isSquareRoot: boolean;
|
|
119
|
-
value: Fr;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
interface MsgpackBn254FrSqrtResponse {
|
|
123
|
-
is_square_root: boolean;
|
|
124
|
-
value: Uint8Array;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export interface Bn254G1FromCompressed {
|
|
128
|
-
compressed: Uint8Array;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
interface MsgpackBn254G1FromCompressed {
|
|
132
|
-
compressed: Uint8Array;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface Bn254G1FromCompressedResponse {
|
|
136
|
-
point: Bn254G1Point;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
interface MsgpackBn254G1FromCompressedResponse {
|
|
140
|
-
point: MsgpackBn254G1Point;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface Bn254G1IsOnCurve {
|
|
144
|
-
point: Bn254G1Point;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
interface MsgpackBn254G1IsOnCurve {
|
|
148
|
-
point: MsgpackBn254G1Point;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface Bn254G1IsOnCurveResponse {
|
|
152
|
-
isOnCurve: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
interface MsgpackBn254G1IsOnCurveResponse {
|
|
156
|
-
is_on_curve: boolean;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface Bn254G1Mul {
|
|
160
|
-
point: Bn254G1Point;
|
|
161
|
-
scalar: Fr;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
interface MsgpackBn254G1Mul {
|
|
165
|
-
point: MsgpackBn254G1Point;
|
|
166
|
-
scalar: Uint8Array;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export interface Bn254G1MulResponse {
|
|
170
|
-
point: Bn254G1Point;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
interface MsgpackBn254G1MulResponse {
|
|
174
|
-
point: MsgpackBn254G1Point;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface Bn254G1Point {
|
|
178
|
-
x: Fq;
|
|
179
|
-
y: Fq;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
interface MsgpackBn254G1Point {
|
|
183
|
-
x: Uint8Array;
|
|
184
|
-
y: Uint8Array;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface Bn254G2Mul {
|
|
188
|
-
point: Bn254G2Point;
|
|
189
|
-
scalar: Fr;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
interface MsgpackBn254G2Mul {
|
|
193
|
-
point: MsgpackBn254G2Point;
|
|
194
|
-
scalar: Uint8Array;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export interface Bn254G2MulResponse {
|
|
198
|
-
point: Bn254G2Point;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
interface MsgpackBn254G2MulResponse {
|
|
202
|
-
point: MsgpackBn254G2Point;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export interface Bn254G2Point {
|
|
206
|
-
x: Field2;
|
|
207
|
-
y: Field2;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
interface MsgpackBn254G2Point {
|
|
211
|
-
x: [Uint8Array, Uint8Array];
|
|
212
|
-
y: [Uint8Array, Uint8Array];
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface ChonkAccumulate {
|
|
216
|
-
witness: Uint8Array;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
interface MsgpackChonkAccumulate {
|
|
220
|
-
witness: Uint8Array;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export interface ChonkAccumulateResponse {
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
interface MsgpackChonkAccumulateResponse {
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
export interface ChonkCheckPrecomputedVk {
|
|
230
|
-
circuit: CircuitInput;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
interface MsgpackChonkCheckPrecomputedVk {
|
|
234
|
-
circuit: MsgpackCircuitInput;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
export interface ChonkCheckPrecomputedVkResponse {
|
|
238
|
-
valid: boolean;
|
|
239
|
-
actualVk: Uint8Array;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
interface MsgpackChonkCheckPrecomputedVkResponse {
|
|
243
|
-
valid: boolean;
|
|
244
|
-
actual_vk: Uint8Array;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface ChonkComputeIvcVk {
|
|
248
|
-
circuit: CircuitInputNoVK;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
interface MsgpackChonkComputeIvcVk {
|
|
252
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export interface ChonkComputeIvcVkResponse {
|
|
256
|
-
bytes: Uint8Array;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
interface MsgpackChonkComputeIvcVkResponse {
|
|
260
|
-
bytes: Uint8Array;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export interface ChonkComputeStandaloneVk {
|
|
264
|
-
circuit: CircuitInputNoVK;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
interface MsgpackChonkComputeStandaloneVk {
|
|
268
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
export interface ChonkComputeStandaloneVkResponse {
|
|
272
|
-
bytes: Uint8Array;
|
|
273
|
-
fields: Fr[];
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
interface MsgpackChonkComputeStandaloneVkResponse {
|
|
277
|
-
bytes: Uint8Array;
|
|
278
|
-
fields: Uint8Array[];
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
export interface ChonkLoad {
|
|
282
|
-
circuit: CircuitInput;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
interface MsgpackChonkLoad {
|
|
286
|
-
circuit: MsgpackCircuitInput;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
export interface ChonkLoadResponse {
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
interface MsgpackChonkLoadResponse {
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
export interface ChonkProof {
|
|
296
|
-
megaProof: Fr[];
|
|
297
|
-
goblinProof: GoblinProof;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
interface MsgpackChonkProof {
|
|
301
|
-
mega_proof: Uint8Array[];
|
|
302
|
-
goblin_proof: MsgpackGoblinProof;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
export interface ChonkProve {
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
interface MsgpackChonkProve {
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export interface ChonkProveResponse {
|
|
312
|
-
proof: ChonkProof;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
interface MsgpackChonkProveResponse {
|
|
316
|
-
proof: MsgpackChonkProof;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
export interface ChonkStart {
|
|
320
|
-
numCircuits: number;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
interface MsgpackChonkStart {
|
|
324
|
-
num_circuits: number;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
export interface ChonkStartResponse {
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
interface MsgpackChonkStartResponse {
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export interface ChonkStats {
|
|
334
|
-
circuit: CircuitInputNoVK;
|
|
335
|
-
includeGatesPerOpcode: boolean;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
interface MsgpackChonkStats {
|
|
339
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
340
|
-
include_gates_per_opcode: boolean;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export interface ChonkStatsResponse {
|
|
344
|
-
acirOpcodes: number;
|
|
345
|
-
circuitSize: number;
|
|
346
|
-
gatesPerOpcode: number[];
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
interface MsgpackChonkStatsResponse {
|
|
350
|
-
acir_opcodes: number;
|
|
351
|
-
circuit_size: number;
|
|
352
|
-
gates_per_opcode: number[];
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
export interface ChonkVerify {
|
|
356
|
-
proof: ChonkProof;
|
|
357
|
-
vk: Uint8Array;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
interface MsgpackChonkVerify {
|
|
361
|
-
proof: MsgpackChonkProof;
|
|
362
|
-
vk: Uint8Array;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
export interface ChonkVerifyResponse {
|
|
366
|
-
valid: boolean;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
interface MsgpackChonkVerifyResponse {
|
|
370
|
-
valid: boolean;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
export interface CircuitComputeVk {
|
|
374
|
-
circuit: CircuitInputNoVK;
|
|
375
|
-
settings: ProofSystemSettings;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
interface MsgpackCircuitComputeVk {
|
|
379
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
380
|
-
settings: MsgpackProofSystemSettings;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
export interface CircuitComputeVkResponse {
|
|
384
|
-
bytes: Uint8Array;
|
|
385
|
-
fields: Uint256T[];
|
|
386
|
-
hash: Uint8Array;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
interface MsgpackCircuitComputeVkResponse {
|
|
390
|
-
bytes: Uint8Array;
|
|
391
|
-
fields: Uint8Array[];
|
|
392
|
-
hash: Uint8Array;
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
export interface CircuitInfoResponse {
|
|
396
|
-
numGates: number;
|
|
397
|
-
numGatesDyadic: number;
|
|
398
|
-
numAcirOpcodes: number;
|
|
399
|
-
gatesPerOpcode: number[];
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
interface MsgpackCircuitInfoResponse {
|
|
403
|
-
num_gates: number;
|
|
404
|
-
num_gates_dyadic: number;
|
|
405
|
-
num_acir_opcodes: number;
|
|
406
|
-
gates_per_opcode: number[];
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export interface CircuitInput {
|
|
410
|
-
name: string;
|
|
411
|
-
bytecode: Uint8Array;
|
|
412
|
-
verificationKey: Uint8Array;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
interface MsgpackCircuitInput {
|
|
416
|
-
name: string;
|
|
417
|
-
bytecode: Uint8Array;
|
|
418
|
-
verification_key: Uint8Array;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
export interface CircuitInputNoVK {
|
|
422
|
-
name: string;
|
|
423
|
-
bytecode: Uint8Array;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
interface MsgpackCircuitInputNoVK {
|
|
427
|
-
name: string;
|
|
428
|
-
bytecode: Uint8Array;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export interface CircuitProve {
|
|
432
|
-
circuit: CircuitInput;
|
|
433
|
-
witness: Uint8Array;
|
|
434
|
-
settings: ProofSystemSettings;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
interface MsgpackCircuitProve {
|
|
438
|
-
circuit: MsgpackCircuitInput;
|
|
439
|
-
witness: Uint8Array;
|
|
440
|
-
settings: MsgpackProofSystemSettings;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
export interface CircuitProveResponse {
|
|
444
|
-
publicInputs: Uint256T[];
|
|
445
|
-
proof: Uint256T[];
|
|
446
|
-
vk: CircuitComputeVkResponse;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
interface MsgpackCircuitProveResponse {
|
|
450
|
-
public_inputs: Uint8Array[];
|
|
451
|
-
proof: Uint8Array[];
|
|
452
|
-
vk: MsgpackCircuitComputeVkResponse;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export interface CircuitStats {
|
|
456
|
-
circuit: CircuitInput;
|
|
457
|
-
includeGatesPerOpcode: boolean;
|
|
458
|
-
settings: ProofSystemSettings;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
interface MsgpackCircuitStats {
|
|
462
|
-
circuit: MsgpackCircuitInput;
|
|
463
|
-
include_gates_per_opcode: boolean;
|
|
464
|
-
settings: MsgpackProofSystemSettings;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
export interface CircuitVerify {
|
|
468
|
-
verificationKey: Uint8Array;
|
|
469
|
-
publicInputs: Uint256T[];
|
|
470
|
-
proof: Uint256T[];
|
|
471
|
-
settings: ProofSystemSettings;
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
interface MsgpackCircuitVerify {
|
|
475
|
-
verification_key: Uint8Array;
|
|
476
|
-
public_inputs: Uint8Array[];
|
|
477
|
-
proof: Uint8Array[];
|
|
478
|
-
settings: MsgpackProofSystemSettings;
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
export interface CircuitVerifyResponse {
|
|
482
|
-
verified: boolean;
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
interface MsgpackCircuitVerifyResponse {
|
|
486
|
-
verified: boolean;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export interface CircuitWriteSolidityVerifier {
|
|
490
|
-
verificationKey: Uint8Array;
|
|
491
|
-
settings: ProofSystemSettings;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
interface MsgpackCircuitWriteSolidityVerifier {
|
|
495
|
-
verification_key: Uint8Array;
|
|
496
|
-
settings: MsgpackProofSystemSettings;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export interface CircuitWriteSolidityVerifierResponse {
|
|
500
|
-
solidityCode: string;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
interface MsgpackCircuitWriteSolidityVerifierResponse {
|
|
504
|
-
solidity_code: string;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
export interface ECCVMProof {
|
|
508
|
-
preIpaProof: Fr[];
|
|
509
|
-
ipaProof: Fr[];
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
interface MsgpackECCVMProof {
|
|
513
|
-
pre_ipa_proof: Uint8Array[];
|
|
514
|
-
ipa_proof: Uint8Array[];
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export interface EcdsaSecp256k1ComputePublicKey {
|
|
518
|
-
privateKey: Secp256k1Fr;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
interface MsgpackEcdsaSecp256k1ComputePublicKey {
|
|
522
|
-
private_key: Uint8Array;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
export interface EcdsaSecp256k1ComputePublicKeyResponse {
|
|
526
|
-
publicKey: Secp256k1Point;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
530
|
-
public_key: MsgpackSecp256k1Point;
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
export interface EcdsaSecp256k1ConstructSignature {
|
|
534
|
-
message: Uint8Array;
|
|
535
|
-
privateKey: Secp256k1Fr;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
interface MsgpackEcdsaSecp256k1ConstructSignature {
|
|
539
|
-
message: Uint8Array;
|
|
540
|
-
private_key: Uint8Array;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
export interface EcdsaSecp256k1ConstructSignatureResponse {
|
|
544
|
-
r: Uint8Array;
|
|
545
|
-
s: Uint8Array;
|
|
546
|
-
v: number;
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
interface MsgpackEcdsaSecp256k1ConstructSignatureResponse {
|
|
550
|
-
r: Uint8Array;
|
|
551
|
-
s: Uint8Array;
|
|
552
|
-
v: number;
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
export interface EcdsaSecp256k1RecoverPublicKey {
|
|
556
|
-
message: Uint8Array;
|
|
557
|
-
r: Uint8Array;
|
|
558
|
-
s: Uint8Array;
|
|
559
|
-
v: number;
|
|
560
|
-
}
|
|
561
|
-
|
|
562
|
-
interface MsgpackEcdsaSecp256k1RecoverPublicKey {
|
|
563
|
-
message: Uint8Array;
|
|
564
|
-
r: Uint8Array;
|
|
565
|
-
s: Uint8Array;
|
|
566
|
-
v: number;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
570
|
-
publicKey: Secp256k1Point;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
574
|
-
public_key: MsgpackSecp256k1Point;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
export interface EcdsaSecp256k1VerifySignature {
|
|
578
|
-
message: Uint8Array;
|
|
579
|
-
publicKey: Secp256k1Point;
|
|
580
|
-
r: Uint8Array;
|
|
581
|
-
s: Uint8Array;
|
|
582
|
-
v: number;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
interface MsgpackEcdsaSecp256k1VerifySignature {
|
|
586
|
-
message: Uint8Array;
|
|
587
|
-
public_key: MsgpackSecp256k1Point;
|
|
588
|
-
r: Uint8Array;
|
|
589
|
-
s: Uint8Array;
|
|
590
|
-
v: number;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
export interface EcdsaSecp256k1VerifySignatureResponse {
|
|
594
|
-
verified: boolean;
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
interface MsgpackEcdsaSecp256k1VerifySignatureResponse {
|
|
598
|
-
verified: boolean;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
|
-
export interface EcdsaSecp256r1ComputePublicKey {
|
|
602
|
-
privateKey: Secp256r1Fr;
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
interface MsgpackEcdsaSecp256r1ComputePublicKey {
|
|
606
|
-
private_key: Uint8Array;
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
export interface EcdsaSecp256r1ComputePublicKeyResponse {
|
|
610
|
-
publicKey: Secp256r1Point;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
614
|
-
public_key: MsgpackSecp256r1Point;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
export interface EcdsaSecp256r1ConstructSignature {
|
|
618
|
-
message: Uint8Array;
|
|
619
|
-
privateKey: Secp256r1Fr;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
interface MsgpackEcdsaSecp256r1ConstructSignature {
|
|
623
|
-
message: Uint8Array;
|
|
624
|
-
private_key: Uint8Array;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export interface EcdsaSecp256r1ConstructSignatureResponse {
|
|
628
|
-
r: Uint8Array;
|
|
629
|
-
s: Uint8Array;
|
|
630
|
-
v: number;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
interface MsgpackEcdsaSecp256r1ConstructSignatureResponse {
|
|
634
|
-
r: Uint8Array;
|
|
635
|
-
s: Uint8Array;
|
|
636
|
-
v: number;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
export interface EcdsaSecp256r1RecoverPublicKey {
|
|
640
|
-
message: Uint8Array;
|
|
641
|
-
r: Uint8Array;
|
|
642
|
-
s: Uint8Array;
|
|
643
|
-
v: number;
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
interface MsgpackEcdsaSecp256r1RecoverPublicKey {
|
|
647
|
-
message: Uint8Array;
|
|
648
|
-
r: Uint8Array;
|
|
649
|
-
s: Uint8Array;
|
|
650
|
-
v: number;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
export interface EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
654
|
-
publicKey: Secp256r1Point;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
658
|
-
public_key: MsgpackSecp256r1Point;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
export interface EcdsaSecp256r1VerifySignature {
|
|
662
|
-
message: Uint8Array;
|
|
663
|
-
publicKey: Secp256r1Point;
|
|
664
|
-
r: Uint8Array;
|
|
665
|
-
s: Uint8Array;
|
|
666
|
-
v: number;
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
interface MsgpackEcdsaSecp256r1VerifySignature {
|
|
670
|
-
message: Uint8Array;
|
|
671
|
-
public_key: MsgpackSecp256r1Point;
|
|
672
|
-
r: Uint8Array;
|
|
673
|
-
s: Uint8Array;
|
|
674
|
-
v: number;
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
export interface EcdsaSecp256r1VerifySignatureResponse {
|
|
678
|
-
verified: boolean;
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
|
|
682
|
-
verified: boolean;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
export interface ErrorResponse {
|
|
686
|
-
message: string;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
interface MsgpackErrorResponse {
|
|
690
|
-
message: string;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
export interface GoblinProof {
|
|
694
|
-
mergeProof: Fr[];
|
|
695
|
-
eccvmProof: ECCVMProof;
|
|
696
|
-
translatorProof: Fr[];
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
interface MsgpackGoblinProof {
|
|
700
|
-
merge_proof: Uint8Array[];
|
|
701
|
-
eccvm_proof: MsgpackECCVMProof;
|
|
702
|
-
translator_proof: Uint8Array[];
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
export interface GrumpkinAdd {
|
|
706
|
-
pointA: GrumpkinPoint;
|
|
707
|
-
pointB: GrumpkinPoint;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
interface MsgpackGrumpkinAdd {
|
|
711
|
-
point_a: MsgpackGrumpkinPoint;
|
|
712
|
-
point_b: MsgpackGrumpkinPoint;
|
|
713
|
-
}
|
|
714
|
-
|
|
715
|
-
export interface GrumpkinAddResponse {
|
|
716
|
-
point: GrumpkinPoint;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
interface MsgpackGrumpkinAddResponse {
|
|
720
|
-
point: MsgpackGrumpkinPoint;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
export interface GrumpkinBatchMul {
|
|
724
|
-
points: GrumpkinPoint[];
|
|
725
|
-
scalar: Fq;
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
interface MsgpackGrumpkinBatchMul {
|
|
729
|
-
points: MsgpackGrumpkinPoint[];
|
|
730
|
-
scalar: Uint8Array;
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
export interface GrumpkinBatchMulResponse {
|
|
734
|
-
points: GrumpkinPoint[];
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
interface MsgpackGrumpkinBatchMulResponse {
|
|
738
|
-
points: MsgpackGrumpkinPoint[];
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
export interface GrumpkinGetRandomFr {
|
|
742
|
-
dummy: number;
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
interface MsgpackGrumpkinGetRandomFr {
|
|
746
|
-
dummy: number;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
export interface GrumpkinGetRandomFrResponse {
|
|
750
|
-
value: Fr;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
interface MsgpackGrumpkinGetRandomFrResponse {
|
|
754
|
-
value: Uint8Array;
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
export interface GrumpkinMul {
|
|
758
|
-
point: GrumpkinPoint;
|
|
759
|
-
scalar: Fq;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
interface MsgpackGrumpkinMul {
|
|
763
|
-
point: MsgpackGrumpkinPoint;
|
|
764
|
-
scalar: Uint8Array;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
export interface GrumpkinMulResponse {
|
|
768
|
-
point: GrumpkinPoint;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
interface MsgpackGrumpkinMulResponse {
|
|
772
|
-
point: MsgpackGrumpkinPoint;
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
export interface GrumpkinPoint {
|
|
776
|
-
x: Fr;
|
|
777
|
-
y: Fr;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
interface MsgpackGrumpkinPoint {
|
|
781
|
-
x: Uint8Array;
|
|
782
|
-
y: Uint8Array;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
export interface GrumpkinReduce512 {
|
|
786
|
-
input: Uint8Array;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
interface MsgpackGrumpkinReduce512 {
|
|
790
|
-
input: Uint8Array;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
export interface GrumpkinReduce512Response {
|
|
794
|
-
value: Fr;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
interface MsgpackGrumpkinReduce512Response {
|
|
798
|
-
value: Uint8Array;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
export interface MegaVkAsFields {
|
|
802
|
-
verificationKey: Uint8Array;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
interface MsgpackMegaVkAsFields {
|
|
806
|
-
verification_key: Uint8Array;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
export interface MegaVkAsFieldsResponse {
|
|
810
|
-
fields: Fr[];
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
interface MsgpackMegaVkAsFieldsResponse {
|
|
814
|
-
fields: Uint8Array[];
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
export interface PedersenCommit {
|
|
818
|
-
inputs: Fr[];
|
|
819
|
-
hashIndex: number;
|
|
820
|
-
}
|
|
821
|
-
|
|
822
|
-
interface MsgpackPedersenCommit {
|
|
823
|
-
inputs: Uint8Array[];
|
|
824
|
-
hash_index: number;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
export interface PedersenCommitResponse {
|
|
828
|
-
point: GrumpkinPoint;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
interface MsgpackPedersenCommitResponse {
|
|
832
|
-
point: MsgpackGrumpkinPoint;
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
export interface PedersenHash {
|
|
836
|
-
inputs: Fr[];
|
|
837
|
-
hashIndex: number;
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
interface MsgpackPedersenHash {
|
|
841
|
-
inputs: Uint8Array[];
|
|
842
|
-
hash_index: number;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
export interface PedersenHashBuffer {
|
|
846
|
-
input: Uint8Array;
|
|
847
|
-
hashIndex: number;
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
interface MsgpackPedersenHashBuffer {
|
|
851
|
-
input: Uint8Array;
|
|
852
|
-
hash_index: number;
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
export interface PedersenHashBufferResponse {
|
|
856
|
-
hash: Fr;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
interface MsgpackPedersenHashBufferResponse {
|
|
860
|
-
hash: Uint8Array;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
export interface PedersenHashResponse {
|
|
864
|
-
hash: Fr;
|
|
865
|
-
}
|
|
866
|
-
|
|
867
|
-
interface MsgpackPedersenHashResponse {
|
|
868
|
-
hash: Uint8Array;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
export interface Poseidon2Hash {
|
|
872
|
-
inputs: Fr[];
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
interface MsgpackPoseidon2Hash {
|
|
876
|
-
inputs: Uint8Array[];
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
export interface Poseidon2HashAccumulate {
|
|
880
|
-
inputs: Fr[];
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
interface MsgpackPoseidon2HashAccumulate {
|
|
884
|
-
inputs: Uint8Array[];
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
export interface Poseidon2HashAccumulateResponse {
|
|
888
|
-
hash: Fr;
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
interface MsgpackPoseidon2HashAccumulateResponse {
|
|
892
|
-
hash: Uint8Array;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
export interface Poseidon2HashResponse {
|
|
896
|
-
hash: Fr;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
interface MsgpackPoseidon2HashResponse {
|
|
900
|
-
hash: Uint8Array;
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
export interface Poseidon2Permutation {
|
|
904
|
-
inputs: Fr[];
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
interface MsgpackPoseidon2Permutation {
|
|
908
|
-
inputs: Uint8Array[];
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
export interface Poseidon2PermutationResponse {
|
|
912
|
-
outputs: Fr[];
|
|
913
|
-
}
|
|
914
|
-
|
|
915
|
-
interface MsgpackPoseidon2PermutationResponse {
|
|
916
|
-
outputs: Uint8Array[];
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
export interface ProofSystemSettings {
|
|
920
|
-
ipaAccumulation: boolean;
|
|
921
|
-
oracleHashType: string;
|
|
922
|
-
disableZk: boolean;
|
|
923
|
-
optimizedSolidityVerifier: boolean;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
interface MsgpackProofSystemSettings {
|
|
927
|
-
ipa_accumulation: boolean;
|
|
928
|
-
oracle_hash_type: string;
|
|
929
|
-
disable_zk: boolean;
|
|
930
|
-
optimized_solidity_verifier: boolean;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
export interface SchnorrComputePublicKey {
|
|
934
|
-
privateKey: Fq;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
interface MsgpackSchnorrComputePublicKey {
|
|
938
|
-
private_key: Uint8Array;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
export interface SchnorrComputePublicKeyResponse {
|
|
942
|
-
publicKey: GrumpkinPoint;
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
interface MsgpackSchnorrComputePublicKeyResponse {
|
|
946
|
-
public_key: MsgpackGrumpkinPoint;
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
export interface SchnorrConstructSignature {
|
|
950
|
-
message: Uint8Array;
|
|
951
|
-
privateKey: Fq;
|
|
952
|
-
}
|
|
953
|
-
|
|
954
|
-
interface MsgpackSchnorrConstructSignature {
|
|
955
|
-
message: Uint8Array;
|
|
956
|
-
private_key: Uint8Array;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
export interface SchnorrConstructSignatureResponse {
|
|
960
|
-
s: Uint8Array;
|
|
961
|
-
e: Uint8Array;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
interface MsgpackSchnorrConstructSignatureResponse {
|
|
965
|
-
s: Uint8Array;
|
|
966
|
-
e: Uint8Array;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
export interface SchnorrVerifySignature {
|
|
970
|
-
message: Uint8Array;
|
|
971
|
-
publicKey: GrumpkinPoint;
|
|
972
|
-
s: Uint8Array;
|
|
973
|
-
e: Uint8Array;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
interface MsgpackSchnorrVerifySignature {
|
|
977
|
-
message: Uint8Array;
|
|
978
|
-
public_key: MsgpackGrumpkinPoint;
|
|
979
|
-
s: Uint8Array;
|
|
980
|
-
e: Uint8Array;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
export interface SchnorrVerifySignatureResponse {
|
|
984
|
-
verified: boolean;
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
interface MsgpackSchnorrVerifySignatureResponse {
|
|
988
|
-
verified: boolean;
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
export interface Secp256k1GetRandomFr {
|
|
992
|
-
dummy: number;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
interface MsgpackSecp256k1GetRandomFr {
|
|
996
|
-
dummy: number;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
export interface Secp256k1GetRandomFrResponse {
|
|
1000
|
-
value: Secp256k1Fr;
|
|
1001
|
-
}
|
|
1002
|
-
|
|
1003
|
-
interface MsgpackSecp256k1GetRandomFrResponse {
|
|
1004
|
-
value: Uint8Array;
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
export interface Secp256k1Mul {
|
|
1008
|
-
point: Secp256k1Point;
|
|
1009
|
-
scalar: Secp256k1Fr;
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
interface MsgpackSecp256k1Mul {
|
|
1013
|
-
point: MsgpackSecp256k1Point;
|
|
1014
|
-
scalar: Uint8Array;
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
export interface Secp256k1MulResponse {
|
|
1018
|
-
point: Secp256k1Point;
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
interface MsgpackSecp256k1MulResponse {
|
|
1022
|
-
point: MsgpackSecp256k1Point;
|
|
1023
|
-
}
|
|
1024
|
-
|
|
1025
|
-
export interface Secp256k1Point {
|
|
1026
|
-
x: Secp256k1Fq;
|
|
1027
|
-
y: Secp256k1Fq;
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
interface MsgpackSecp256k1Point {
|
|
1031
|
-
x: Uint8Array;
|
|
1032
|
-
y: Uint8Array;
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
export interface Secp256k1Reduce512 {
|
|
1036
|
-
input: Uint8Array;
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
interface MsgpackSecp256k1Reduce512 {
|
|
1040
|
-
input: Uint8Array;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
export interface Secp256k1Reduce512Response {
|
|
1044
|
-
value: Secp256k1Fr;
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
interface MsgpackSecp256k1Reduce512Response {
|
|
1048
|
-
value: Uint8Array;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
export interface Secp256r1Point {
|
|
1052
|
-
x: Secp256r1Fq;
|
|
1053
|
-
y: Secp256r1Fq;
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
interface MsgpackSecp256r1Point {
|
|
1057
|
-
x: Uint8Array;
|
|
1058
|
-
y: Uint8Array;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
export interface Shutdown {
|
|
1062
|
-
}
|
|
1063
|
-
|
|
1064
|
-
interface MsgpackShutdown {
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
export interface ShutdownResponse {
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
interface MsgpackShutdownResponse {
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
export interface SrsInitGrumpkinSrs {
|
|
1074
|
-
pointsBuf: Uint8Array;
|
|
1075
|
-
numPoints: number;
|
|
1076
|
-
}
|
|
1077
|
-
|
|
1078
|
-
interface MsgpackSrsInitGrumpkinSrs {
|
|
1079
|
-
points_buf: Uint8Array;
|
|
1080
|
-
num_points: number;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
export interface SrsInitGrumpkinSrsResponse {
|
|
1084
|
-
dummy: number;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
interface MsgpackSrsInitGrumpkinSrsResponse {
|
|
1088
|
-
dummy: number;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
export interface SrsInitSrs {
|
|
1092
|
-
pointsBuf: Uint8Array;
|
|
1093
|
-
numPoints: number;
|
|
1094
|
-
g2Point: Uint8Array;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
interface MsgpackSrsInitSrs {
|
|
1098
|
-
points_buf: Uint8Array;
|
|
1099
|
-
num_points: number;
|
|
1100
|
-
g2_point: Uint8Array;
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
export interface SrsInitSrsResponse {
|
|
1104
|
-
dummy: number;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
interface MsgpackSrsInitSrsResponse {
|
|
1108
|
-
dummy: number;
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
export interface VkAsFields {
|
|
1112
|
-
verificationKey: Uint8Array;
|
|
1113
|
-
}
|
|
1114
|
-
|
|
1115
|
-
interface MsgpackVkAsFields {
|
|
1116
|
-
verification_key: Uint8Array;
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
export interface VkAsFieldsResponse {
|
|
1120
|
-
fields: Fr[];
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
interface MsgpackVkAsFieldsResponse {
|
|
1124
|
-
fields: Uint8Array[];
|
|
1125
|
-
}
|
|
1126
|
-
|
|
1127
|
-
// Private Msgpack interfaces (not exported)
|
|
1128
|
-
export interface AesDecrypt {
|
|
1129
|
-
ciphertext: Uint8Array;
|
|
1130
|
-
iv: Uint8Array;
|
|
1131
|
-
key: Uint8Array;
|
|
1132
|
-
length: number;
|
|
1133
|
-
}
|
|
1134
|
-
|
|
1135
|
-
interface MsgpackAesDecrypt {
|
|
1136
|
-
ciphertext: Uint8Array;
|
|
1137
|
-
iv: Uint8Array;
|
|
1138
|
-
key: Uint8Array;
|
|
1139
|
-
length: number;
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
export interface AesDecryptResponse {
|
|
1143
|
-
plaintext: Uint8Array;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
interface MsgpackAesDecryptResponse {
|
|
1147
|
-
plaintext: Uint8Array;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
export interface AesEncrypt {
|
|
1151
|
-
plaintext: Uint8Array;
|
|
1152
|
-
iv: Uint8Array;
|
|
1153
|
-
key: Uint8Array;
|
|
1154
|
-
length: number;
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
interface MsgpackAesEncrypt {
|
|
1158
|
-
plaintext: Uint8Array;
|
|
1159
|
-
iv: Uint8Array;
|
|
1160
|
-
key: Uint8Array;
|
|
1161
|
-
length: number;
|
|
1162
|
-
}
|
|
1163
|
-
|
|
1164
|
-
export interface AesEncryptResponse {
|
|
1165
|
-
ciphertext: Uint8Array;
|
|
1166
|
-
}
|
|
1167
|
-
|
|
1168
|
-
interface MsgpackAesEncryptResponse {
|
|
1169
|
-
ciphertext: Uint8Array;
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
export interface Blake2s {
|
|
1173
|
-
data: Uint8Array;
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
interface MsgpackBlake2s {
|
|
1177
|
-
data: Uint8Array;
|
|
1178
|
-
}
|
|
1179
|
-
|
|
1180
|
-
export interface Blake2sResponse {
|
|
1181
|
-
hash: Uint8Array;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
interface MsgpackBlake2sResponse {
|
|
1185
|
-
hash: Uint8Array;
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
export interface Blake2sToField {
|
|
1189
|
-
data: Uint8Array;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
interface MsgpackBlake2sToField {
|
|
1193
|
-
data: Uint8Array;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
export interface Blake2sToFieldResponse {
|
|
1197
|
-
field: Fr;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
interface MsgpackBlake2sToFieldResponse {
|
|
1201
|
-
field: Uint8Array;
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
export interface Bn254FqSqrt {
|
|
1205
|
-
input: Fq;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
interface MsgpackBn254FqSqrt {
|
|
1209
|
-
input: Uint8Array;
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
export interface Bn254FqSqrtResponse {
|
|
1213
|
-
isSquareRoot: boolean;
|
|
1214
|
-
value: Fq;
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
interface MsgpackBn254FqSqrtResponse {
|
|
1218
|
-
is_square_root: boolean;
|
|
1219
|
-
value: Uint8Array;
|
|
1220
|
-
}
|
|
1221
|
-
|
|
1222
|
-
export interface Bn254FrSqrt {
|
|
1223
|
-
input: Fr;
|
|
1224
|
-
}
|
|
1225
|
-
|
|
1226
|
-
interface MsgpackBn254FrSqrt {
|
|
1227
|
-
input: Uint8Array;
|
|
1228
|
-
}
|
|
1229
|
-
|
|
1230
|
-
export interface Bn254FrSqrtResponse {
|
|
1231
|
-
isSquareRoot: boolean;
|
|
1232
|
-
value: Fr;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
interface MsgpackBn254FrSqrtResponse {
|
|
1236
|
-
is_square_root: boolean;
|
|
1237
|
-
value: Uint8Array;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
export interface Bn254G1FromCompressed {
|
|
1241
|
-
compressed: Uint8Array;
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
interface MsgpackBn254G1FromCompressed {
|
|
1245
|
-
compressed: Uint8Array;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
export interface Bn254G1FromCompressedResponse {
|
|
1249
|
-
point: Bn254G1Point;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
interface MsgpackBn254G1FromCompressedResponse {
|
|
1253
|
-
point: MsgpackBn254G1Point;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
export interface Bn254G1IsOnCurve {
|
|
1257
|
-
point: Bn254G1Point;
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
interface MsgpackBn254G1IsOnCurve {
|
|
1261
|
-
point: MsgpackBn254G1Point;
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
export interface Bn254G1IsOnCurveResponse {
|
|
1265
|
-
isOnCurve: boolean;
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
interface MsgpackBn254G1IsOnCurveResponse {
|
|
1269
|
-
is_on_curve: boolean;
|
|
1270
|
-
}
|
|
1271
|
-
|
|
1272
|
-
export interface Bn254G1Mul {
|
|
1273
|
-
point: Bn254G1Point;
|
|
1274
|
-
scalar: Fr;
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
interface MsgpackBn254G1Mul {
|
|
1278
|
-
point: MsgpackBn254G1Point;
|
|
1279
|
-
scalar: Uint8Array;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
export interface Bn254G1MulResponse {
|
|
1283
|
-
point: Bn254G1Point;
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
interface MsgpackBn254G1MulResponse {
|
|
1287
|
-
point: MsgpackBn254G1Point;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
export interface Bn254G1Point {
|
|
1291
|
-
x: Fq;
|
|
1292
|
-
y: Fq;
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
interface MsgpackBn254G1Point {
|
|
1296
|
-
x: Uint8Array;
|
|
1297
|
-
y: Uint8Array;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
export interface Bn254G2Mul {
|
|
1301
|
-
point: Bn254G2Point;
|
|
1302
|
-
scalar: Fr;
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
interface MsgpackBn254G2Mul {
|
|
1306
|
-
point: MsgpackBn254G2Point;
|
|
1307
|
-
scalar: Uint8Array;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
export interface Bn254G2MulResponse {
|
|
1311
|
-
point: Bn254G2Point;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
interface MsgpackBn254G2MulResponse {
|
|
1315
|
-
point: MsgpackBn254G2Point;
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
export interface Bn254G2Point {
|
|
1319
|
-
x: Field2;
|
|
1320
|
-
y: Field2;
|
|
1321
|
-
}
|
|
1322
|
-
|
|
1323
|
-
interface MsgpackBn254G2Point {
|
|
1324
|
-
x: [Uint8Array, Uint8Array];
|
|
1325
|
-
y: [Uint8Array, Uint8Array];
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
export interface ChonkAccumulate {
|
|
1329
|
-
witness: Uint8Array;
|
|
1330
|
-
}
|
|
1331
|
-
|
|
1332
|
-
interface MsgpackChonkAccumulate {
|
|
1333
|
-
witness: Uint8Array;
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
export interface ChonkAccumulateResponse {
|
|
1337
|
-
}
|
|
1338
|
-
|
|
1339
|
-
interface MsgpackChonkAccumulateResponse {
|
|
1340
|
-
}
|
|
1341
|
-
|
|
1342
|
-
export interface ChonkCheckPrecomputedVk {
|
|
1343
|
-
circuit: CircuitInput;
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
interface MsgpackChonkCheckPrecomputedVk {
|
|
1347
|
-
circuit: MsgpackCircuitInput;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
|
-
export interface ChonkCheckPrecomputedVkResponse {
|
|
1351
|
-
valid: boolean;
|
|
1352
|
-
actualVk: Uint8Array;
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
interface MsgpackChonkCheckPrecomputedVkResponse {
|
|
1356
|
-
valid: boolean;
|
|
1357
|
-
actual_vk: Uint8Array;
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
export interface ChonkComputeIvcVk {
|
|
1361
|
-
circuit: CircuitInputNoVK;
|
|
1362
|
-
}
|
|
1363
|
-
|
|
1364
|
-
interface MsgpackChonkComputeIvcVk {
|
|
1365
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
1366
|
-
}
|
|
1367
|
-
|
|
1368
|
-
export interface ChonkComputeIvcVkResponse {
|
|
1369
|
-
bytes: Uint8Array;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
interface MsgpackChonkComputeIvcVkResponse {
|
|
1373
|
-
bytes: Uint8Array;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
export interface ChonkComputeStandaloneVk {
|
|
1377
|
-
circuit: CircuitInputNoVK;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
interface MsgpackChonkComputeStandaloneVk {
|
|
1381
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
export interface ChonkComputeStandaloneVkResponse {
|
|
1385
|
-
bytes: Uint8Array;
|
|
1386
|
-
fields: Fr[];
|
|
1387
|
-
}
|
|
1388
|
-
|
|
1389
|
-
interface MsgpackChonkComputeStandaloneVkResponse {
|
|
1390
|
-
bytes: Uint8Array;
|
|
1391
|
-
fields: Uint8Array[];
|
|
1392
|
-
}
|
|
1393
|
-
|
|
1394
|
-
export interface ChonkLoad {
|
|
1395
|
-
circuit: CircuitInput;
|
|
1396
|
-
}
|
|
1397
|
-
|
|
1398
|
-
interface MsgpackChonkLoad {
|
|
1399
|
-
circuit: MsgpackCircuitInput;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
export interface ChonkLoadResponse {
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
interface MsgpackChonkLoadResponse {
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
export interface ChonkProof {
|
|
1409
|
-
megaProof: Fr[];
|
|
1410
|
-
goblinProof: GoblinProof;
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
interface MsgpackChonkProof {
|
|
1414
|
-
mega_proof: Uint8Array[];
|
|
1415
|
-
goblin_proof: MsgpackGoblinProof;
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
export interface ChonkProve {
|
|
1419
|
-
}
|
|
1420
|
-
|
|
1421
|
-
interface MsgpackChonkProve {
|
|
1422
|
-
}
|
|
1423
|
-
|
|
1424
|
-
export interface ChonkProveResponse {
|
|
1425
|
-
proof: ChonkProof;
|
|
1426
|
-
}
|
|
1427
|
-
|
|
1428
|
-
interface MsgpackChonkProveResponse {
|
|
1429
|
-
proof: MsgpackChonkProof;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
export interface ChonkStart {
|
|
1433
|
-
numCircuits: number;
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
interface MsgpackChonkStart {
|
|
1437
|
-
num_circuits: number;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
export interface ChonkStartResponse {
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
interface MsgpackChonkStartResponse {
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
export interface ChonkStats {
|
|
1447
|
-
circuit: CircuitInputNoVK;
|
|
1448
|
-
includeGatesPerOpcode: boolean;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
interface MsgpackChonkStats {
|
|
1452
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
1453
|
-
include_gates_per_opcode: boolean;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
export interface ChonkStatsResponse {
|
|
1457
|
-
acirOpcodes: number;
|
|
1458
|
-
circuitSize: number;
|
|
1459
|
-
gatesPerOpcode: number[];
|
|
1460
|
-
}
|
|
1461
|
-
|
|
1462
|
-
interface MsgpackChonkStatsResponse {
|
|
1463
|
-
acir_opcodes: number;
|
|
1464
|
-
circuit_size: number;
|
|
1465
|
-
gates_per_opcode: number[];
|
|
1466
|
-
}
|
|
1467
|
-
|
|
1468
|
-
export interface ChonkVerify {
|
|
1469
|
-
proof: ChonkProof;
|
|
1470
|
-
vk: Uint8Array;
|
|
1471
|
-
}
|
|
1472
|
-
|
|
1473
|
-
interface MsgpackChonkVerify {
|
|
1474
|
-
proof: MsgpackChonkProof;
|
|
1475
|
-
vk: Uint8Array;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
export interface ChonkVerifyResponse {
|
|
1479
|
-
valid: boolean;
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
interface MsgpackChonkVerifyResponse {
|
|
1483
|
-
valid: boolean;
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
export interface CircuitComputeVk {
|
|
1487
|
-
circuit: CircuitInputNoVK;
|
|
1488
|
-
settings: ProofSystemSettings;
|
|
1489
|
-
}
|
|
1490
|
-
|
|
1491
|
-
interface MsgpackCircuitComputeVk {
|
|
1492
|
-
circuit: MsgpackCircuitInputNoVK;
|
|
1493
|
-
settings: MsgpackProofSystemSettings;
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
export interface CircuitComputeVkResponse {
|
|
1497
|
-
bytes: Uint8Array;
|
|
1498
|
-
fields: Uint256T[];
|
|
1499
|
-
hash: Uint8Array;
|
|
1500
|
-
}
|
|
1501
|
-
|
|
1502
|
-
interface MsgpackCircuitComputeVkResponse {
|
|
1503
|
-
bytes: Uint8Array;
|
|
1504
|
-
fields: Uint8Array[];
|
|
1505
|
-
hash: Uint8Array;
|
|
1506
|
-
}
|
|
1507
|
-
|
|
1508
|
-
export interface CircuitInfoResponse {
|
|
1509
|
-
numGates: number;
|
|
1510
|
-
numGatesDyadic: number;
|
|
1511
|
-
numAcirOpcodes: number;
|
|
1512
|
-
gatesPerOpcode: number[];
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
interface MsgpackCircuitInfoResponse {
|
|
1516
|
-
num_gates: number;
|
|
1517
|
-
num_gates_dyadic: number;
|
|
1518
|
-
num_acir_opcodes: number;
|
|
1519
|
-
gates_per_opcode: number[];
|
|
1520
|
-
}
|
|
1521
|
-
|
|
1522
|
-
export interface CircuitInput {
|
|
1523
|
-
name: string;
|
|
1524
|
-
bytecode: Uint8Array;
|
|
1525
|
-
verificationKey: Uint8Array;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
interface MsgpackCircuitInput {
|
|
1529
|
-
name: string;
|
|
1530
|
-
bytecode: Uint8Array;
|
|
1531
|
-
verification_key: Uint8Array;
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
export interface CircuitInputNoVK {
|
|
1535
|
-
name: string;
|
|
1536
|
-
bytecode: Uint8Array;
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
interface MsgpackCircuitInputNoVK {
|
|
1540
|
-
name: string;
|
|
1541
|
-
bytecode: Uint8Array;
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
export interface CircuitProve {
|
|
1545
|
-
circuit: CircuitInput;
|
|
1546
|
-
witness: Uint8Array;
|
|
1547
|
-
settings: ProofSystemSettings;
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
interface MsgpackCircuitProve {
|
|
1551
|
-
circuit: MsgpackCircuitInput;
|
|
1552
|
-
witness: Uint8Array;
|
|
1553
|
-
settings: MsgpackProofSystemSettings;
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
export interface CircuitProveResponse {
|
|
1557
|
-
publicInputs: Uint256T[];
|
|
1558
|
-
proof: Uint256T[];
|
|
1559
|
-
vk: CircuitComputeVkResponse;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
interface MsgpackCircuitProveResponse {
|
|
1563
|
-
public_inputs: Uint8Array[];
|
|
1564
|
-
proof: Uint8Array[];
|
|
1565
|
-
vk: MsgpackCircuitComputeVkResponse;
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
export interface CircuitStats {
|
|
1569
|
-
circuit: CircuitInput;
|
|
1570
|
-
includeGatesPerOpcode: boolean;
|
|
1571
|
-
settings: ProofSystemSettings;
|
|
1572
|
-
}
|
|
1573
|
-
|
|
1574
|
-
interface MsgpackCircuitStats {
|
|
1575
|
-
circuit: MsgpackCircuitInput;
|
|
1576
|
-
include_gates_per_opcode: boolean;
|
|
1577
|
-
settings: MsgpackProofSystemSettings;
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
export interface CircuitVerify {
|
|
1581
|
-
verificationKey: Uint8Array;
|
|
1582
|
-
publicInputs: Uint256T[];
|
|
1583
|
-
proof: Uint256T[];
|
|
1584
|
-
settings: ProofSystemSettings;
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
interface MsgpackCircuitVerify {
|
|
1588
|
-
verification_key: Uint8Array;
|
|
1589
|
-
public_inputs: Uint8Array[];
|
|
1590
|
-
proof: Uint8Array[];
|
|
1591
|
-
settings: MsgpackProofSystemSettings;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
export interface CircuitVerifyResponse {
|
|
1595
|
-
verified: boolean;
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
interface MsgpackCircuitVerifyResponse {
|
|
1599
|
-
verified: boolean;
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
export interface CircuitWriteSolidityVerifier {
|
|
1603
|
-
verificationKey: Uint8Array;
|
|
1604
|
-
settings: ProofSystemSettings;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
|
-
interface MsgpackCircuitWriteSolidityVerifier {
|
|
1608
|
-
verification_key: Uint8Array;
|
|
1609
|
-
settings: MsgpackProofSystemSettings;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
export interface CircuitWriteSolidityVerifierResponse {
|
|
1613
|
-
solidityCode: string;
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
interface MsgpackCircuitWriteSolidityVerifierResponse {
|
|
1617
|
-
solidity_code: string;
|
|
1618
|
-
}
|
|
1619
|
-
|
|
1620
|
-
export interface ECCVMProof {
|
|
1621
|
-
preIpaProof: Fr[];
|
|
1622
|
-
ipaProof: Fr[];
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
interface MsgpackECCVMProof {
|
|
1626
|
-
pre_ipa_proof: Uint8Array[];
|
|
1627
|
-
ipa_proof: Uint8Array[];
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
export interface EcdsaSecp256k1ComputePublicKey {
|
|
1631
|
-
privateKey: Secp256k1Fr;
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
interface MsgpackEcdsaSecp256k1ComputePublicKey {
|
|
1635
|
-
private_key: Uint8Array;
|
|
1636
|
-
}
|
|
1637
|
-
|
|
1638
|
-
export interface EcdsaSecp256k1ComputePublicKeyResponse {
|
|
1639
|
-
publicKey: Secp256k1Point;
|
|
1640
|
-
}
|
|
1641
|
-
|
|
1642
|
-
interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
1643
|
-
public_key: MsgpackSecp256k1Point;
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
export interface EcdsaSecp256k1ConstructSignature {
|
|
1647
|
-
message: Uint8Array;
|
|
1648
|
-
privateKey: Secp256k1Fr;
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
|
-
interface MsgpackEcdsaSecp256k1ConstructSignature {
|
|
1652
|
-
message: Uint8Array;
|
|
1653
|
-
private_key: Uint8Array;
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
export interface EcdsaSecp256k1ConstructSignatureResponse {
|
|
1657
|
-
r: Uint8Array;
|
|
1658
|
-
s: Uint8Array;
|
|
1659
|
-
v: number;
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
interface MsgpackEcdsaSecp256k1ConstructSignatureResponse {
|
|
1663
|
-
r: Uint8Array;
|
|
1664
|
-
s: Uint8Array;
|
|
1665
|
-
v: number;
|
|
1666
|
-
}
|
|
1667
|
-
|
|
1668
|
-
export interface EcdsaSecp256k1RecoverPublicKey {
|
|
1669
|
-
message: Uint8Array;
|
|
1670
|
-
r: Uint8Array;
|
|
1671
|
-
s: Uint8Array;
|
|
1672
|
-
v: number;
|
|
1673
|
-
}
|
|
1674
|
-
|
|
1675
|
-
interface MsgpackEcdsaSecp256k1RecoverPublicKey {
|
|
1676
|
-
message: Uint8Array;
|
|
1677
|
-
r: Uint8Array;
|
|
1678
|
-
s: Uint8Array;
|
|
1679
|
-
v: number;
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
export interface EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
1683
|
-
publicKey: Secp256k1Point;
|
|
1684
|
-
}
|
|
1685
|
-
|
|
1686
|
-
interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
1687
|
-
public_key: MsgpackSecp256k1Point;
|
|
1688
|
-
}
|
|
1689
|
-
|
|
1690
|
-
export interface EcdsaSecp256k1VerifySignature {
|
|
1691
|
-
message: Uint8Array;
|
|
1692
|
-
publicKey: Secp256k1Point;
|
|
1693
|
-
r: Uint8Array;
|
|
1694
|
-
s: Uint8Array;
|
|
1695
|
-
v: number;
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
interface MsgpackEcdsaSecp256k1VerifySignature {
|
|
1699
|
-
message: Uint8Array;
|
|
1700
|
-
public_key: MsgpackSecp256k1Point;
|
|
1701
|
-
r: Uint8Array;
|
|
1702
|
-
s: Uint8Array;
|
|
1703
|
-
v: number;
|
|
1704
|
-
}
|
|
1705
|
-
|
|
1706
|
-
export interface EcdsaSecp256k1VerifySignatureResponse {
|
|
1707
|
-
verified: boolean;
|
|
1708
|
-
}
|
|
1709
|
-
|
|
1710
|
-
interface MsgpackEcdsaSecp256k1VerifySignatureResponse {
|
|
1711
|
-
verified: boolean;
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
export interface EcdsaSecp256r1ComputePublicKey {
|
|
1715
|
-
privateKey: Secp256r1Fr;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
interface MsgpackEcdsaSecp256r1ComputePublicKey {
|
|
1719
|
-
private_key: Uint8Array;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
export interface EcdsaSecp256r1ComputePublicKeyResponse {
|
|
1723
|
-
publicKey: Secp256r1Point;
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
|
-
interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
1727
|
-
public_key: MsgpackSecp256r1Point;
|
|
1728
|
-
}
|
|
1729
|
-
|
|
1730
|
-
export interface EcdsaSecp256r1ConstructSignature {
|
|
1731
|
-
message: Uint8Array;
|
|
1732
|
-
privateKey: Secp256r1Fr;
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
interface MsgpackEcdsaSecp256r1ConstructSignature {
|
|
1736
|
-
message: Uint8Array;
|
|
1737
|
-
private_key: Uint8Array;
|
|
1738
|
-
}
|
|
1739
|
-
|
|
1740
|
-
export interface EcdsaSecp256r1ConstructSignatureResponse {
|
|
1741
|
-
r: Uint8Array;
|
|
1742
|
-
s: Uint8Array;
|
|
1743
|
-
v: number;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
|
-
interface MsgpackEcdsaSecp256r1ConstructSignatureResponse {
|
|
1747
|
-
r: Uint8Array;
|
|
1748
|
-
s: Uint8Array;
|
|
1749
|
-
v: number;
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
export interface EcdsaSecp256r1RecoverPublicKey {
|
|
1753
|
-
message: Uint8Array;
|
|
1754
|
-
r: Uint8Array;
|
|
1755
|
-
s: Uint8Array;
|
|
1756
|
-
v: number;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
interface MsgpackEcdsaSecp256r1RecoverPublicKey {
|
|
1760
|
-
message: Uint8Array;
|
|
1761
|
-
r: Uint8Array;
|
|
1762
|
-
s: Uint8Array;
|
|
1763
|
-
v: number;
|
|
1764
|
-
}
|
|
1765
|
-
|
|
1766
|
-
export interface EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
1767
|
-
publicKey: Secp256r1Point;
|
|
1768
|
-
}
|
|
1769
|
-
|
|
1770
|
-
interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
1771
|
-
public_key: MsgpackSecp256r1Point;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
export interface EcdsaSecp256r1VerifySignature {
|
|
1775
|
-
message: Uint8Array;
|
|
1776
|
-
publicKey: Secp256r1Point;
|
|
1777
|
-
r: Uint8Array;
|
|
1778
|
-
s: Uint8Array;
|
|
1779
|
-
v: number;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
interface MsgpackEcdsaSecp256r1VerifySignature {
|
|
1783
|
-
message: Uint8Array;
|
|
1784
|
-
public_key: MsgpackSecp256r1Point;
|
|
1785
|
-
r: Uint8Array;
|
|
1786
|
-
s: Uint8Array;
|
|
1787
|
-
v: number;
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
export interface EcdsaSecp256r1VerifySignatureResponse {
|
|
1791
|
-
verified: boolean;
|
|
1792
|
-
}
|
|
1793
|
-
|
|
1794
|
-
interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
|
|
1795
|
-
verified: boolean;
|
|
1796
|
-
}
|
|
1797
|
-
|
|
1798
|
-
export interface ErrorResponse {
|
|
1799
|
-
message: string;
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
interface MsgpackErrorResponse {
|
|
1803
|
-
message: string;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
export interface GoblinProof {
|
|
1807
|
-
mergeProof: Fr[];
|
|
1808
|
-
eccvmProof: ECCVMProof;
|
|
1809
|
-
translatorProof: Fr[];
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
interface MsgpackGoblinProof {
|
|
1813
|
-
merge_proof: Uint8Array[];
|
|
1814
|
-
eccvm_proof: MsgpackECCVMProof;
|
|
1815
|
-
translator_proof: Uint8Array[];
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
export interface GrumpkinAdd {
|
|
1819
|
-
pointA: GrumpkinPoint;
|
|
1820
|
-
pointB: GrumpkinPoint;
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
interface MsgpackGrumpkinAdd {
|
|
1824
|
-
point_a: MsgpackGrumpkinPoint;
|
|
1825
|
-
point_b: MsgpackGrumpkinPoint;
|
|
1826
|
-
}
|
|
1827
|
-
|
|
1828
|
-
export interface GrumpkinAddResponse {
|
|
1829
|
-
point: GrumpkinPoint;
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
interface MsgpackGrumpkinAddResponse {
|
|
1833
|
-
point: MsgpackGrumpkinPoint;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
export interface GrumpkinBatchMul {
|
|
1837
|
-
points: GrumpkinPoint[];
|
|
1838
|
-
scalar: Fq;
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
interface MsgpackGrumpkinBatchMul {
|
|
1842
|
-
points: MsgpackGrumpkinPoint[];
|
|
1843
|
-
scalar: Uint8Array;
|
|
1844
|
-
}
|
|
1845
|
-
|
|
1846
|
-
export interface GrumpkinBatchMulResponse {
|
|
1847
|
-
points: GrumpkinPoint[];
|
|
1848
|
-
}
|
|
1849
|
-
|
|
1850
|
-
interface MsgpackGrumpkinBatchMulResponse {
|
|
1851
|
-
points: MsgpackGrumpkinPoint[];
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
|
-
export interface GrumpkinGetRandomFr {
|
|
1855
|
-
dummy: number;
|
|
1856
|
-
}
|
|
1857
|
-
|
|
1858
|
-
interface MsgpackGrumpkinGetRandomFr {
|
|
1859
|
-
dummy: number;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
export interface GrumpkinGetRandomFrResponse {
|
|
1863
|
-
value: Fr;
|
|
1864
|
-
}
|
|
1865
|
-
|
|
1866
|
-
interface MsgpackGrumpkinGetRandomFrResponse {
|
|
1867
|
-
value: Uint8Array;
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
export interface GrumpkinMul {
|
|
1871
|
-
point: GrumpkinPoint;
|
|
1872
|
-
scalar: Fq;
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
interface MsgpackGrumpkinMul {
|
|
1876
|
-
point: MsgpackGrumpkinPoint;
|
|
1877
|
-
scalar: Uint8Array;
|
|
1878
|
-
}
|
|
1879
|
-
|
|
1880
|
-
export interface GrumpkinMulResponse {
|
|
1881
|
-
point: GrumpkinPoint;
|
|
1882
|
-
}
|
|
1883
|
-
|
|
1884
|
-
interface MsgpackGrumpkinMulResponse {
|
|
1885
|
-
point: MsgpackGrumpkinPoint;
|
|
1886
|
-
}
|
|
1887
|
-
|
|
1888
|
-
export interface GrumpkinPoint {
|
|
1889
|
-
x: Fr;
|
|
1890
|
-
y: Fr;
|
|
1891
|
-
}
|
|
1892
|
-
|
|
1893
|
-
interface MsgpackGrumpkinPoint {
|
|
1894
|
-
x: Uint8Array;
|
|
1895
|
-
y: Uint8Array;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
export interface GrumpkinReduce512 {
|
|
1899
|
-
input: Uint8Array;
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
interface MsgpackGrumpkinReduce512 {
|
|
1903
|
-
input: Uint8Array;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
export interface GrumpkinReduce512Response {
|
|
1907
|
-
value: Fr;
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
interface MsgpackGrumpkinReduce512Response {
|
|
1911
|
-
value: Uint8Array;
|
|
1912
|
-
}
|
|
1913
|
-
|
|
1914
|
-
export interface MegaVkAsFields {
|
|
1915
|
-
verificationKey: Uint8Array;
|
|
1916
|
-
}
|
|
1917
|
-
|
|
1918
|
-
interface MsgpackMegaVkAsFields {
|
|
1919
|
-
verification_key: Uint8Array;
|
|
1920
|
-
}
|
|
1921
|
-
|
|
1922
|
-
export interface MegaVkAsFieldsResponse {
|
|
1923
|
-
fields: Fr[];
|
|
1924
|
-
}
|
|
1925
|
-
|
|
1926
|
-
interface MsgpackMegaVkAsFieldsResponse {
|
|
1927
|
-
fields: Uint8Array[];
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
export interface PedersenCommit {
|
|
1931
|
-
inputs: Fr[];
|
|
1932
|
-
hashIndex: number;
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
interface MsgpackPedersenCommit {
|
|
1936
|
-
inputs: Uint8Array[];
|
|
1937
|
-
hash_index: number;
|
|
1938
|
-
}
|
|
1939
|
-
|
|
1940
|
-
export interface PedersenCommitResponse {
|
|
1941
|
-
point: GrumpkinPoint;
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
interface MsgpackPedersenCommitResponse {
|
|
1945
|
-
point: MsgpackGrumpkinPoint;
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
|
-
export interface PedersenHash {
|
|
1949
|
-
inputs: Fr[];
|
|
1950
|
-
hashIndex: number;
|
|
1951
|
-
}
|
|
1952
|
-
|
|
1953
|
-
interface MsgpackPedersenHash {
|
|
1954
|
-
inputs: Uint8Array[];
|
|
1955
|
-
hash_index: number;
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
export interface PedersenHashBuffer {
|
|
1959
|
-
input: Uint8Array;
|
|
1960
|
-
hashIndex: number;
|
|
1961
|
-
}
|
|
1962
|
-
|
|
1963
|
-
interface MsgpackPedersenHashBuffer {
|
|
1964
|
-
input: Uint8Array;
|
|
1965
|
-
hash_index: number;
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
|
-
export interface PedersenHashBufferResponse {
|
|
1969
|
-
hash: Fr;
|
|
1970
|
-
}
|
|
1971
|
-
|
|
1972
|
-
interface MsgpackPedersenHashBufferResponse {
|
|
1973
|
-
hash: Uint8Array;
|
|
1974
|
-
}
|
|
1975
|
-
|
|
1976
|
-
export interface PedersenHashResponse {
|
|
1977
|
-
hash: Fr;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
interface MsgpackPedersenHashResponse {
|
|
1981
|
-
hash: Uint8Array;
|
|
1982
|
-
}
|
|
1983
|
-
|
|
1984
|
-
export interface Poseidon2Hash {
|
|
1985
|
-
inputs: Fr[];
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
interface MsgpackPoseidon2Hash {
|
|
1989
|
-
inputs: Uint8Array[];
|
|
1990
|
-
}
|
|
1991
|
-
|
|
1992
|
-
export interface Poseidon2HashAccumulate {
|
|
1993
|
-
inputs: Fr[];
|
|
1994
|
-
}
|
|
1995
|
-
|
|
1996
|
-
interface MsgpackPoseidon2HashAccumulate {
|
|
1997
|
-
inputs: Uint8Array[];
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
export interface Poseidon2HashAccumulateResponse {
|
|
2001
|
-
hash: Fr;
|
|
2002
|
-
}
|
|
2003
|
-
|
|
2004
|
-
interface MsgpackPoseidon2HashAccumulateResponse {
|
|
2005
|
-
hash: Uint8Array;
|
|
2006
|
-
}
|
|
2007
|
-
|
|
2008
|
-
export interface Poseidon2HashResponse {
|
|
2009
|
-
hash: Fr;
|
|
2010
|
-
}
|
|
2011
|
-
|
|
2012
|
-
interface MsgpackPoseidon2HashResponse {
|
|
2013
|
-
hash: Uint8Array;
|
|
2014
|
-
}
|
|
2015
|
-
|
|
2016
|
-
export interface Poseidon2Permutation {
|
|
2017
|
-
inputs: Fr[];
|
|
2018
|
-
}
|
|
2019
|
-
|
|
2020
|
-
interface MsgpackPoseidon2Permutation {
|
|
2021
|
-
inputs: Uint8Array[];
|
|
2022
|
-
}
|
|
2023
|
-
|
|
2024
|
-
export interface Poseidon2PermutationResponse {
|
|
2025
|
-
outputs: Fr[];
|
|
2026
|
-
}
|
|
2027
|
-
|
|
2028
|
-
interface MsgpackPoseidon2PermutationResponse {
|
|
2029
|
-
outputs: Uint8Array[];
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
export interface ProofSystemSettings {
|
|
2033
|
-
ipaAccumulation: boolean;
|
|
2034
|
-
oracleHashType: string;
|
|
2035
|
-
disableZk: boolean;
|
|
2036
|
-
optimizedSolidityVerifier: boolean;
|
|
2037
|
-
}
|
|
2038
|
-
|
|
2039
|
-
interface MsgpackProofSystemSettings {
|
|
2040
|
-
ipa_accumulation: boolean;
|
|
2041
|
-
oracle_hash_type: string;
|
|
2042
|
-
disable_zk: boolean;
|
|
2043
|
-
optimized_solidity_verifier: boolean;
|
|
2044
|
-
}
|
|
2045
|
-
|
|
2046
|
-
export interface SchnorrComputePublicKey {
|
|
2047
|
-
privateKey: Fq;
|
|
2048
|
-
}
|
|
2049
|
-
|
|
2050
|
-
interface MsgpackSchnorrComputePublicKey {
|
|
2051
|
-
private_key: Uint8Array;
|
|
2052
|
-
}
|
|
2053
|
-
|
|
2054
|
-
export interface SchnorrComputePublicKeyResponse {
|
|
2055
|
-
publicKey: GrumpkinPoint;
|
|
2056
|
-
}
|
|
2057
|
-
|
|
2058
|
-
interface MsgpackSchnorrComputePublicKeyResponse {
|
|
2059
|
-
public_key: MsgpackGrumpkinPoint;
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
export interface SchnorrConstructSignature {
|
|
2063
|
-
message: Uint8Array;
|
|
2064
|
-
privateKey: Fq;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
interface MsgpackSchnorrConstructSignature {
|
|
2068
|
-
message: Uint8Array;
|
|
2069
|
-
private_key: Uint8Array;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
export interface SchnorrConstructSignatureResponse {
|
|
2073
|
-
s: Uint8Array;
|
|
2074
|
-
e: Uint8Array;
|
|
2075
|
-
}
|
|
2076
|
-
|
|
2077
|
-
interface MsgpackSchnorrConstructSignatureResponse {
|
|
2078
|
-
s: Uint8Array;
|
|
2079
|
-
e: Uint8Array;
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
export interface SchnorrVerifySignature {
|
|
2083
|
-
message: Uint8Array;
|
|
2084
|
-
publicKey: GrumpkinPoint;
|
|
2085
|
-
s: Uint8Array;
|
|
2086
|
-
e: Uint8Array;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
interface MsgpackSchnorrVerifySignature {
|
|
2090
|
-
message: Uint8Array;
|
|
2091
|
-
public_key: MsgpackGrumpkinPoint;
|
|
2092
|
-
s: Uint8Array;
|
|
2093
|
-
e: Uint8Array;
|
|
2094
|
-
}
|
|
2095
|
-
|
|
2096
|
-
export interface SchnorrVerifySignatureResponse {
|
|
2097
|
-
verified: boolean;
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
|
-
interface MsgpackSchnorrVerifySignatureResponse {
|
|
2101
|
-
verified: boolean;
|
|
2102
|
-
}
|
|
2103
|
-
|
|
2104
|
-
export interface Secp256k1GetRandomFr {
|
|
2105
|
-
dummy: number;
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
interface MsgpackSecp256k1GetRandomFr {
|
|
2109
|
-
dummy: number;
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
export interface Secp256k1GetRandomFrResponse {
|
|
2113
|
-
value: Secp256k1Fr;
|
|
2114
|
-
}
|
|
2115
|
-
|
|
2116
|
-
interface MsgpackSecp256k1GetRandomFrResponse {
|
|
2117
|
-
value: Uint8Array;
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
export interface Secp256k1Mul {
|
|
2121
|
-
point: Secp256k1Point;
|
|
2122
|
-
scalar: Secp256k1Fr;
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
interface MsgpackSecp256k1Mul {
|
|
2126
|
-
point: MsgpackSecp256k1Point;
|
|
2127
|
-
scalar: Uint8Array;
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
export interface Secp256k1MulResponse {
|
|
2131
|
-
point: Secp256k1Point;
|
|
2132
|
-
}
|
|
2133
|
-
|
|
2134
|
-
interface MsgpackSecp256k1MulResponse {
|
|
2135
|
-
point: MsgpackSecp256k1Point;
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
export interface Secp256k1Point {
|
|
2139
|
-
x: Secp256k1Fq;
|
|
2140
|
-
y: Secp256k1Fq;
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
interface MsgpackSecp256k1Point {
|
|
2144
|
-
x: Uint8Array;
|
|
2145
|
-
y: Uint8Array;
|
|
2146
|
-
}
|
|
2147
|
-
|
|
2148
|
-
export interface Secp256k1Reduce512 {
|
|
2149
|
-
input: Uint8Array;
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
|
-
interface MsgpackSecp256k1Reduce512 {
|
|
2153
|
-
input: Uint8Array;
|
|
2154
|
-
}
|
|
2155
|
-
|
|
2156
|
-
export interface Secp256k1Reduce512Response {
|
|
2157
|
-
value: Secp256k1Fr;
|
|
2158
|
-
}
|
|
2159
|
-
|
|
2160
|
-
interface MsgpackSecp256k1Reduce512Response {
|
|
2161
|
-
value: Uint8Array;
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
export interface Secp256r1Point {
|
|
2165
|
-
x: Secp256r1Fq;
|
|
2166
|
-
y: Secp256r1Fq;
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
|
-
interface MsgpackSecp256r1Point {
|
|
2170
|
-
x: Uint8Array;
|
|
2171
|
-
y: Uint8Array;
|
|
2172
|
-
}
|
|
2173
|
-
|
|
2174
|
-
export interface Shutdown {
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
interface MsgpackShutdown {
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
export interface ShutdownResponse {
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
interface MsgpackShutdownResponse {
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
export interface SrsInitGrumpkinSrs {
|
|
2187
|
-
pointsBuf: Uint8Array;
|
|
2188
|
-
numPoints: number;
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
interface MsgpackSrsInitGrumpkinSrs {
|
|
2192
|
-
points_buf: Uint8Array;
|
|
2193
|
-
num_points: number;
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
export interface SrsInitGrumpkinSrsResponse {
|
|
2197
|
-
dummy: number;
|
|
2198
|
-
}
|
|
2199
|
-
|
|
2200
|
-
interface MsgpackSrsInitGrumpkinSrsResponse {
|
|
2201
|
-
dummy: number;
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
export interface SrsInitSrs {
|
|
2205
|
-
pointsBuf: Uint8Array;
|
|
2206
|
-
numPoints: number;
|
|
2207
|
-
g2Point: Uint8Array;
|
|
2208
|
-
}
|
|
2209
|
-
|
|
2210
|
-
interface MsgpackSrsInitSrs {
|
|
2211
|
-
points_buf: Uint8Array;
|
|
2212
|
-
num_points: number;
|
|
2213
|
-
g2_point: Uint8Array;
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
|
-
export interface SrsInitSrsResponse {
|
|
2217
|
-
dummy: number;
|
|
2218
|
-
}
|
|
2219
|
-
|
|
2220
|
-
interface MsgpackSrsInitSrsResponse {
|
|
2221
|
-
dummy: number;
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
export interface VkAsFields {
|
|
2225
|
-
verificationKey: Uint8Array;
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
interface MsgpackVkAsFields {
|
|
2229
|
-
verification_key: Uint8Array;
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
export interface VkAsFieldsResponse {
|
|
2233
|
-
fields: Fr[];
|
|
2234
|
-
}
|
|
2235
|
-
|
|
2236
|
-
interface MsgpackVkAsFieldsResponse {
|
|
2237
|
-
fields: Uint8Array[];
|
|
2238
|
-
}
|
|
2239
|
-
|
|
2240
|
-
// Conversion functions (exported)
|
|
2241
|
-
export function toAesDecrypt(o: MsgpackAesDecrypt): AesDecrypt {
|
|
2242
|
-
if (o.ciphertext === undefined) { throw new Error("Expected ciphertext in AesDecrypt deserialization"); }
|
|
2243
|
-
if (o.iv === undefined) { throw new Error("Expected iv in AesDecrypt deserialization"); }
|
|
2244
|
-
if (o.key === undefined) { throw new Error("Expected key in AesDecrypt deserialization"); }
|
|
2245
|
-
if (o.length === undefined) { throw new Error("Expected length in AesDecrypt deserialization"); };
|
|
2246
|
-
return {
|
|
2247
|
-
ciphertext: o.ciphertext,
|
|
2248
|
-
iv: o.iv,
|
|
2249
|
-
key: o.key,
|
|
2250
|
-
length: o.length,
|
|
2251
|
-
};
|
|
2252
|
-
}
|
|
2253
|
-
|
|
2254
|
-
export function fromAesDecrypt(o: AesDecrypt): MsgpackAesDecrypt {
|
|
2255
|
-
if (o.ciphertext === undefined) { throw new Error("Expected ciphertext in AesDecrypt serialization"); }
|
|
2256
|
-
if (o.iv === undefined) { throw new Error("Expected iv in AesDecrypt serialization"); }
|
|
2257
|
-
if (o.key === undefined) { throw new Error("Expected key in AesDecrypt serialization"); }
|
|
2258
|
-
if (o.length === undefined) { throw new Error("Expected length in AesDecrypt serialization"); };
|
|
2259
|
-
return {
|
|
2260
|
-
ciphertext: o.ciphertext,
|
|
2261
|
-
iv: o.iv,
|
|
2262
|
-
key: o.key,
|
|
2263
|
-
length: o.length,
|
|
2264
|
-
};
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
export function toAesDecryptResponse(o: MsgpackAesDecryptResponse): AesDecryptResponse {
|
|
2268
|
-
if (o.plaintext === undefined) { throw new Error("Expected plaintext in AesDecryptResponse deserialization"); };
|
|
2269
|
-
return {
|
|
2270
|
-
plaintext: o.plaintext,
|
|
2271
|
-
};
|
|
2272
|
-
}
|
|
2273
|
-
|
|
2274
|
-
export function fromAesDecryptResponse(o: AesDecryptResponse): MsgpackAesDecryptResponse {
|
|
2275
|
-
if (o.plaintext === undefined) { throw new Error("Expected plaintext in AesDecryptResponse serialization"); };
|
|
2276
|
-
return {
|
|
2277
|
-
plaintext: o.plaintext,
|
|
2278
|
-
};
|
|
2279
|
-
}
|
|
2280
|
-
|
|
2281
|
-
export function toAesEncrypt(o: MsgpackAesEncrypt): AesEncrypt {
|
|
2282
|
-
if (o.plaintext === undefined) { throw new Error("Expected plaintext in AesEncrypt deserialization"); }
|
|
2283
|
-
if (o.iv === undefined) { throw new Error("Expected iv in AesEncrypt deserialization"); }
|
|
2284
|
-
if (o.key === undefined) { throw new Error("Expected key in AesEncrypt deserialization"); }
|
|
2285
|
-
if (o.length === undefined) { throw new Error("Expected length in AesEncrypt deserialization"); };
|
|
2286
|
-
return {
|
|
2287
|
-
plaintext: o.plaintext,
|
|
2288
|
-
iv: o.iv,
|
|
2289
|
-
key: o.key,
|
|
2290
|
-
length: o.length,
|
|
2291
|
-
};
|
|
2292
|
-
}
|
|
2293
|
-
|
|
2294
|
-
export function fromAesEncrypt(o: AesEncrypt): MsgpackAesEncrypt {
|
|
2295
|
-
if (o.plaintext === undefined) { throw new Error("Expected plaintext in AesEncrypt serialization"); }
|
|
2296
|
-
if (o.iv === undefined) { throw new Error("Expected iv in AesEncrypt serialization"); }
|
|
2297
|
-
if (o.key === undefined) { throw new Error("Expected key in AesEncrypt serialization"); }
|
|
2298
|
-
if (o.length === undefined) { throw new Error("Expected length in AesEncrypt serialization"); };
|
|
2299
|
-
return {
|
|
2300
|
-
plaintext: o.plaintext,
|
|
2301
|
-
iv: o.iv,
|
|
2302
|
-
key: o.key,
|
|
2303
|
-
length: o.length,
|
|
2304
|
-
};
|
|
2305
|
-
}
|
|
2306
|
-
|
|
2307
|
-
export function toAesEncryptResponse(o: MsgpackAesEncryptResponse): AesEncryptResponse {
|
|
2308
|
-
if (o.ciphertext === undefined) { throw new Error("Expected ciphertext in AesEncryptResponse deserialization"); };
|
|
2309
|
-
return {
|
|
2310
|
-
ciphertext: o.ciphertext,
|
|
2311
|
-
};
|
|
2312
|
-
}
|
|
2313
|
-
|
|
2314
|
-
export function fromAesEncryptResponse(o: AesEncryptResponse): MsgpackAesEncryptResponse {
|
|
2315
|
-
if (o.ciphertext === undefined) { throw new Error("Expected ciphertext in AesEncryptResponse serialization"); };
|
|
2316
|
-
return {
|
|
2317
|
-
ciphertext: o.ciphertext,
|
|
2318
|
-
};
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
export function toBlake2s(o: MsgpackBlake2s): Blake2s {
|
|
2322
|
-
if (o.data === undefined) { throw new Error("Expected data in Blake2s deserialization"); };
|
|
2323
|
-
return {
|
|
2324
|
-
data: o.data,
|
|
2325
|
-
};
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
export function fromBlake2s(o: Blake2s): MsgpackBlake2s {
|
|
2329
|
-
if (o.data === undefined) { throw new Error("Expected data in Blake2s serialization"); };
|
|
2330
|
-
return {
|
|
2331
|
-
data: o.data,
|
|
2332
|
-
};
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
export function toBlake2sResponse(o: MsgpackBlake2sResponse): Blake2sResponse {
|
|
2336
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Blake2sResponse deserialization"); };
|
|
2337
|
-
return {
|
|
2338
|
-
hash: o.hash,
|
|
2339
|
-
};
|
|
2340
|
-
}
|
|
2341
|
-
|
|
2342
|
-
export function fromBlake2sResponse(o: Blake2sResponse): MsgpackBlake2sResponse {
|
|
2343
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Blake2sResponse serialization"); };
|
|
2344
|
-
return {
|
|
2345
|
-
hash: o.hash,
|
|
2346
|
-
};
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
export function toBlake2sToField(o: MsgpackBlake2sToField): Blake2sToField {
|
|
2350
|
-
if (o.data === undefined) { throw new Error("Expected data in Blake2sToField deserialization"); };
|
|
2351
|
-
return {
|
|
2352
|
-
data: o.data,
|
|
2353
|
-
};
|
|
2354
|
-
}
|
|
2355
|
-
|
|
2356
|
-
export function fromBlake2sToField(o: Blake2sToField): MsgpackBlake2sToField {
|
|
2357
|
-
if (o.data === undefined) { throw new Error("Expected data in Blake2sToField serialization"); };
|
|
2358
|
-
return {
|
|
2359
|
-
data: o.data,
|
|
2360
|
-
};
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
export function toBlake2sToFieldResponse(o: MsgpackBlake2sToFieldResponse): Blake2sToFieldResponse {
|
|
2364
|
-
if (o.field === undefined) { throw new Error("Expected field in Blake2sToFieldResponse deserialization"); };
|
|
2365
|
-
return {
|
|
2366
|
-
field: o.field,
|
|
2367
|
-
};
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
export function fromBlake2sToFieldResponse(o: Blake2sToFieldResponse): MsgpackBlake2sToFieldResponse {
|
|
2371
|
-
if (o.field === undefined) { throw new Error("Expected field in Blake2sToFieldResponse serialization"); };
|
|
2372
|
-
return {
|
|
2373
|
-
field: o.field,
|
|
2374
|
-
};
|
|
2375
|
-
}
|
|
2376
|
-
|
|
2377
|
-
export function toBn254FqSqrt(o: MsgpackBn254FqSqrt): Bn254FqSqrt {
|
|
2378
|
-
if (o.input === undefined) { throw new Error("Expected input in Bn254FqSqrt deserialization"); };
|
|
2379
|
-
return {
|
|
2380
|
-
input: o.input,
|
|
2381
|
-
};
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
export function fromBn254FqSqrt(o: Bn254FqSqrt): MsgpackBn254FqSqrt {
|
|
2385
|
-
if (o.input === undefined) { throw new Error("Expected input in Bn254FqSqrt serialization"); };
|
|
2386
|
-
return {
|
|
2387
|
-
input: o.input,
|
|
2388
|
-
};
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
export function toBn254FqSqrtResponse(o: MsgpackBn254FqSqrtResponse): Bn254FqSqrtResponse {
|
|
2392
|
-
if (o.is_square_root === undefined) { throw new Error("Expected is_square_root in Bn254FqSqrtResponse deserialization"); }
|
|
2393
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FqSqrtResponse deserialization"); };
|
|
2394
|
-
return {
|
|
2395
|
-
isSquareRoot: o.is_square_root,
|
|
2396
|
-
value: o.value,
|
|
2397
|
-
};
|
|
2398
|
-
}
|
|
2399
|
-
|
|
2400
|
-
export function fromBn254FqSqrtResponse(o: Bn254FqSqrtResponse): MsgpackBn254FqSqrtResponse {
|
|
2401
|
-
if (o.isSquareRoot === undefined) { throw new Error("Expected isSquareRoot in Bn254FqSqrtResponse serialization"); }
|
|
2402
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FqSqrtResponse serialization"); };
|
|
2403
|
-
return {
|
|
2404
|
-
is_square_root: o.isSquareRoot,
|
|
2405
|
-
value: o.value,
|
|
2406
|
-
};
|
|
2407
|
-
}
|
|
2408
|
-
|
|
2409
|
-
export function toBn254FrSqrt(o: MsgpackBn254FrSqrt): Bn254FrSqrt {
|
|
2410
|
-
if (o.input === undefined) { throw new Error("Expected input in Bn254FrSqrt deserialization"); };
|
|
2411
|
-
return {
|
|
2412
|
-
input: o.input,
|
|
2413
|
-
};
|
|
2414
|
-
}
|
|
2415
|
-
|
|
2416
|
-
export function fromBn254FrSqrt(o: Bn254FrSqrt): MsgpackBn254FrSqrt {
|
|
2417
|
-
if (o.input === undefined) { throw new Error("Expected input in Bn254FrSqrt serialization"); };
|
|
2418
|
-
return {
|
|
2419
|
-
input: o.input,
|
|
2420
|
-
};
|
|
2421
|
-
}
|
|
2422
|
-
|
|
2423
|
-
export function toBn254FrSqrtResponse(o: MsgpackBn254FrSqrtResponse): Bn254FrSqrtResponse {
|
|
2424
|
-
if (o.is_square_root === undefined) { throw new Error("Expected is_square_root in Bn254FrSqrtResponse deserialization"); }
|
|
2425
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse deserialization"); };
|
|
2426
|
-
return {
|
|
2427
|
-
isSquareRoot: o.is_square_root,
|
|
2428
|
-
value: o.value,
|
|
2429
|
-
};
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
export function fromBn254FrSqrtResponse(o: Bn254FrSqrtResponse): MsgpackBn254FrSqrtResponse {
|
|
2433
|
-
if (o.isSquareRoot === undefined) { throw new Error("Expected isSquareRoot in Bn254FrSqrtResponse serialization"); }
|
|
2434
|
-
if (o.value === undefined) { throw new Error("Expected value in Bn254FrSqrtResponse serialization"); };
|
|
2435
|
-
return {
|
|
2436
|
-
is_square_root: o.isSquareRoot,
|
|
2437
|
-
value: o.value,
|
|
2438
|
-
};
|
|
2439
|
-
}
|
|
2440
|
-
|
|
2441
|
-
export function toBn254G1FromCompressed(o: MsgpackBn254G1FromCompressed): Bn254G1FromCompressed {
|
|
2442
|
-
if (o.compressed === undefined) { throw new Error("Expected compressed in Bn254G1FromCompressed deserialization"); };
|
|
2443
|
-
return {
|
|
2444
|
-
compressed: o.compressed,
|
|
2445
|
-
};
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
export function fromBn254G1FromCompressed(o: Bn254G1FromCompressed): MsgpackBn254G1FromCompressed {
|
|
2449
|
-
if (o.compressed === undefined) { throw new Error("Expected compressed in Bn254G1FromCompressed serialization"); };
|
|
2450
|
-
return {
|
|
2451
|
-
compressed: o.compressed,
|
|
2452
|
-
};
|
|
2453
|
-
}
|
|
2454
|
-
|
|
2455
|
-
export function toBn254G1FromCompressedResponse(o: MsgpackBn254G1FromCompressedResponse): Bn254G1FromCompressedResponse {
|
|
2456
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1FromCompressedResponse deserialization"); };
|
|
2457
|
-
return {
|
|
2458
|
-
point: toBn254G1Point(o.point),
|
|
2459
|
-
};
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
export function fromBn254G1FromCompressedResponse(o: Bn254G1FromCompressedResponse): MsgpackBn254G1FromCompressedResponse {
|
|
2463
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1FromCompressedResponse serialization"); };
|
|
2464
|
-
return {
|
|
2465
|
-
point: fromBn254G1Point(o.point),
|
|
2466
|
-
};
|
|
2467
|
-
}
|
|
2468
|
-
|
|
2469
|
-
export function toBn254G1IsOnCurve(o: MsgpackBn254G1IsOnCurve): Bn254G1IsOnCurve {
|
|
2470
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1IsOnCurve deserialization"); };
|
|
2471
|
-
return {
|
|
2472
|
-
point: toBn254G1Point(o.point),
|
|
2473
|
-
};
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
export function fromBn254G1IsOnCurve(o: Bn254G1IsOnCurve): MsgpackBn254G1IsOnCurve {
|
|
2477
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1IsOnCurve serialization"); };
|
|
2478
|
-
return {
|
|
2479
|
-
point: fromBn254G1Point(o.point),
|
|
2480
|
-
};
|
|
2481
|
-
}
|
|
2482
|
-
|
|
2483
|
-
export function toBn254G1IsOnCurveResponse(o: MsgpackBn254G1IsOnCurveResponse): Bn254G1IsOnCurveResponse {
|
|
2484
|
-
if (o.is_on_curve === undefined) { throw new Error("Expected is_on_curve in Bn254G1IsOnCurveResponse deserialization"); };
|
|
2485
|
-
return {
|
|
2486
|
-
isOnCurve: o.is_on_curve,
|
|
2487
|
-
};
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
export function fromBn254G1IsOnCurveResponse(o: Bn254G1IsOnCurveResponse): MsgpackBn254G1IsOnCurveResponse {
|
|
2491
|
-
if (o.isOnCurve === undefined) { throw new Error("Expected isOnCurve in Bn254G1IsOnCurveResponse serialization"); };
|
|
2492
|
-
return {
|
|
2493
|
-
is_on_curve: o.isOnCurve,
|
|
2494
|
-
};
|
|
2495
|
-
}
|
|
2496
|
-
|
|
2497
|
-
export function toBn254G1Mul(o: MsgpackBn254G1Mul): Bn254G1Mul {
|
|
2498
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1Mul deserialization"); }
|
|
2499
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G1Mul deserialization"); };
|
|
2500
|
-
return {
|
|
2501
|
-
point: toBn254G1Point(o.point),
|
|
2502
|
-
scalar: o.scalar,
|
|
2503
|
-
};
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
export function fromBn254G1Mul(o: Bn254G1Mul): MsgpackBn254G1Mul {
|
|
2507
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1Mul serialization"); }
|
|
2508
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G1Mul serialization"); };
|
|
2509
|
-
return {
|
|
2510
|
-
point: fromBn254G1Point(o.point),
|
|
2511
|
-
scalar: o.scalar,
|
|
2512
|
-
};
|
|
2513
|
-
}
|
|
2514
|
-
|
|
2515
|
-
export function toBn254G1MulResponse(o: MsgpackBn254G1MulResponse): Bn254G1MulResponse {
|
|
2516
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1MulResponse deserialization"); };
|
|
2517
|
-
return {
|
|
2518
|
-
point: toBn254G1Point(o.point),
|
|
2519
|
-
};
|
|
2520
|
-
}
|
|
2521
|
-
|
|
2522
|
-
export function fromBn254G1MulResponse(o: Bn254G1MulResponse): MsgpackBn254G1MulResponse {
|
|
2523
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G1MulResponse serialization"); };
|
|
2524
|
-
return {
|
|
2525
|
-
point: fromBn254G1Point(o.point),
|
|
2526
|
-
};
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
export function toBn254G1Point(o: MsgpackBn254G1Point): Bn254G1Point {
|
|
2530
|
-
if (o.x === undefined) { throw new Error("Expected x in Bn254G1Point deserialization"); }
|
|
2531
|
-
if (o.y === undefined) { throw new Error("Expected y in Bn254G1Point deserialization"); };
|
|
2532
|
-
return {
|
|
2533
|
-
x: o.x,
|
|
2534
|
-
y: o.y,
|
|
2535
|
-
};
|
|
2536
|
-
}
|
|
2537
|
-
|
|
2538
|
-
export function fromBn254G1Point(o: Bn254G1Point): MsgpackBn254G1Point {
|
|
2539
|
-
if (o.x === undefined) { throw new Error("Expected x in Bn254G1Point serialization"); }
|
|
2540
|
-
if (o.y === undefined) { throw new Error("Expected y in Bn254G1Point serialization"); };
|
|
2541
|
-
return {
|
|
2542
|
-
x: o.x,
|
|
2543
|
-
y: o.y,
|
|
2544
|
-
};
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
export function toBn254G2Mul(o: MsgpackBn254G2Mul): Bn254G2Mul {
|
|
2548
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G2Mul deserialization"); }
|
|
2549
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G2Mul deserialization"); };
|
|
2550
|
-
return {
|
|
2551
|
-
point: toBn254G2Point(o.point),
|
|
2552
|
-
scalar: o.scalar,
|
|
2553
|
-
};
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
export function fromBn254G2Mul(o: Bn254G2Mul): MsgpackBn254G2Mul {
|
|
2557
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G2Mul serialization"); }
|
|
2558
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Bn254G2Mul serialization"); };
|
|
2559
|
-
return {
|
|
2560
|
-
point: fromBn254G2Point(o.point),
|
|
2561
|
-
scalar: o.scalar,
|
|
2562
|
-
};
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
export function toBn254G2MulResponse(o: MsgpackBn254G2MulResponse): Bn254G2MulResponse {
|
|
2566
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G2MulResponse deserialization"); };
|
|
2567
|
-
return {
|
|
2568
|
-
point: toBn254G2Point(o.point),
|
|
2569
|
-
};
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
export function fromBn254G2MulResponse(o: Bn254G2MulResponse): MsgpackBn254G2MulResponse {
|
|
2573
|
-
if (o.point === undefined) { throw new Error("Expected point in Bn254G2MulResponse serialization"); };
|
|
2574
|
-
return {
|
|
2575
|
-
point: fromBn254G2Point(o.point),
|
|
2576
|
-
};
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
export function toBn254G2Point(o: MsgpackBn254G2Point): Bn254G2Point {
|
|
2580
|
-
if (o.x === undefined) { throw new Error("Expected x in Bn254G2Point deserialization"); }
|
|
2581
|
-
if (o.y === undefined) { throw new Error("Expected y in Bn254G2Point deserialization"); };
|
|
2582
|
-
return {
|
|
2583
|
-
x: o.x,
|
|
2584
|
-
y: o.y,
|
|
2585
|
-
};
|
|
2586
|
-
}
|
|
2587
|
-
|
|
2588
|
-
export function fromBn254G2Point(o: Bn254G2Point): MsgpackBn254G2Point {
|
|
2589
|
-
if (o.x === undefined) { throw new Error("Expected x in Bn254G2Point serialization"); }
|
|
2590
|
-
if (o.y === undefined) { throw new Error("Expected y in Bn254G2Point serialization"); };
|
|
2591
|
-
return {
|
|
2592
|
-
x: o.x,
|
|
2593
|
-
y: o.y,
|
|
2594
|
-
};
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
export function toChonkAccumulate(o: MsgpackChonkAccumulate): ChonkAccumulate {
|
|
2598
|
-
if (o.witness === undefined) { throw new Error("Expected witness in ChonkAccumulate deserialization"); };
|
|
2599
|
-
return {
|
|
2600
|
-
witness: o.witness,
|
|
2601
|
-
};
|
|
2602
|
-
}
|
|
2603
|
-
|
|
2604
|
-
export function fromChonkAccumulate(o: ChonkAccumulate): MsgpackChonkAccumulate {
|
|
2605
|
-
if (o.witness === undefined) { throw new Error("Expected witness in ChonkAccumulate serialization"); };
|
|
2606
|
-
return {
|
|
2607
|
-
witness: o.witness,
|
|
2608
|
-
};
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
|
-
export function toChonkAccumulateResponse(o: MsgpackChonkAccumulateResponse): ChonkAccumulateResponse {
|
|
2612
|
-
return {};
|
|
2613
|
-
}
|
|
2614
|
-
|
|
2615
|
-
export function fromChonkAccumulateResponse(o: ChonkAccumulateResponse): MsgpackChonkAccumulateResponse {
|
|
2616
|
-
return {};
|
|
2617
|
-
}
|
|
2618
|
-
|
|
2619
|
-
export function toChonkCheckPrecomputedVk(o: MsgpackChonkCheckPrecomputedVk): ChonkCheckPrecomputedVk {
|
|
2620
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkCheckPrecomputedVk deserialization"); };
|
|
2621
|
-
return {
|
|
2622
|
-
circuit: toCircuitInput(o.circuit),
|
|
2623
|
-
};
|
|
2624
|
-
}
|
|
2625
|
-
|
|
2626
|
-
export function fromChonkCheckPrecomputedVk(o: ChonkCheckPrecomputedVk): MsgpackChonkCheckPrecomputedVk {
|
|
2627
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkCheckPrecomputedVk serialization"); };
|
|
2628
|
-
return {
|
|
2629
|
-
circuit: fromCircuitInput(o.circuit),
|
|
2630
|
-
};
|
|
2631
|
-
}
|
|
2632
|
-
|
|
2633
|
-
export function toChonkCheckPrecomputedVkResponse(o: MsgpackChonkCheckPrecomputedVkResponse): ChonkCheckPrecomputedVkResponse {
|
|
2634
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ChonkCheckPrecomputedVkResponse deserialization"); }
|
|
2635
|
-
if (o.actual_vk === undefined) { throw new Error("Expected actual_vk in ChonkCheckPrecomputedVkResponse deserialization"); };
|
|
2636
|
-
return {
|
|
2637
|
-
valid: o.valid,
|
|
2638
|
-
actualVk: o.actual_vk,
|
|
2639
|
-
};
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
export function fromChonkCheckPrecomputedVkResponse(o: ChonkCheckPrecomputedVkResponse): MsgpackChonkCheckPrecomputedVkResponse {
|
|
2643
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ChonkCheckPrecomputedVkResponse serialization"); }
|
|
2644
|
-
if (o.actualVk === undefined) { throw new Error("Expected actualVk in ChonkCheckPrecomputedVkResponse serialization"); };
|
|
2645
|
-
return {
|
|
2646
|
-
valid: o.valid,
|
|
2647
|
-
actual_vk: o.actualVk,
|
|
2648
|
-
};
|
|
2649
|
-
}
|
|
2650
|
-
|
|
2651
|
-
export function toChonkComputeIvcVk(o: MsgpackChonkComputeIvcVk): ChonkComputeIvcVk {
|
|
2652
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeIvcVk deserialization"); };
|
|
2653
|
-
return {
|
|
2654
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2655
|
-
};
|
|
2656
|
-
}
|
|
2657
|
-
|
|
2658
|
-
export function fromChonkComputeIvcVk(o: ChonkComputeIvcVk): MsgpackChonkComputeIvcVk {
|
|
2659
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeIvcVk serialization"); };
|
|
2660
|
-
return {
|
|
2661
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2662
|
-
};
|
|
2663
|
-
}
|
|
2664
|
-
|
|
2665
|
-
export function toChonkComputeIvcVkResponse(o: MsgpackChonkComputeIvcVkResponse): ChonkComputeIvcVkResponse {
|
|
2666
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeIvcVkResponse deserialization"); };
|
|
2667
|
-
return {
|
|
2668
|
-
bytes: o.bytes,
|
|
2669
|
-
};
|
|
2670
|
-
}
|
|
2671
|
-
|
|
2672
|
-
export function fromChonkComputeIvcVkResponse(o: ChonkComputeIvcVkResponse): MsgpackChonkComputeIvcVkResponse {
|
|
2673
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeIvcVkResponse serialization"); };
|
|
2674
|
-
return {
|
|
2675
|
-
bytes: o.bytes,
|
|
2676
|
-
};
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
|
-
export function toChonkComputeStandaloneVk(o: MsgpackChonkComputeStandaloneVk): ChonkComputeStandaloneVk {
|
|
2680
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeStandaloneVk deserialization"); };
|
|
2681
|
-
return {
|
|
2682
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2683
|
-
};
|
|
2684
|
-
}
|
|
2685
|
-
|
|
2686
|
-
export function fromChonkComputeStandaloneVk(o: ChonkComputeStandaloneVk): MsgpackChonkComputeStandaloneVk {
|
|
2687
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkComputeStandaloneVk serialization"); };
|
|
2688
|
-
return {
|
|
2689
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2690
|
-
};
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
export function toChonkComputeStandaloneVkResponse(o: MsgpackChonkComputeStandaloneVkResponse): ChonkComputeStandaloneVkResponse {
|
|
2694
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeStandaloneVkResponse deserialization"); }
|
|
2695
|
-
if (o.fields === undefined) { throw new Error("Expected fields in ChonkComputeStandaloneVkResponse deserialization"); };
|
|
2696
|
-
return {
|
|
2697
|
-
bytes: o.bytes,
|
|
2698
|
-
fields: o.fields.map((v: any) => v),
|
|
2699
|
-
};
|
|
2700
|
-
}
|
|
2701
|
-
|
|
2702
|
-
export function fromChonkComputeStandaloneVkResponse(o: ChonkComputeStandaloneVkResponse): MsgpackChonkComputeStandaloneVkResponse {
|
|
2703
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in ChonkComputeStandaloneVkResponse serialization"); }
|
|
2704
|
-
if (o.fields === undefined) { throw new Error("Expected fields in ChonkComputeStandaloneVkResponse serialization"); };
|
|
2705
|
-
return {
|
|
2706
|
-
bytes: o.bytes,
|
|
2707
|
-
fields: o.fields.map((v: any) => v),
|
|
2708
|
-
};
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
export function toChonkLoad(o: MsgpackChonkLoad): ChonkLoad {
|
|
2712
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkLoad deserialization"); };
|
|
2713
|
-
return {
|
|
2714
|
-
circuit: toCircuitInput(o.circuit),
|
|
2715
|
-
};
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
export function fromChonkLoad(o: ChonkLoad): MsgpackChonkLoad {
|
|
2719
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkLoad serialization"); };
|
|
2720
|
-
return {
|
|
2721
|
-
circuit: fromCircuitInput(o.circuit),
|
|
2722
|
-
};
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
|
-
export function toChonkLoadResponse(o: MsgpackChonkLoadResponse): ChonkLoadResponse {
|
|
2726
|
-
return {};
|
|
2727
|
-
}
|
|
2728
|
-
|
|
2729
|
-
export function fromChonkLoadResponse(o: ChonkLoadResponse): MsgpackChonkLoadResponse {
|
|
2730
|
-
return {};
|
|
2731
|
-
}
|
|
2732
|
-
|
|
2733
|
-
export function toChonkProof(o: MsgpackChonkProof): ChonkProof {
|
|
2734
|
-
if (o.mega_proof === undefined) { throw new Error("Expected mega_proof in ChonkProof deserialization"); }
|
|
2735
|
-
if (o.goblin_proof === undefined) { throw new Error("Expected goblin_proof in ChonkProof deserialization"); };
|
|
2736
|
-
return {
|
|
2737
|
-
megaProof: o.mega_proof.map((v: any) => v),
|
|
2738
|
-
goblinProof: toGoblinProof(o.goblin_proof),
|
|
2739
|
-
};
|
|
2740
|
-
}
|
|
2741
|
-
|
|
2742
|
-
export function fromChonkProof(o: ChonkProof): MsgpackChonkProof {
|
|
2743
|
-
if (o.megaProof === undefined) { throw new Error("Expected megaProof in ChonkProof serialization"); }
|
|
2744
|
-
if (o.goblinProof === undefined) { throw new Error("Expected goblinProof in ChonkProof serialization"); };
|
|
2745
|
-
return {
|
|
2746
|
-
mega_proof: o.megaProof.map((v: any) => v),
|
|
2747
|
-
goblin_proof: fromGoblinProof(o.goblinProof),
|
|
2748
|
-
};
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
export function toChonkProve(o: MsgpackChonkProve): ChonkProve {
|
|
2752
|
-
return {};
|
|
2753
|
-
}
|
|
2754
|
-
|
|
2755
|
-
export function fromChonkProve(o: ChonkProve): MsgpackChonkProve {
|
|
2756
|
-
return {};
|
|
2757
|
-
}
|
|
2758
|
-
|
|
2759
|
-
export function toChonkProveResponse(o: MsgpackChonkProveResponse): ChonkProveResponse {
|
|
2760
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ChonkProveResponse deserialization"); };
|
|
2761
|
-
return {
|
|
2762
|
-
proof: toChonkProof(o.proof),
|
|
2763
|
-
};
|
|
2764
|
-
}
|
|
2765
|
-
|
|
2766
|
-
export function fromChonkProveResponse(o: ChonkProveResponse): MsgpackChonkProveResponse {
|
|
2767
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ChonkProveResponse serialization"); };
|
|
2768
|
-
return {
|
|
2769
|
-
proof: fromChonkProof(o.proof),
|
|
2770
|
-
};
|
|
2771
|
-
}
|
|
2772
|
-
|
|
2773
|
-
export function toChonkStart(o: MsgpackChonkStart): ChonkStart {
|
|
2774
|
-
if (o.num_circuits === undefined) { throw new Error("Expected num_circuits in ChonkStart deserialization"); };
|
|
2775
|
-
return {
|
|
2776
|
-
numCircuits: o.num_circuits,
|
|
2777
|
-
};
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
export function fromChonkStart(o: ChonkStart): MsgpackChonkStart {
|
|
2781
|
-
if (o.numCircuits === undefined) { throw new Error("Expected numCircuits in ChonkStart serialization"); };
|
|
2782
|
-
return {
|
|
2783
|
-
num_circuits: o.numCircuits,
|
|
2784
|
-
};
|
|
2785
|
-
}
|
|
2786
|
-
|
|
2787
|
-
export function toChonkStartResponse(o: MsgpackChonkStartResponse): ChonkStartResponse {
|
|
2788
|
-
return {};
|
|
2789
|
-
}
|
|
2790
|
-
|
|
2791
|
-
export function fromChonkStartResponse(o: ChonkStartResponse): MsgpackChonkStartResponse {
|
|
2792
|
-
return {};
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
export function toChonkStats(o: MsgpackChonkStats): ChonkStats {
|
|
2796
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkStats deserialization"); }
|
|
2797
|
-
if (o.include_gates_per_opcode === undefined) { throw new Error("Expected include_gates_per_opcode in ChonkStats deserialization"); };
|
|
2798
|
-
return {
|
|
2799
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2800
|
-
includeGatesPerOpcode: o.include_gates_per_opcode,
|
|
2801
|
-
};
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
export function fromChonkStats(o: ChonkStats): MsgpackChonkStats {
|
|
2805
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in ChonkStats serialization"); }
|
|
2806
|
-
if (o.includeGatesPerOpcode === undefined) { throw new Error("Expected includeGatesPerOpcode in ChonkStats serialization"); };
|
|
2807
|
-
return {
|
|
2808
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2809
|
-
include_gates_per_opcode: o.includeGatesPerOpcode,
|
|
2810
|
-
};
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2813
|
-
export function toChonkStatsResponse(o: MsgpackChonkStatsResponse): ChonkStatsResponse {
|
|
2814
|
-
if (o.acir_opcodes === undefined) { throw new Error("Expected acir_opcodes in ChonkStatsResponse deserialization"); }
|
|
2815
|
-
if (o.circuit_size === undefined) { throw new Error("Expected circuit_size in ChonkStatsResponse deserialization"); }
|
|
2816
|
-
if (o.gates_per_opcode === undefined) { throw new Error("Expected gates_per_opcode in ChonkStatsResponse deserialization"); };
|
|
2817
|
-
return {
|
|
2818
|
-
acirOpcodes: o.acir_opcodes,
|
|
2819
|
-
circuitSize: o.circuit_size,
|
|
2820
|
-
gatesPerOpcode: o.gates_per_opcode.map((v: any) => v),
|
|
2821
|
-
};
|
|
2822
|
-
}
|
|
2823
|
-
|
|
2824
|
-
export function fromChonkStatsResponse(o: ChonkStatsResponse): MsgpackChonkStatsResponse {
|
|
2825
|
-
if (o.acirOpcodes === undefined) { throw new Error("Expected acirOpcodes in ChonkStatsResponse serialization"); }
|
|
2826
|
-
if (o.circuitSize === undefined) { throw new Error("Expected circuitSize in ChonkStatsResponse serialization"); }
|
|
2827
|
-
if (o.gatesPerOpcode === undefined) { throw new Error("Expected gatesPerOpcode in ChonkStatsResponse serialization"); };
|
|
2828
|
-
return {
|
|
2829
|
-
acir_opcodes: o.acirOpcodes,
|
|
2830
|
-
circuit_size: o.circuitSize,
|
|
2831
|
-
gates_per_opcode: o.gatesPerOpcode.map((v: any) => v),
|
|
2832
|
-
};
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
export function toChonkVerify(o: MsgpackChonkVerify): ChonkVerify {
|
|
2836
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ChonkVerify deserialization"); }
|
|
2837
|
-
if (o.vk === undefined) { throw new Error("Expected vk in ChonkVerify deserialization"); };
|
|
2838
|
-
return {
|
|
2839
|
-
proof: toChonkProof(o.proof),
|
|
2840
|
-
vk: o.vk,
|
|
2841
|
-
};
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
|
-
export function fromChonkVerify(o: ChonkVerify): MsgpackChonkVerify {
|
|
2845
|
-
if (o.proof === undefined) { throw new Error("Expected proof in ChonkVerify serialization"); }
|
|
2846
|
-
if (o.vk === undefined) { throw new Error("Expected vk in ChonkVerify serialization"); };
|
|
2847
|
-
return {
|
|
2848
|
-
proof: fromChonkProof(o.proof),
|
|
2849
|
-
vk: o.vk,
|
|
2850
|
-
};
|
|
2851
|
-
}
|
|
2852
|
-
|
|
2853
|
-
export function toChonkVerifyResponse(o: MsgpackChonkVerifyResponse): ChonkVerifyResponse {
|
|
2854
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ChonkVerifyResponse deserialization"); };
|
|
2855
|
-
return {
|
|
2856
|
-
valid: o.valid,
|
|
2857
|
-
};
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
export function fromChonkVerifyResponse(o: ChonkVerifyResponse): MsgpackChonkVerifyResponse {
|
|
2861
|
-
if (o.valid === undefined) { throw new Error("Expected valid in ChonkVerifyResponse serialization"); };
|
|
2862
|
-
return {
|
|
2863
|
-
valid: o.valid,
|
|
2864
|
-
};
|
|
2865
|
-
}
|
|
2866
|
-
|
|
2867
|
-
export function toCircuitComputeVk(o: MsgpackCircuitComputeVk): CircuitComputeVk {
|
|
2868
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitComputeVk deserialization"); }
|
|
2869
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitComputeVk deserialization"); };
|
|
2870
|
-
return {
|
|
2871
|
-
circuit: toCircuitInputNoVK(o.circuit),
|
|
2872
|
-
settings: toProofSystemSettings(o.settings),
|
|
2873
|
-
};
|
|
2874
|
-
}
|
|
2875
|
-
|
|
2876
|
-
export function fromCircuitComputeVk(o: CircuitComputeVk): MsgpackCircuitComputeVk {
|
|
2877
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitComputeVk serialization"); }
|
|
2878
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitComputeVk serialization"); };
|
|
2879
|
-
return {
|
|
2880
|
-
circuit: fromCircuitInputNoVK(o.circuit),
|
|
2881
|
-
settings: fromProofSystemSettings(o.settings),
|
|
2882
|
-
};
|
|
2883
|
-
}
|
|
2884
|
-
|
|
2885
|
-
export function toCircuitComputeVkResponse(o: MsgpackCircuitComputeVkResponse): CircuitComputeVkResponse {
|
|
2886
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in CircuitComputeVkResponse deserialization"); }
|
|
2887
|
-
if (o.fields === undefined) { throw new Error("Expected fields in CircuitComputeVkResponse deserialization"); }
|
|
2888
|
-
if (o.hash === undefined) { throw new Error("Expected hash in CircuitComputeVkResponse deserialization"); };
|
|
2889
|
-
return {
|
|
2890
|
-
bytes: o.bytes,
|
|
2891
|
-
fields: o.fields.map((v: any) => v),
|
|
2892
|
-
hash: o.hash,
|
|
2893
|
-
};
|
|
2894
|
-
}
|
|
2895
|
-
|
|
2896
|
-
export function fromCircuitComputeVkResponse(o: CircuitComputeVkResponse): MsgpackCircuitComputeVkResponse {
|
|
2897
|
-
if (o.bytes === undefined) { throw new Error("Expected bytes in CircuitComputeVkResponse serialization"); }
|
|
2898
|
-
if (o.fields === undefined) { throw new Error("Expected fields in CircuitComputeVkResponse serialization"); }
|
|
2899
|
-
if (o.hash === undefined) { throw new Error("Expected hash in CircuitComputeVkResponse serialization"); };
|
|
2900
|
-
return {
|
|
2901
|
-
bytes: o.bytes,
|
|
2902
|
-
fields: o.fields.map((v: any) => v),
|
|
2903
|
-
hash: o.hash,
|
|
2904
|
-
};
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
export function toCircuitInfoResponse(o: MsgpackCircuitInfoResponse): CircuitInfoResponse {
|
|
2908
|
-
if (o.num_gates === undefined) { throw new Error("Expected num_gates in CircuitInfoResponse deserialization"); }
|
|
2909
|
-
if (o.num_gates_dyadic === undefined) { throw new Error("Expected num_gates_dyadic in CircuitInfoResponse deserialization"); }
|
|
2910
|
-
if (o.num_acir_opcodes === undefined) { throw new Error("Expected num_acir_opcodes in CircuitInfoResponse deserialization"); }
|
|
2911
|
-
if (o.gates_per_opcode === undefined) { throw new Error("Expected gates_per_opcode in CircuitInfoResponse deserialization"); };
|
|
2912
|
-
return {
|
|
2913
|
-
numGates: o.num_gates,
|
|
2914
|
-
numGatesDyadic: o.num_gates_dyadic,
|
|
2915
|
-
numAcirOpcodes: o.num_acir_opcodes,
|
|
2916
|
-
gatesPerOpcode: o.gates_per_opcode.map((v: any) => v),
|
|
2917
|
-
};
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
export function fromCircuitInfoResponse(o: CircuitInfoResponse): MsgpackCircuitInfoResponse {
|
|
2921
|
-
if (o.numGates === undefined) { throw new Error("Expected numGates in CircuitInfoResponse serialization"); }
|
|
2922
|
-
if (o.numGatesDyadic === undefined) { throw new Error("Expected numGatesDyadic in CircuitInfoResponse serialization"); }
|
|
2923
|
-
if (o.numAcirOpcodes === undefined) { throw new Error("Expected numAcirOpcodes in CircuitInfoResponse serialization"); }
|
|
2924
|
-
if (o.gatesPerOpcode === undefined) { throw new Error("Expected gatesPerOpcode in CircuitInfoResponse serialization"); };
|
|
2925
|
-
return {
|
|
2926
|
-
num_gates: o.numGates,
|
|
2927
|
-
num_gates_dyadic: o.numGatesDyadic,
|
|
2928
|
-
num_acir_opcodes: o.numAcirOpcodes,
|
|
2929
|
-
gates_per_opcode: o.gatesPerOpcode.map((v: any) => v),
|
|
2930
|
-
};
|
|
2931
|
-
}
|
|
2932
|
-
|
|
2933
|
-
export function toCircuitInput(o: MsgpackCircuitInput): CircuitInput {
|
|
2934
|
-
if (o.name === undefined) { throw new Error("Expected name in CircuitInput deserialization"); }
|
|
2935
|
-
if (o.bytecode === undefined) { throw new Error("Expected bytecode in CircuitInput deserialization"); }
|
|
2936
|
-
if (o.verification_key === undefined) { throw new Error("Expected verification_key in CircuitInput deserialization"); };
|
|
2937
|
-
return {
|
|
2938
|
-
name: o.name,
|
|
2939
|
-
bytecode: o.bytecode,
|
|
2940
|
-
verificationKey: o.verification_key,
|
|
2941
|
-
};
|
|
2942
|
-
}
|
|
2943
|
-
|
|
2944
|
-
export function fromCircuitInput(o: CircuitInput): MsgpackCircuitInput {
|
|
2945
|
-
if (o.name === undefined) { throw new Error("Expected name in CircuitInput serialization"); }
|
|
2946
|
-
if (o.bytecode === undefined) { throw new Error("Expected bytecode in CircuitInput serialization"); }
|
|
2947
|
-
if (o.verificationKey === undefined) { throw new Error("Expected verificationKey in CircuitInput serialization"); };
|
|
2948
|
-
return {
|
|
2949
|
-
name: o.name,
|
|
2950
|
-
bytecode: o.bytecode,
|
|
2951
|
-
verification_key: o.verificationKey,
|
|
2952
|
-
};
|
|
2953
|
-
}
|
|
2954
|
-
|
|
2955
|
-
export function toCircuitInputNoVK(o: MsgpackCircuitInputNoVK): CircuitInputNoVK {
|
|
2956
|
-
if (o.name === undefined) { throw new Error("Expected name in CircuitInputNoVK deserialization"); }
|
|
2957
|
-
if (o.bytecode === undefined) { throw new Error("Expected bytecode in CircuitInputNoVK deserialization"); };
|
|
2958
|
-
return {
|
|
2959
|
-
name: o.name,
|
|
2960
|
-
bytecode: o.bytecode,
|
|
2961
|
-
};
|
|
2962
|
-
}
|
|
2963
|
-
|
|
2964
|
-
export function fromCircuitInputNoVK(o: CircuitInputNoVK): MsgpackCircuitInputNoVK {
|
|
2965
|
-
if (o.name === undefined) { throw new Error("Expected name in CircuitInputNoVK serialization"); }
|
|
2966
|
-
if (o.bytecode === undefined) { throw new Error("Expected bytecode in CircuitInputNoVK serialization"); };
|
|
2967
|
-
return {
|
|
2968
|
-
name: o.name,
|
|
2969
|
-
bytecode: o.bytecode,
|
|
2970
|
-
};
|
|
2971
|
-
}
|
|
2972
|
-
|
|
2973
|
-
export function toCircuitProve(o: MsgpackCircuitProve): CircuitProve {
|
|
2974
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitProve deserialization"); }
|
|
2975
|
-
if (o.witness === undefined) { throw new Error("Expected witness in CircuitProve deserialization"); }
|
|
2976
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitProve deserialization"); };
|
|
2977
|
-
return {
|
|
2978
|
-
circuit: toCircuitInput(o.circuit),
|
|
2979
|
-
witness: o.witness,
|
|
2980
|
-
settings: toProofSystemSettings(o.settings),
|
|
2981
|
-
};
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
export function fromCircuitProve(o: CircuitProve): MsgpackCircuitProve {
|
|
2985
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitProve serialization"); }
|
|
2986
|
-
if (o.witness === undefined) { throw new Error("Expected witness in CircuitProve serialization"); }
|
|
2987
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitProve serialization"); };
|
|
2988
|
-
return {
|
|
2989
|
-
circuit: fromCircuitInput(o.circuit),
|
|
2990
|
-
witness: o.witness,
|
|
2991
|
-
settings: fromProofSystemSettings(o.settings),
|
|
2992
|
-
};
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
export function toCircuitProveResponse(o: MsgpackCircuitProveResponse): CircuitProveResponse {
|
|
2996
|
-
if (o.public_inputs === undefined) { throw new Error("Expected public_inputs in CircuitProveResponse deserialization"); }
|
|
2997
|
-
if (o.proof === undefined) { throw new Error("Expected proof in CircuitProveResponse deserialization"); }
|
|
2998
|
-
if (o.vk === undefined) { throw new Error("Expected vk in CircuitProveResponse deserialization"); };
|
|
2999
|
-
return {
|
|
3000
|
-
publicInputs: o.public_inputs.map((v: any) => v),
|
|
3001
|
-
proof: o.proof.map((v: any) => v),
|
|
3002
|
-
vk: toCircuitComputeVkResponse(o.vk),
|
|
3003
|
-
};
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
export function fromCircuitProveResponse(o: CircuitProveResponse): MsgpackCircuitProveResponse {
|
|
3007
|
-
if (o.publicInputs === undefined) { throw new Error("Expected publicInputs in CircuitProveResponse serialization"); }
|
|
3008
|
-
if (o.proof === undefined) { throw new Error("Expected proof in CircuitProveResponse serialization"); }
|
|
3009
|
-
if (o.vk === undefined) { throw new Error("Expected vk in CircuitProveResponse serialization"); };
|
|
3010
|
-
return {
|
|
3011
|
-
public_inputs: o.publicInputs.map((v: any) => v),
|
|
3012
|
-
proof: o.proof.map((v: any) => v),
|
|
3013
|
-
vk: fromCircuitComputeVkResponse(o.vk),
|
|
3014
|
-
};
|
|
3015
|
-
}
|
|
3016
|
-
|
|
3017
|
-
export function toCircuitStats(o: MsgpackCircuitStats): CircuitStats {
|
|
3018
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitStats deserialization"); }
|
|
3019
|
-
if (o.include_gates_per_opcode === undefined) { throw new Error("Expected include_gates_per_opcode in CircuitStats deserialization"); }
|
|
3020
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitStats deserialization"); };
|
|
3021
|
-
return {
|
|
3022
|
-
circuit: toCircuitInput(o.circuit),
|
|
3023
|
-
includeGatesPerOpcode: o.include_gates_per_opcode,
|
|
3024
|
-
settings: toProofSystemSettings(o.settings),
|
|
3025
|
-
};
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
export function fromCircuitStats(o: CircuitStats): MsgpackCircuitStats {
|
|
3029
|
-
if (o.circuit === undefined) { throw new Error("Expected circuit in CircuitStats serialization"); }
|
|
3030
|
-
if (o.includeGatesPerOpcode === undefined) { throw new Error("Expected includeGatesPerOpcode in CircuitStats serialization"); }
|
|
3031
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitStats serialization"); };
|
|
3032
|
-
return {
|
|
3033
|
-
circuit: fromCircuitInput(o.circuit),
|
|
3034
|
-
include_gates_per_opcode: o.includeGatesPerOpcode,
|
|
3035
|
-
settings: fromProofSystemSettings(o.settings),
|
|
3036
|
-
};
|
|
3037
|
-
}
|
|
3038
|
-
|
|
3039
|
-
export function toCircuitVerify(o: MsgpackCircuitVerify): CircuitVerify {
|
|
3040
|
-
if (o.verification_key === undefined) { throw new Error("Expected verification_key in CircuitVerify deserialization"); }
|
|
3041
|
-
if (o.public_inputs === undefined) { throw new Error("Expected public_inputs in CircuitVerify deserialization"); }
|
|
3042
|
-
if (o.proof === undefined) { throw new Error("Expected proof in CircuitVerify deserialization"); }
|
|
3043
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitVerify deserialization"); };
|
|
3044
|
-
return {
|
|
3045
|
-
verificationKey: o.verification_key,
|
|
3046
|
-
publicInputs: o.public_inputs.map((v: any) => v),
|
|
3047
|
-
proof: o.proof.map((v: any) => v),
|
|
3048
|
-
settings: toProofSystemSettings(o.settings),
|
|
3049
|
-
};
|
|
3050
|
-
}
|
|
3051
|
-
|
|
3052
|
-
export function fromCircuitVerify(o: CircuitVerify): MsgpackCircuitVerify {
|
|
3053
|
-
if (o.verificationKey === undefined) { throw new Error("Expected verificationKey in CircuitVerify serialization"); }
|
|
3054
|
-
if (o.publicInputs === undefined) { throw new Error("Expected publicInputs in CircuitVerify serialization"); }
|
|
3055
|
-
if (o.proof === undefined) { throw new Error("Expected proof in CircuitVerify serialization"); }
|
|
3056
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitVerify serialization"); };
|
|
3057
|
-
return {
|
|
3058
|
-
verification_key: o.verificationKey,
|
|
3059
|
-
public_inputs: o.publicInputs.map((v: any) => v),
|
|
3060
|
-
proof: o.proof.map((v: any) => v),
|
|
3061
|
-
settings: fromProofSystemSettings(o.settings),
|
|
3062
|
-
};
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
export function toCircuitVerifyResponse(o: MsgpackCircuitVerifyResponse): CircuitVerifyResponse {
|
|
3066
|
-
if (o.verified === undefined) { throw new Error("Expected verified in CircuitVerifyResponse deserialization"); };
|
|
3067
|
-
return {
|
|
3068
|
-
verified: o.verified,
|
|
3069
|
-
};
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
export function fromCircuitVerifyResponse(o: CircuitVerifyResponse): MsgpackCircuitVerifyResponse {
|
|
3073
|
-
if (o.verified === undefined) { throw new Error("Expected verified in CircuitVerifyResponse serialization"); };
|
|
3074
|
-
return {
|
|
3075
|
-
verified: o.verified,
|
|
3076
|
-
};
|
|
3077
|
-
}
|
|
3078
|
-
|
|
3079
|
-
export function toCircuitWriteSolidityVerifier(o: MsgpackCircuitWriteSolidityVerifier): CircuitWriteSolidityVerifier {
|
|
3080
|
-
if (o.verification_key === undefined) { throw new Error("Expected verification_key in CircuitWriteSolidityVerifier deserialization"); }
|
|
3081
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitWriteSolidityVerifier deserialization"); };
|
|
3082
|
-
return {
|
|
3083
|
-
verificationKey: o.verification_key,
|
|
3084
|
-
settings: toProofSystemSettings(o.settings),
|
|
3085
|
-
};
|
|
3086
|
-
}
|
|
3087
|
-
|
|
3088
|
-
export function fromCircuitWriteSolidityVerifier(o: CircuitWriteSolidityVerifier): MsgpackCircuitWriteSolidityVerifier {
|
|
3089
|
-
if (o.verificationKey === undefined) { throw new Error("Expected verificationKey in CircuitWriteSolidityVerifier serialization"); }
|
|
3090
|
-
if (o.settings === undefined) { throw new Error("Expected settings in CircuitWriteSolidityVerifier serialization"); };
|
|
3091
|
-
return {
|
|
3092
|
-
verification_key: o.verificationKey,
|
|
3093
|
-
settings: fromProofSystemSettings(o.settings),
|
|
3094
|
-
};
|
|
3095
|
-
}
|
|
3096
|
-
|
|
3097
|
-
export function toCircuitWriteSolidityVerifierResponse(o: MsgpackCircuitWriteSolidityVerifierResponse): CircuitWriteSolidityVerifierResponse {
|
|
3098
|
-
if (o.solidity_code === undefined) { throw new Error("Expected solidity_code in CircuitWriteSolidityVerifierResponse deserialization"); };
|
|
3099
|
-
return {
|
|
3100
|
-
solidityCode: o.solidity_code,
|
|
3101
|
-
};
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
export function fromCircuitWriteSolidityVerifierResponse(o: CircuitWriteSolidityVerifierResponse): MsgpackCircuitWriteSolidityVerifierResponse {
|
|
3105
|
-
if (o.solidityCode === undefined) { throw new Error("Expected solidityCode in CircuitWriteSolidityVerifierResponse serialization"); };
|
|
3106
|
-
return {
|
|
3107
|
-
solidity_code: o.solidityCode,
|
|
3108
|
-
};
|
|
3109
|
-
}
|
|
3110
|
-
|
|
3111
|
-
export function toECCVMProof(o: MsgpackECCVMProof): ECCVMProof {
|
|
3112
|
-
if (o.pre_ipa_proof === undefined) { throw new Error("Expected pre_ipa_proof in ECCVMProof deserialization"); }
|
|
3113
|
-
if (o.ipa_proof === undefined) { throw new Error("Expected ipa_proof in ECCVMProof deserialization"); };
|
|
3114
|
-
return {
|
|
3115
|
-
preIpaProof: o.pre_ipa_proof.map((v: any) => v),
|
|
3116
|
-
ipaProof: o.ipa_proof.map((v: any) => v),
|
|
3117
|
-
};
|
|
3118
|
-
}
|
|
3119
|
-
|
|
3120
|
-
export function fromECCVMProof(o: ECCVMProof): MsgpackECCVMProof {
|
|
3121
|
-
if (o.preIpaProof === undefined) { throw new Error("Expected preIpaProof in ECCVMProof serialization"); }
|
|
3122
|
-
if (o.ipaProof === undefined) { throw new Error("Expected ipaProof in ECCVMProof serialization"); };
|
|
3123
|
-
return {
|
|
3124
|
-
pre_ipa_proof: o.preIpaProof.map((v: any) => v),
|
|
3125
|
-
ipa_proof: o.ipaProof.map((v: any) => v),
|
|
3126
|
-
};
|
|
3127
|
-
}
|
|
3128
|
-
|
|
3129
|
-
export function toEcdsaSecp256k1ComputePublicKey(o: MsgpackEcdsaSecp256k1ComputePublicKey): EcdsaSecp256k1ComputePublicKey {
|
|
3130
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in EcdsaSecp256k1ComputePublicKey deserialization"); };
|
|
3131
|
-
return {
|
|
3132
|
-
privateKey: o.private_key,
|
|
3133
|
-
};
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
export function fromEcdsaSecp256k1ComputePublicKey(o: EcdsaSecp256k1ComputePublicKey): MsgpackEcdsaSecp256k1ComputePublicKey {
|
|
3137
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in EcdsaSecp256k1ComputePublicKey serialization"); };
|
|
3138
|
-
return {
|
|
3139
|
-
private_key: o.privateKey,
|
|
3140
|
-
};
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
|
-
export function toEcdsaSecp256k1ComputePublicKeyResponse(o: MsgpackEcdsaSecp256k1ComputePublicKeyResponse): EcdsaSecp256k1ComputePublicKeyResponse {
|
|
3144
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256k1ComputePublicKeyResponse deserialization"); };
|
|
3145
|
-
return {
|
|
3146
|
-
publicKey: toSecp256k1Point(o.public_key),
|
|
3147
|
-
};
|
|
3148
|
-
}
|
|
3149
|
-
|
|
3150
|
-
export function fromEcdsaSecp256k1ComputePublicKeyResponse(o: EcdsaSecp256k1ComputePublicKeyResponse): MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
|
|
3151
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256k1ComputePublicKeyResponse serialization"); };
|
|
3152
|
-
return {
|
|
3153
|
-
public_key: fromSecp256k1Point(o.publicKey),
|
|
3154
|
-
};
|
|
3155
|
-
}
|
|
3156
|
-
|
|
3157
|
-
export function toEcdsaSecp256k1ConstructSignature(o: MsgpackEcdsaSecp256k1ConstructSignature): EcdsaSecp256k1ConstructSignature {
|
|
3158
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1ConstructSignature deserialization"); }
|
|
3159
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in EcdsaSecp256k1ConstructSignature deserialization"); };
|
|
3160
|
-
return {
|
|
3161
|
-
message: o.message,
|
|
3162
|
-
privateKey: o.private_key,
|
|
3163
|
-
};
|
|
3164
|
-
}
|
|
3165
|
-
|
|
3166
|
-
export function fromEcdsaSecp256k1ConstructSignature(o: EcdsaSecp256k1ConstructSignature): MsgpackEcdsaSecp256k1ConstructSignature {
|
|
3167
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1ConstructSignature serialization"); }
|
|
3168
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in EcdsaSecp256k1ConstructSignature serialization"); };
|
|
3169
|
-
return {
|
|
3170
|
-
message: o.message,
|
|
3171
|
-
private_key: o.privateKey,
|
|
3172
|
-
};
|
|
3173
|
-
}
|
|
3174
|
-
|
|
3175
|
-
export function toEcdsaSecp256k1ConstructSignatureResponse(o: MsgpackEcdsaSecp256k1ConstructSignatureResponse): EcdsaSecp256k1ConstructSignatureResponse {
|
|
3176
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1ConstructSignatureResponse deserialization"); }
|
|
3177
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1ConstructSignatureResponse deserialization"); }
|
|
3178
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1ConstructSignatureResponse deserialization"); };
|
|
3179
|
-
return {
|
|
3180
|
-
r: o.r,
|
|
3181
|
-
s: o.s,
|
|
3182
|
-
v: o.v,
|
|
3183
|
-
};
|
|
3184
|
-
}
|
|
3185
|
-
|
|
3186
|
-
export function fromEcdsaSecp256k1ConstructSignatureResponse(o: EcdsaSecp256k1ConstructSignatureResponse): MsgpackEcdsaSecp256k1ConstructSignatureResponse {
|
|
3187
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1ConstructSignatureResponse serialization"); }
|
|
3188
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1ConstructSignatureResponse serialization"); }
|
|
3189
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1ConstructSignatureResponse serialization"); };
|
|
3190
|
-
return {
|
|
3191
|
-
r: o.r,
|
|
3192
|
-
s: o.s,
|
|
3193
|
-
v: o.v,
|
|
3194
|
-
};
|
|
3195
|
-
}
|
|
3196
|
-
|
|
3197
|
-
export function toEcdsaSecp256k1RecoverPublicKey(o: MsgpackEcdsaSecp256k1RecoverPublicKey): EcdsaSecp256k1RecoverPublicKey {
|
|
3198
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1RecoverPublicKey deserialization"); }
|
|
3199
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1RecoverPublicKey deserialization"); }
|
|
3200
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1RecoverPublicKey deserialization"); }
|
|
3201
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1RecoverPublicKey deserialization"); };
|
|
3202
|
-
return {
|
|
3203
|
-
message: o.message,
|
|
3204
|
-
r: o.r,
|
|
3205
|
-
s: o.s,
|
|
3206
|
-
v: o.v,
|
|
3207
|
-
};
|
|
3208
|
-
}
|
|
3209
|
-
|
|
3210
|
-
export function fromEcdsaSecp256k1RecoverPublicKey(o: EcdsaSecp256k1RecoverPublicKey): MsgpackEcdsaSecp256k1RecoverPublicKey {
|
|
3211
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1RecoverPublicKey serialization"); }
|
|
3212
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1RecoverPublicKey serialization"); }
|
|
3213
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1RecoverPublicKey serialization"); }
|
|
3214
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1RecoverPublicKey serialization"); };
|
|
3215
|
-
return {
|
|
3216
|
-
message: o.message,
|
|
3217
|
-
r: o.r,
|
|
3218
|
-
s: o.s,
|
|
3219
|
-
v: o.v,
|
|
3220
|
-
};
|
|
3221
|
-
}
|
|
3222
|
-
|
|
3223
|
-
export function toEcdsaSecp256k1RecoverPublicKeyResponse(o: MsgpackEcdsaSecp256k1RecoverPublicKeyResponse): EcdsaSecp256k1RecoverPublicKeyResponse {
|
|
3224
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256k1RecoverPublicKeyResponse deserialization"); };
|
|
3225
|
-
return {
|
|
3226
|
-
publicKey: toSecp256k1Point(o.public_key),
|
|
3227
|
-
};
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
export function fromEcdsaSecp256k1RecoverPublicKeyResponse(o: EcdsaSecp256k1RecoverPublicKeyResponse): MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
|
|
3231
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256k1RecoverPublicKeyResponse serialization"); };
|
|
3232
|
-
return {
|
|
3233
|
-
public_key: fromSecp256k1Point(o.publicKey),
|
|
3234
|
-
};
|
|
3235
|
-
}
|
|
3236
|
-
|
|
3237
|
-
export function toEcdsaSecp256k1VerifySignature(o: MsgpackEcdsaSecp256k1VerifySignature): EcdsaSecp256k1VerifySignature {
|
|
3238
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1VerifySignature deserialization"); }
|
|
3239
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256k1VerifySignature deserialization"); }
|
|
3240
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1VerifySignature deserialization"); }
|
|
3241
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1VerifySignature deserialization"); }
|
|
3242
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1VerifySignature deserialization"); };
|
|
3243
|
-
return {
|
|
3244
|
-
message: o.message,
|
|
3245
|
-
publicKey: toSecp256k1Point(o.public_key),
|
|
3246
|
-
r: o.r,
|
|
3247
|
-
s: o.s,
|
|
3248
|
-
v: o.v,
|
|
3249
|
-
};
|
|
3250
|
-
}
|
|
3251
|
-
|
|
3252
|
-
export function fromEcdsaSecp256k1VerifySignature(o: EcdsaSecp256k1VerifySignature): MsgpackEcdsaSecp256k1VerifySignature {
|
|
3253
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256k1VerifySignature serialization"); }
|
|
3254
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256k1VerifySignature serialization"); }
|
|
3255
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256k1VerifySignature serialization"); }
|
|
3256
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256k1VerifySignature serialization"); }
|
|
3257
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256k1VerifySignature serialization"); };
|
|
3258
|
-
return {
|
|
3259
|
-
message: o.message,
|
|
3260
|
-
public_key: fromSecp256k1Point(o.publicKey),
|
|
3261
|
-
r: o.r,
|
|
3262
|
-
s: o.s,
|
|
3263
|
-
v: o.v,
|
|
3264
|
-
};
|
|
3265
|
-
}
|
|
3266
|
-
|
|
3267
|
-
export function toEcdsaSecp256k1VerifySignatureResponse(o: MsgpackEcdsaSecp256k1VerifySignatureResponse): EcdsaSecp256k1VerifySignatureResponse {
|
|
3268
|
-
if (o.verified === undefined) { throw new Error("Expected verified in EcdsaSecp256k1VerifySignatureResponse deserialization"); };
|
|
3269
|
-
return {
|
|
3270
|
-
verified: o.verified,
|
|
3271
|
-
};
|
|
3272
|
-
}
|
|
3273
|
-
|
|
3274
|
-
export function fromEcdsaSecp256k1VerifySignatureResponse(o: EcdsaSecp256k1VerifySignatureResponse): MsgpackEcdsaSecp256k1VerifySignatureResponse {
|
|
3275
|
-
if (o.verified === undefined) { throw new Error("Expected verified in EcdsaSecp256k1VerifySignatureResponse serialization"); };
|
|
3276
|
-
return {
|
|
3277
|
-
verified: o.verified,
|
|
3278
|
-
};
|
|
3279
|
-
}
|
|
3280
|
-
|
|
3281
|
-
export function toEcdsaSecp256r1ComputePublicKey(o: MsgpackEcdsaSecp256r1ComputePublicKey): EcdsaSecp256r1ComputePublicKey {
|
|
3282
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in EcdsaSecp256r1ComputePublicKey deserialization"); };
|
|
3283
|
-
return {
|
|
3284
|
-
privateKey: o.private_key,
|
|
3285
|
-
};
|
|
3286
|
-
}
|
|
3287
|
-
|
|
3288
|
-
export function fromEcdsaSecp256r1ComputePublicKey(o: EcdsaSecp256r1ComputePublicKey): MsgpackEcdsaSecp256r1ComputePublicKey {
|
|
3289
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in EcdsaSecp256r1ComputePublicKey serialization"); };
|
|
3290
|
-
return {
|
|
3291
|
-
private_key: o.privateKey,
|
|
3292
|
-
};
|
|
3293
|
-
}
|
|
3294
|
-
|
|
3295
|
-
export function toEcdsaSecp256r1ComputePublicKeyResponse(o: MsgpackEcdsaSecp256r1ComputePublicKeyResponse): EcdsaSecp256r1ComputePublicKeyResponse {
|
|
3296
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256r1ComputePublicKeyResponse deserialization"); };
|
|
3297
|
-
return {
|
|
3298
|
-
publicKey: toSecp256r1Point(o.public_key),
|
|
3299
|
-
};
|
|
3300
|
-
}
|
|
3301
|
-
|
|
3302
|
-
export function fromEcdsaSecp256r1ComputePublicKeyResponse(o: EcdsaSecp256r1ComputePublicKeyResponse): MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
|
|
3303
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256r1ComputePublicKeyResponse serialization"); };
|
|
3304
|
-
return {
|
|
3305
|
-
public_key: fromSecp256r1Point(o.publicKey),
|
|
3306
|
-
};
|
|
3307
|
-
}
|
|
3308
|
-
|
|
3309
|
-
export function toEcdsaSecp256r1ConstructSignature(o: MsgpackEcdsaSecp256r1ConstructSignature): EcdsaSecp256r1ConstructSignature {
|
|
3310
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1ConstructSignature deserialization"); }
|
|
3311
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in EcdsaSecp256r1ConstructSignature deserialization"); };
|
|
3312
|
-
return {
|
|
3313
|
-
message: o.message,
|
|
3314
|
-
privateKey: o.private_key,
|
|
3315
|
-
};
|
|
3316
|
-
}
|
|
3317
|
-
|
|
3318
|
-
export function fromEcdsaSecp256r1ConstructSignature(o: EcdsaSecp256r1ConstructSignature): MsgpackEcdsaSecp256r1ConstructSignature {
|
|
3319
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1ConstructSignature serialization"); }
|
|
3320
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in EcdsaSecp256r1ConstructSignature serialization"); };
|
|
3321
|
-
return {
|
|
3322
|
-
message: o.message,
|
|
3323
|
-
private_key: o.privateKey,
|
|
3324
|
-
};
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
export function toEcdsaSecp256r1ConstructSignatureResponse(o: MsgpackEcdsaSecp256r1ConstructSignatureResponse): EcdsaSecp256r1ConstructSignatureResponse {
|
|
3328
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1ConstructSignatureResponse deserialization"); }
|
|
3329
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1ConstructSignatureResponse deserialization"); }
|
|
3330
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1ConstructSignatureResponse deserialization"); };
|
|
3331
|
-
return {
|
|
3332
|
-
r: o.r,
|
|
3333
|
-
s: o.s,
|
|
3334
|
-
v: o.v,
|
|
3335
|
-
};
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
export function fromEcdsaSecp256r1ConstructSignatureResponse(o: EcdsaSecp256r1ConstructSignatureResponse): MsgpackEcdsaSecp256r1ConstructSignatureResponse {
|
|
3339
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1ConstructSignatureResponse serialization"); }
|
|
3340
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1ConstructSignatureResponse serialization"); }
|
|
3341
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1ConstructSignatureResponse serialization"); };
|
|
3342
|
-
return {
|
|
3343
|
-
r: o.r,
|
|
3344
|
-
s: o.s,
|
|
3345
|
-
v: o.v,
|
|
3346
|
-
};
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
export function toEcdsaSecp256r1RecoverPublicKey(o: MsgpackEcdsaSecp256r1RecoverPublicKey): EcdsaSecp256r1RecoverPublicKey {
|
|
3350
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1RecoverPublicKey deserialization"); }
|
|
3351
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1RecoverPublicKey deserialization"); }
|
|
3352
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1RecoverPublicKey deserialization"); }
|
|
3353
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1RecoverPublicKey deserialization"); };
|
|
3354
|
-
return {
|
|
3355
|
-
message: o.message,
|
|
3356
|
-
r: o.r,
|
|
3357
|
-
s: o.s,
|
|
3358
|
-
v: o.v,
|
|
3359
|
-
};
|
|
3360
|
-
}
|
|
3361
|
-
|
|
3362
|
-
export function fromEcdsaSecp256r1RecoverPublicKey(o: EcdsaSecp256r1RecoverPublicKey): MsgpackEcdsaSecp256r1RecoverPublicKey {
|
|
3363
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1RecoverPublicKey serialization"); }
|
|
3364
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1RecoverPublicKey serialization"); }
|
|
3365
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1RecoverPublicKey serialization"); }
|
|
3366
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1RecoverPublicKey serialization"); };
|
|
3367
|
-
return {
|
|
3368
|
-
message: o.message,
|
|
3369
|
-
r: o.r,
|
|
3370
|
-
s: o.s,
|
|
3371
|
-
v: o.v,
|
|
3372
|
-
};
|
|
3373
|
-
}
|
|
3374
|
-
|
|
3375
|
-
export function toEcdsaSecp256r1RecoverPublicKeyResponse(o: MsgpackEcdsaSecp256r1RecoverPublicKeyResponse): EcdsaSecp256r1RecoverPublicKeyResponse {
|
|
3376
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256r1RecoverPublicKeyResponse deserialization"); };
|
|
3377
|
-
return {
|
|
3378
|
-
publicKey: toSecp256r1Point(o.public_key),
|
|
3379
|
-
};
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
export function fromEcdsaSecp256r1RecoverPublicKeyResponse(o: EcdsaSecp256r1RecoverPublicKeyResponse): MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
|
|
3383
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256r1RecoverPublicKeyResponse serialization"); };
|
|
3384
|
-
return {
|
|
3385
|
-
public_key: fromSecp256r1Point(o.publicKey),
|
|
3386
|
-
};
|
|
3387
|
-
}
|
|
3388
|
-
|
|
3389
|
-
export function toEcdsaSecp256r1VerifySignature(o: MsgpackEcdsaSecp256r1VerifySignature): EcdsaSecp256r1VerifySignature {
|
|
3390
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1VerifySignature deserialization"); }
|
|
3391
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in EcdsaSecp256r1VerifySignature deserialization"); }
|
|
3392
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1VerifySignature deserialization"); }
|
|
3393
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1VerifySignature deserialization"); }
|
|
3394
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1VerifySignature deserialization"); };
|
|
3395
|
-
return {
|
|
3396
|
-
message: o.message,
|
|
3397
|
-
publicKey: toSecp256r1Point(o.public_key),
|
|
3398
|
-
r: o.r,
|
|
3399
|
-
s: o.s,
|
|
3400
|
-
v: o.v,
|
|
3401
|
-
};
|
|
3402
|
-
}
|
|
3403
|
-
|
|
3404
|
-
export function fromEcdsaSecp256r1VerifySignature(o: EcdsaSecp256r1VerifySignature): MsgpackEcdsaSecp256r1VerifySignature {
|
|
3405
|
-
if (o.message === undefined) { throw new Error("Expected message in EcdsaSecp256r1VerifySignature serialization"); }
|
|
3406
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in EcdsaSecp256r1VerifySignature serialization"); }
|
|
3407
|
-
if (o.r === undefined) { throw new Error("Expected r in EcdsaSecp256r1VerifySignature serialization"); }
|
|
3408
|
-
if (o.s === undefined) { throw new Error("Expected s in EcdsaSecp256r1VerifySignature serialization"); }
|
|
3409
|
-
if (o.v === undefined) { throw new Error("Expected v in EcdsaSecp256r1VerifySignature serialization"); };
|
|
3410
|
-
return {
|
|
3411
|
-
message: o.message,
|
|
3412
|
-
public_key: fromSecp256r1Point(o.publicKey),
|
|
3413
|
-
r: o.r,
|
|
3414
|
-
s: o.s,
|
|
3415
|
-
v: o.v,
|
|
3416
|
-
};
|
|
3417
|
-
}
|
|
3418
|
-
|
|
3419
|
-
export function toEcdsaSecp256r1VerifySignatureResponse(o: MsgpackEcdsaSecp256r1VerifySignatureResponse): EcdsaSecp256r1VerifySignatureResponse {
|
|
3420
|
-
if (o.verified === undefined) { throw new Error("Expected verified in EcdsaSecp256r1VerifySignatureResponse deserialization"); };
|
|
3421
|
-
return {
|
|
3422
|
-
verified: o.verified,
|
|
3423
|
-
};
|
|
3424
|
-
}
|
|
3425
|
-
|
|
3426
|
-
export function fromEcdsaSecp256r1VerifySignatureResponse(o: EcdsaSecp256r1VerifySignatureResponse): MsgpackEcdsaSecp256r1VerifySignatureResponse {
|
|
3427
|
-
if (o.verified === undefined) { throw new Error("Expected verified in EcdsaSecp256r1VerifySignatureResponse serialization"); };
|
|
3428
|
-
return {
|
|
3429
|
-
verified: o.verified,
|
|
3430
|
-
};
|
|
3431
|
-
}
|
|
3432
|
-
|
|
3433
|
-
export function toErrorResponse(o: MsgpackErrorResponse): ErrorResponse {
|
|
3434
|
-
if (o.message === undefined) { throw new Error("Expected message in ErrorResponse deserialization"); };
|
|
3435
|
-
return {
|
|
3436
|
-
message: o.message,
|
|
3437
|
-
};
|
|
3438
|
-
}
|
|
3439
|
-
|
|
3440
|
-
export function fromErrorResponse(o: ErrorResponse): MsgpackErrorResponse {
|
|
3441
|
-
if (o.message === undefined) { throw new Error("Expected message in ErrorResponse serialization"); };
|
|
3442
|
-
return {
|
|
3443
|
-
message: o.message,
|
|
3444
|
-
};
|
|
3445
|
-
}
|
|
3446
|
-
|
|
3447
|
-
export function toGoblinProof(o: MsgpackGoblinProof): GoblinProof {
|
|
3448
|
-
if (o.merge_proof === undefined) { throw new Error("Expected merge_proof in GoblinProof deserialization"); }
|
|
3449
|
-
if (o.eccvm_proof === undefined) { throw new Error("Expected eccvm_proof in GoblinProof deserialization"); }
|
|
3450
|
-
if (o.translator_proof === undefined) { throw new Error("Expected translator_proof in GoblinProof deserialization"); };
|
|
3451
|
-
return {
|
|
3452
|
-
mergeProof: o.merge_proof.map((v: any) => v),
|
|
3453
|
-
eccvmProof: toECCVMProof(o.eccvm_proof),
|
|
3454
|
-
translatorProof: o.translator_proof.map((v: any) => v),
|
|
3455
|
-
};
|
|
3456
|
-
}
|
|
3457
|
-
|
|
3458
|
-
export function fromGoblinProof(o: GoblinProof): MsgpackGoblinProof {
|
|
3459
|
-
if (o.mergeProof === undefined) { throw new Error("Expected mergeProof in GoblinProof serialization"); }
|
|
3460
|
-
if (o.eccvmProof === undefined) { throw new Error("Expected eccvmProof in GoblinProof serialization"); }
|
|
3461
|
-
if (o.translatorProof === undefined) { throw new Error("Expected translatorProof in GoblinProof serialization"); };
|
|
3462
|
-
return {
|
|
3463
|
-
merge_proof: o.mergeProof.map((v: any) => v),
|
|
3464
|
-
eccvm_proof: fromECCVMProof(o.eccvmProof),
|
|
3465
|
-
translator_proof: o.translatorProof.map((v: any) => v),
|
|
3466
|
-
};
|
|
3467
|
-
}
|
|
3468
|
-
|
|
3469
|
-
export function toGrumpkinAdd(o: MsgpackGrumpkinAdd): GrumpkinAdd {
|
|
3470
|
-
if (o.point_a === undefined) { throw new Error("Expected point_a in GrumpkinAdd deserialization"); }
|
|
3471
|
-
if (o.point_b === undefined) { throw new Error("Expected point_b in GrumpkinAdd deserialization"); };
|
|
3472
|
-
return {
|
|
3473
|
-
pointA: toGrumpkinPoint(o.point_a),
|
|
3474
|
-
pointB: toGrumpkinPoint(o.point_b),
|
|
3475
|
-
};
|
|
3476
|
-
}
|
|
3477
|
-
|
|
3478
|
-
export function fromGrumpkinAdd(o: GrumpkinAdd): MsgpackGrumpkinAdd {
|
|
3479
|
-
if (o.pointA === undefined) { throw new Error("Expected pointA in GrumpkinAdd serialization"); }
|
|
3480
|
-
if (o.pointB === undefined) { throw new Error("Expected pointB in GrumpkinAdd serialization"); };
|
|
3481
|
-
return {
|
|
3482
|
-
point_a: fromGrumpkinPoint(o.pointA),
|
|
3483
|
-
point_b: fromGrumpkinPoint(o.pointB),
|
|
3484
|
-
};
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
export function toGrumpkinAddResponse(o: MsgpackGrumpkinAddResponse): GrumpkinAddResponse {
|
|
3488
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinAddResponse deserialization"); };
|
|
3489
|
-
return {
|
|
3490
|
-
point: toGrumpkinPoint(o.point),
|
|
3491
|
-
};
|
|
3492
|
-
}
|
|
3493
|
-
|
|
3494
|
-
export function fromGrumpkinAddResponse(o: GrumpkinAddResponse): MsgpackGrumpkinAddResponse {
|
|
3495
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinAddResponse serialization"); };
|
|
3496
|
-
return {
|
|
3497
|
-
point: fromGrumpkinPoint(o.point),
|
|
3498
|
-
};
|
|
3499
|
-
}
|
|
3500
|
-
|
|
3501
|
-
export function toGrumpkinBatchMul(o: MsgpackGrumpkinBatchMul): GrumpkinBatchMul {
|
|
3502
|
-
if (o.points === undefined) { throw new Error("Expected points in GrumpkinBatchMul deserialization"); }
|
|
3503
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinBatchMul deserialization"); };
|
|
3504
|
-
return {
|
|
3505
|
-
points: o.points.map((v: any) => v),
|
|
3506
|
-
scalar: o.scalar,
|
|
3507
|
-
};
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
|
-
export function fromGrumpkinBatchMul(o: GrumpkinBatchMul): MsgpackGrumpkinBatchMul {
|
|
3511
|
-
if (o.points === undefined) { throw new Error("Expected points in GrumpkinBatchMul serialization"); }
|
|
3512
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinBatchMul serialization"); };
|
|
3513
|
-
return {
|
|
3514
|
-
points: o.points.map((v: any) => v),
|
|
3515
|
-
scalar: o.scalar,
|
|
3516
|
-
};
|
|
3517
|
-
}
|
|
3518
|
-
|
|
3519
|
-
export function toGrumpkinBatchMulResponse(o: MsgpackGrumpkinBatchMulResponse): GrumpkinBatchMulResponse {
|
|
3520
|
-
if (o.points === undefined) { throw new Error("Expected points in GrumpkinBatchMulResponse deserialization"); };
|
|
3521
|
-
return {
|
|
3522
|
-
points: o.points.map((v: any) => v),
|
|
3523
|
-
};
|
|
3524
|
-
}
|
|
3525
|
-
|
|
3526
|
-
export function fromGrumpkinBatchMulResponse(o: GrumpkinBatchMulResponse): MsgpackGrumpkinBatchMulResponse {
|
|
3527
|
-
if (o.points === undefined) { throw new Error("Expected points in GrumpkinBatchMulResponse serialization"); };
|
|
3528
|
-
return {
|
|
3529
|
-
points: o.points.map((v: any) => v),
|
|
3530
|
-
};
|
|
3531
|
-
}
|
|
3532
|
-
|
|
3533
|
-
export function toGrumpkinGetRandomFr(o: MsgpackGrumpkinGetRandomFr): GrumpkinGetRandomFr {
|
|
3534
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in GrumpkinGetRandomFr deserialization"); };
|
|
3535
|
-
return {
|
|
3536
|
-
dummy: o.dummy,
|
|
3537
|
-
};
|
|
3538
|
-
}
|
|
3539
|
-
|
|
3540
|
-
export function fromGrumpkinGetRandomFr(o: GrumpkinGetRandomFr): MsgpackGrumpkinGetRandomFr {
|
|
3541
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in GrumpkinGetRandomFr serialization"); };
|
|
3542
|
-
return {
|
|
3543
|
-
dummy: o.dummy,
|
|
3544
|
-
};
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
export function toGrumpkinGetRandomFrResponse(o: MsgpackGrumpkinGetRandomFrResponse): GrumpkinGetRandomFrResponse {
|
|
3548
|
-
if (o.value === undefined) { throw new Error("Expected value in GrumpkinGetRandomFrResponse deserialization"); };
|
|
3549
|
-
return {
|
|
3550
|
-
value: o.value,
|
|
3551
|
-
};
|
|
3552
|
-
}
|
|
3553
|
-
|
|
3554
|
-
export function fromGrumpkinGetRandomFrResponse(o: GrumpkinGetRandomFrResponse): MsgpackGrumpkinGetRandomFrResponse {
|
|
3555
|
-
if (o.value === undefined) { throw new Error("Expected value in GrumpkinGetRandomFrResponse serialization"); };
|
|
3556
|
-
return {
|
|
3557
|
-
value: o.value,
|
|
3558
|
-
};
|
|
3559
|
-
}
|
|
3560
|
-
|
|
3561
|
-
export function toGrumpkinMul(o: MsgpackGrumpkinMul): GrumpkinMul {
|
|
3562
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMul deserialization"); }
|
|
3563
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinMul deserialization"); };
|
|
3564
|
-
return {
|
|
3565
|
-
point: toGrumpkinPoint(o.point),
|
|
3566
|
-
scalar: o.scalar,
|
|
3567
|
-
};
|
|
3568
|
-
}
|
|
3569
|
-
|
|
3570
|
-
export function fromGrumpkinMul(o: GrumpkinMul): MsgpackGrumpkinMul {
|
|
3571
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMul serialization"); }
|
|
3572
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in GrumpkinMul serialization"); };
|
|
3573
|
-
return {
|
|
3574
|
-
point: fromGrumpkinPoint(o.point),
|
|
3575
|
-
scalar: o.scalar,
|
|
3576
|
-
};
|
|
3577
|
-
}
|
|
3578
|
-
|
|
3579
|
-
export function toGrumpkinMulResponse(o: MsgpackGrumpkinMulResponse): GrumpkinMulResponse {
|
|
3580
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMulResponse deserialization"); };
|
|
3581
|
-
return {
|
|
3582
|
-
point: toGrumpkinPoint(o.point),
|
|
3583
|
-
};
|
|
3584
|
-
}
|
|
3585
|
-
|
|
3586
|
-
export function fromGrumpkinMulResponse(o: GrumpkinMulResponse): MsgpackGrumpkinMulResponse {
|
|
3587
|
-
if (o.point === undefined) { throw new Error("Expected point in GrumpkinMulResponse serialization"); };
|
|
3588
|
-
return {
|
|
3589
|
-
point: fromGrumpkinPoint(o.point),
|
|
3590
|
-
};
|
|
3591
|
-
}
|
|
3592
|
-
|
|
3593
|
-
export function toGrumpkinPoint(o: MsgpackGrumpkinPoint): GrumpkinPoint {
|
|
3594
|
-
if (o.x === undefined) { throw new Error("Expected x in GrumpkinPoint deserialization"); }
|
|
3595
|
-
if (o.y === undefined) { throw new Error("Expected y in GrumpkinPoint deserialization"); };
|
|
3596
|
-
return {
|
|
3597
|
-
x: o.x,
|
|
3598
|
-
y: o.y,
|
|
3599
|
-
};
|
|
3600
|
-
}
|
|
3601
|
-
|
|
3602
|
-
export function fromGrumpkinPoint(o: GrumpkinPoint): MsgpackGrumpkinPoint {
|
|
3603
|
-
if (o.x === undefined) { throw new Error("Expected x in GrumpkinPoint serialization"); }
|
|
3604
|
-
if (o.y === undefined) { throw new Error("Expected y in GrumpkinPoint serialization"); };
|
|
3605
|
-
return {
|
|
3606
|
-
x: o.x,
|
|
3607
|
-
y: o.y,
|
|
3608
|
-
};
|
|
3609
|
-
}
|
|
3610
|
-
|
|
3611
|
-
export function toGrumpkinReduce512(o: MsgpackGrumpkinReduce512): GrumpkinReduce512 {
|
|
3612
|
-
if (o.input === undefined) { throw new Error("Expected input in GrumpkinReduce512 deserialization"); };
|
|
3613
|
-
return {
|
|
3614
|
-
input: o.input,
|
|
3615
|
-
};
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
|
-
export function fromGrumpkinReduce512(o: GrumpkinReduce512): MsgpackGrumpkinReduce512 {
|
|
3619
|
-
if (o.input === undefined) { throw new Error("Expected input in GrumpkinReduce512 serialization"); };
|
|
3620
|
-
return {
|
|
3621
|
-
input: o.input,
|
|
3622
|
-
};
|
|
3623
|
-
}
|
|
3624
|
-
|
|
3625
|
-
export function toGrumpkinReduce512Response(o: MsgpackGrumpkinReduce512Response): GrumpkinReduce512Response {
|
|
3626
|
-
if (o.value === undefined) { throw new Error("Expected value in GrumpkinReduce512Response deserialization"); };
|
|
3627
|
-
return {
|
|
3628
|
-
value: o.value,
|
|
3629
|
-
};
|
|
3630
|
-
}
|
|
3631
|
-
|
|
3632
|
-
export function fromGrumpkinReduce512Response(o: GrumpkinReduce512Response): MsgpackGrumpkinReduce512Response {
|
|
3633
|
-
if (o.value === undefined) { throw new Error("Expected value in GrumpkinReduce512Response serialization"); };
|
|
3634
|
-
return {
|
|
3635
|
-
value: o.value,
|
|
3636
|
-
};
|
|
3637
|
-
}
|
|
3638
|
-
|
|
3639
|
-
export function toMegaVkAsFields(o: MsgpackMegaVkAsFields): MegaVkAsFields {
|
|
3640
|
-
if (o.verification_key === undefined) { throw new Error("Expected verification_key in MegaVkAsFields deserialization"); };
|
|
3641
|
-
return {
|
|
3642
|
-
verificationKey: o.verification_key,
|
|
3643
|
-
};
|
|
3644
|
-
}
|
|
3645
|
-
|
|
3646
|
-
export function fromMegaVkAsFields(o: MegaVkAsFields): MsgpackMegaVkAsFields {
|
|
3647
|
-
if (o.verificationKey === undefined) { throw new Error("Expected verificationKey in MegaVkAsFields serialization"); };
|
|
3648
|
-
return {
|
|
3649
|
-
verification_key: o.verificationKey,
|
|
3650
|
-
};
|
|
3651
|
-
}
|
|
3652
|
-
|
|
3653
|
-
export function toMegaVkAsFieldsResponse(o: MsgpackMegaVkAsFieldsResponse): MegaVkAsFieldsResponse {
|
|
3654
|
-
if (o.fields === undefined) { throw new Error("Expected fields in MegaVkAsFieldsResponse deserialization"); };
|
|
3655
|
-
return {
|
|
3656
|
-
fields: o.fields.map((v: any) => v),
|
|
3657
|
-
};
|
|
3658
|
-
}
|
|
3659
|
-
|
|
3660
|
-
export function fromMegaVkAsFieldsResponse(o: MegaVkAsFieldsResponse): MsgpackMegaVkAsFieldsResponse {
|
|
3661
|
-
if (o.fields === undefined) { throw new Error("Expected fields in MegaVkAsFieldsResponse serialization"); };
|
|
3662
|
-
return {
|
|
3663
|
-
fields: o.fields.map((v: any) => v),
|
|
3664
|
-
};
|
|
3665
|
-
}
|
|
3666
|
-
|
|
3667
|
-
export function toPedersenCommit(o: MsgpackPedersenCommit): PedersenCommit {
|
|
3668
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in PedersenCommit deserialization"); }
|
|
3669
|
-
if (o.hash_index === undefined) { throw new Error("Expected hash_index in PedersenCommit deserialization"); };
|
|
3670
|
-
return {
|
|
3671
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3672
|
-
hashIndex: o.hash_index,
|
|
3673
|
-
};
|
|
3674
|
-
}
|
|
3675
|
-
|
|
3676
|
-
export function fromPedersenCommit(o: PedersenCommit): MsgpackPedersenCommit {
|
|
3677
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in PedersenCommit serialization"); }
|
|
3678
|
-
if (o.hashIndex === undefined) { throw new Error("Expected hashIndex in PedersenCommit serialization"); };
|
|
3679
|
-
return {
|
|
3680
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3681
|
-
hash_index: o.hashIndex,
|
|
3682
|
-
};
|
|
3683
|
-
}
|
|
3684
|
-
|
|
3685
|
-
export function toPedersenCommitResponse(o: MsgpackPedersenCommitResponse): PedersenCommitResponse {
|
|
3686
|
-
if (o.point === undefined) { throw new Error("Expected point in PedersenCommitResponse deserialization"); };
|
|
3687
|
-
return {
|
|
3688
|
-
point: toGrumpkinPoint(o.point),
|
|
3689
|
-
};
|
|
3690
|
-
}
|
|
3691
|
-
|
|
3692
|
-
export function fromPedersenCommitResponse(o: PedersenCommitResponse): MsgpackPedersenCommitResponse {
|
|
3693
|
-
if (o.point === undefined) { throw new Error("Expected point in PedersenCommitResponse serialization"); };
|
|
3694
|
-
return {
|
|
3695
|
-
point: fromGrumpkinPoint(o.point),
|
|
3696
|
-
};
|
|
3697
|
-
}
|
|
3698
|
-
|
|
3699
|
-
export function toPedersenHash(o: MsgpackPedersenHash): PedersenHash {
|
|
3700
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in PedersenHash deserialization"); }
|
|
3701
|
-
if (o.hash_index === undefined) { throw new Error("Expected hash_index in PedersenHash deserialization"); };
|
|
3702
|
-
return {
|
|
3703
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3704
|
-
hashIndex: o.hash_index,
|
|
3705
|
-
};
|
|
3706
|
-
}
|
|
3707
|
-
|
|
3708
|
-
export function fromPedersenHash(o: PedersenHash): MsgpackPedersenHash {
|
|
3709
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in PedersenHash serialization"); }
|
|
3710
|
-
if (o.hashIndex === undefined) { throw new Error("Expected hashIndex in PedersenHash serialization"); };
|
|
3711
|
-
return {
|
|
3712
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3713
|
-
hash_index: o.hashIndex,
|
|
3714
|
-
};
|
|
3715
|
-
}
|
|
3716
|
-
|
|
3717
|
-
export function toPedersenHashBuffer(o: MsgpackPedersenHashBuffer): PedersenHashBuffer {
|
|
3718
|
-
if (o.input === undefined) { throw new Error("Expected input in PedersenHashBuffer deserialization"); }
|
|
3719
|
-
if (o.hash_index === undefined) { throw new Error("Expected hash_index in PedersenHashBuffer deserialization"); };
|
|
3720
|
-
return {
|
|
3721
|
-
input: o.input,
|
|
3722
|
-
hashIndex: o.hash_index,
|
|
3723
|
-
};
|
|
3724
|
-
}
|
|
3725
|
-
|
|
3726
|
-
export function fromPedersenHashBuffer(o: PedersenHashBuffer): MsgpackPedersenHashBuffer {
|
|
3727
|
-
if (o.input === undefined) { throw new Error("Expected input in PedersenHashBuffer serialization"); }
|
|
3728
|
-
if (o.hashIndex === undefined) { throw new Error("Expected hashIndex in PedersenHashBuffer serialization"); };
|
|
3729
|
-
return {
|
|
3730
|
-
input: o.input,
|
|
3731
|
-
hash_index: o.hashIndex,
|
|
3732
|
-
};
|
|
3733
|
-
}
|
|
3734
|
-
|
|
3735
|
-
export function toPedersenHashBufferResponse(o: MsgpackPedersenHashBufferResponse): PedersenHashBufferResponse {
|
|
3736
|
-
if (o.hash === undefined) { throw new Error("Expected hash in PedersenHashBufferResponse deserialization"); };
|
|
3737
|
-
return {
|
|
3738
|
-
hash: o.hash,
|
|
3739
|
-
};
|
|
3740
|
-
}
|
|
3741
|
-
|
|
3742
|
-
export function fromPedersenHashBufferResponse(o: PedersenHashBufferResponse): MsgpackPedersenHashBufferResponse {
|
|
3743
|
-
if (o.hash === undefined) { throw new Error("Expected hash in PedersenHashBufferResponse serialization"); };
|
|
3744
|
-
return {
|
|
3745
|
-
hash: o.hash,
|
|
3746
|
-
};
|
|
3747
|
-
}
|
|
3748
|
-
|
|
3749
|
-
export function toPedersenHashResponse(o: MsgpackPedersenHashResponse): PedersenHashResponse {
|
|
3750
|
-
if (o.hash === undefined) { throw new Error("Expected hash in PedersenHashResponse deserialization"); };
|
|
3751
|
-
return {
|
|
3752
|
-
hash: o.hash,
|
|
3753
|
-
};
|
|
3754
|
-
}
|
|
3755
|
-
|
|
3756
|
-
export function fromPedersenHashResponse(o: PedersenHashResponse): MsgpackPedersenHashResponse {
|
|
3757
|
-
if (o.hash === undefined) { throw new Error("Expected hash in PedersenHashResponse serialization"); };
|
|
3758
|
-
return {
|
|
3759
|
-
hash: o.hash,
|
|
3760
|
-
};
|
|
3761
|
-
}
|
|
3762
|
-
|
|
3763
|
-
export function toPoseidon2Hash(o: MsgpackPoseidon2Hash): Poseidon2Hash {
|
|
3764
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2Hash deserialization"); };
|
|
3765
|
-
return {
|
|
3766
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3767
|
-
};
|
|
3768
|
-
}
|
|
3769
|
-
|
|
3770
|
-
export function fromPoseidon2Hash(o: Poseidon2Hash): MsgpackPoseidon2Hash {
|
|
3771
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2Hash serialization"); };
|
|
3772
|
-
return {
|
|
3773
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3774
|
-
};
|
|
3775
|
-
}
|
|
3776
|
-
|
|
3777
|
-
export function toPoseidon2HashAccumulate(o: MsgpackPoseidon2HashAccumulate): Poseidon2HashAccumulate {
|
|
3778
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2HashAccumulate deserialization"); };
|
|
3779
|
-
return {
|
|
3780
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3781
|
-
};
|
|
3782
|
-
}
|
|
3783
|
-
|
|
3784
|
-
export function fromPoseidon2HashAccumulate(o: Poseidon2HashAccumulate): MsgpackPoseidon2HashAccumulate {
|
|
3785
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2HashAccumulate serialization"); };
|
|
3786
|
-
return {
|
|
3787
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3788
|
-
};
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
export function toPoseidon2HashAccumulateResponse(o: MsgpackPoseidon2HashAccumulateResponse): Poseidon2HashAccumulateResponse {
|
|
3792
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Poseidon2HashAccumulateResponse deserialization"); };
|
|
3793
|
-
return {
|
|
3794
|
-
hash: o.hash,
|
|
3795
|
-
};
|
|
3796
|
-
}
|
|
3797
|
-
|
|
3798
|
-
export function fromPoseidon2HashAccumulateResponse(o: Poseidon2HashAccumulateResponse): MsgpackPoseidon2HashAccumulateResponse {
|
|
3799
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Poseidon2HashAccumulateResponse serialization"); };
|
|
3800
|
-
return {
|
|
3801
|
-
hash: o.hash,
|
|
3802
|
-
};
|
|
3803
|
-
}
|
|
3804
|
-
|
|
3805
|
-
export function toPoseidon2HashResponse(o: MsgpackPoseidon2HashResponse): Poseidon2HashResponse {
|
|
3806
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Poseidon2HashResponse deserialization"); };
|
|
3807
|
-
return {
|
|
3808
|
-
hash: o.hash,
|
|
3809
|
-
};
|
|
3810
|
-
}
|
|
3811
|
-
|
|
3812
|
-
export function fromPoseidon2HashResponse(o: Poseidon2HashResponse): MsgpackPoseidon2HashResponse {
|
|
3813
|
-
if (o.hash === undefined) { throw new Error("Expected hash in Poseidon2HashResponse serialization"); };
|
|
3814
|
-
return {
|
|
3815
|
-
hash: o.hash,
|
|
3816
|
-
};
|
|
3817
|
-
}
|
|
3818
|
-
|
|
3819
|
-
export function toPoseidon2Permutation(o: MsgpackPoseidon2Permutation): Poseidon2Permutation {
|
|
3820
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2Permutation deserialization"); };
|
|
3821
|
-
return {
|
|
3822
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3823
|
-
};
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
export function fromPoseidon2Permutation(o: Poseidon2Permutation): MsgpackPoseidon2Permutation {
|
|
3827
|
-
if (o.inputs === undefined) { throw new Error("Expected inputs in Poseidon2Permutation serialization"); };
|
|
3828
|
-
return {
|
|
3829
|
-
inputs: o.inputs.map((v: any) => v),
|
|
3830
|
-
};
|
|
3831
|
-
}
|
|
3832
|
-
|
|
3833
|
-
export function toPoseidon2PermutationResponse(o: MsgpackPoseidon2PermutationResponse): Poseidon2PermutationResponse {
|
|
3834
|
-
if (o.outputs === undefined) { throw new Error("Expected outputs in Poseidon2PermutationResponse deserialization"); };
|
|
3835
|
-
return {
|
|
3836
|
-
outputs: o.outputs.map((v: any) => v),
|
|
3837
|
-
};
|
|
3838
|
-
}
|
|
3839
|
-
|
|
3840
|
-
export function fromPoseidon2PermutationResponse(o: Poseidon2PermutationResponse): MsgpackPoseidon2PermutationResponse {
|
|
3841
|
-
if (o.outputs === undefined) { throw new Error("Expected outputs in Poseidon2PermutationResponse serialization"); };
|
|
3842
|
-
return {
|
|
3843
|
-
outputs: o.outputs.map((v: any) => v),
|
|
3844
|
-
};
|
|
3845
|
-
}
|
|
3846
|
-
|
|
3847
|
-
export function toProofSystemSettings(o: MsgpackProofSystemSettings): ProofSystemSettings {
|
|
3848
|
-
if (o.ipa_accumulation === undefined) { throw new Error("Expected ipa_accumulation in ProofSystemSettings deserialization"); }
|
|
3849
|
-
if (o.oracle_hash_type === undefined) { throw new Error("Expected oracle_hash_type in ProofSystemSettings deserialization"); }
|
|
3850
|
-
if (o.disable_zk === undefined) { throw new Error("Expected disable_zk in ProofSystemSettings deserialization"); }
|
|
3851
|
-
if (o.optimized_solidity_verifier === undefined) { throw new Error("Expected optimized_solidity_verifier in ProofSystemSettings deserialization"); };
|
|
3852
|
-
return {
|
|
3853
|
-
ipaAccumulation: o.ipa_accumulation,
|
|
3854
|
-
oracleHashType: o.oracle_hash_type,
|
|
3855
|
-
disableZk: o.disable_zk,
|
|
3856
|
-
optimizedSolidityVerifier: o.optimized_solidity_verifier,
|
|
3857
|
-
};
|
|
3858
|
-
}
|
|
3859
|
-
|
|
3860
|
-
export function fromProofSystemSettings(o: ProofSystemSettings): MsgpackProofSystemSettings {
|
|
3861
|
-
if (o.ipaAccumulation === undefined) { throw new Error("Expected ipaAccumulation in ProofSystemSettings serialization"); }
|
|
3862
|
-
if (o.oracleHashType === undefined) { throw new Error("Expected oracleHashType in ProofSystemSettings serialization"); }
|
|
3863
|
-
if (o.disableZk === undefined) { throw new Error("Expected disableZk in ProofSystemSettings serialization"); }
|
|
3864
|
-
if (o.optimizedSolidityVerifier === undefined) { throw new Error("Expected optimizedSolidityVerifier in ProofSystemSettings serialization"); };
|
|
3865
|
-
return {
|
|
3866
|
-
ipa_accumulation: o.ipaAccumulation,
|
|
3867
|
-
oracle_hash_type: o.oracleHashType,
|
|
3868
|
-
disable_zk: o.disableZk,
|
|
3869
|
-
optimized_solidity_verifier: o.optimizedSolidityVerifier,
|
|
3870
|
-
};
|
|
3871
|
-
}
|
|
3872
|
-
|
|
3873
|
-
export function toSchnorrComputePublicKey(o: MsgpackSchnorrComputePublicKey): SchnorrComputePublicKey {
|
|
3874
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in SchnorrComputePublicKey deserialization"); };
|
|
3875
|
-
return {
|
|
3876
|
-
privateKey: o.private_key,
|
|
3877
|
-
};
|
|
3878
|
-
}
|
|
3879
|
-
|
|
3880
|
-
export function fromSchnorrComputePublicKey(o: SchnorrComputePublicKey): MsgpackSchnorrComputePublicKey {
|
|
3881
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in SchnorrComputePublicKey serialization"); };
|
|
3882
|
-
return {
|
|
3883
|
-
private_key: o.privateKey,
|
|
3884
|
-
};
|
|
3885
|
-
}
|
|
3886
|
-
|
|
3887
|
-
export function toSchnorrComputePublicKeyResponse(o: MsgpackSchnorrComputePublicKeyResponse): SchnorrComputePublicKeyResponse {
|
|
3888
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in SchnorrComputePublicKeyResponse deserialization"); };
|
|
3889
|
-
return {
|
|
3890
|
-
publicKey: toGrumpkinPoint(o.public_key),
|
|
3891
|
-
};
|
|
3892
|
-
}
|
|
3893
|
-
|
|
3894
|
-
export function fromSchnorrComputePublicKeyResponse(o: SchnorrComputePublicKeyResponse): MsgpackSchnorrComputePublicKeyResponse {
|
|
3895
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in SchnorrComputePublicKeyResponse serialization"); };
|
|
3896
|
-
return {
|
|
3897
|
-
public_key: fromGrumpkinPoint(o.publicKey),
|
|
3898
|
-
};
|
|
3899
|
-
}
|
|
3900
|
-
|
|
3901
|
-
export function toSchnorrConstructSignature(o: MsgpackSchnorrConstructSignature): SchnorrConstructSignature {
|
|
3902
|
-
if (o.message === undefined) { throw new Error("Expected message in SchnorrConstructSignature deserialization"); }
|
|
3903
|
-
if (o.private_key === undefined) { throw new Error("Expected private_key in SchnorrConstructSignature deserialization"); };
|
|
3904
|
-
return {
|
|
3905
|
-
message: o.message,
|
|
3906
|
-
privateKey: o.private_key,
|
|
3907
|
-
};
|
|
3908
|
-
}
|
|
3909
|
-
|
|
3910
|
-
export function fromSchnorrConstructSignature(o: SchnorrConstructSignature): MsgpackSchnorrConstructSignature {
|
|
3911
|
-
if (o.message === undefined) { throw new Error("Expected message in SchnorrConstructSignature serialization"); }
|
|
3912
|
-
if (o.privateKey === undefined) { throw new Error("Expected privateKey in SchnorrConstructSignature serialization"); };
|
|
3913
|
-
return {
|
|
3914
|
-
message: o.message,
|
|
3915
|
-
private_key: o.privateKey,
|
|
3916
|
-
};
|
|
3917
|
-
}
|
|
3918
|
-
|
|
3919
|
-
export function toSchnorrConstructSignatureResponse(o: MsgpackSchnorrConstructSignatureResponse): SchnorrConstructSignatureResponse {
|
|
3920
|
-
if (o.s === undefined) { throw new Error("Expected s in SchnorrConstructSignatureResponse deserialization"); }
|
|
3921
|
-
if (o.e === undefined) { throw new Error("Expected e in SchnorrConstructSignatureResponse deserialization"); };
|
|
3922
|
-
return {
|
|
3923
|
-
s: o.s,
|
|
3924
|
-
e: o.e,
|
|
3925
|
-
};
|
|
3926
|
-
}
|
|
3927
|
-
|
|
3928
|
-
export function fromSchnorrConstructSignatureResponse(o: SchnorrConstructSignatureResponse): MsgpackSchnorrConstructSignatureResponse {
|
|
3929
|
-
if (o.s === undefined) { throw new Error("Expected s in SchnorrConstructSignatureResponse serialization"); }
|
|
3930
|
-
if (o.e === undefined) { throw new Error("Expected e in SchnorrConstructSignatureResponse serialization"); };
|
|
3931
|
-
return {
|
|
3932
|
-
s: o.s,
|
|
3933
|
-
e: o.e,
|
|
3934
|
-
};
|
|
3935
|
-
}
|
|
3936
|
-
|
|
3937
|
-
export function toSchnorrVerifySignature(o: MsgpackSchnorrVerifySignature): SchnorrVerifySignature {
|
|
3938
|
-
if (o.message === undefined) { throw new Error("Expected message in SchnorrVerifySignature deserialization"); }
|
|
3939
|
-
if (o.public_key === undefined) { throw new Error("Expected public_key in SchnorrVerifySignature deserialization"); }
|
|
3940
|
-
if (o.s === undefined) { throw new Error("Expected s in SchnorrVerifySignature deserialization"); }
|
|
3941
|
-
if (o.e === undefined) { throw new Error("Expected e in SchnorrVerifySignature deserialization"); };
|
|
3942
|
-
return {
|
|
3943
|
-
message: o.message,
|
|
3944
|
-
publicKey: toGrumpkinPoint(o.public_key),
|
|
3945
|
-
s: o.s,
|
|
3946
|
-
e: o.e,
|
|
3947
|
-
};
|
|
3948
|
-
}
|
|
3949
|
-
|
|
3950
|
-
export function fromSchnorrVerifySignature(o: SchnorrVerifySignature): MsgpackSchnorrVerifySignature {
|
|
3951
|
-
if (o.message === undefined) { throw new Error("Expected message in SchnorrVerifySignature serialization"); }
|
|
3952
|
-
if (o.publicKey === undefined) { throw new Error("Expected publicKey in SchnorrVerifySignature serialization"); }
|
|
3953
|
-
if (o.s === undefined) { throw new Error("Expected s in SchnorrVerifySignature serialization"); }
|
|
3954
|
-
if (o.e === undefined) { throw new Error("Expected e in SchnorrVerifySignature serialization"); };
|
|
3955
|
-
return {
|
|
3956
|
-
message: o.message,
|
|
3957
|
-
public_key: fromGrumpkinPoint(o.publicKey),
|
|
3958
|
-
s: o.s,
|
|
3959
|
-
e: o.e,
|
|
3960
|
-
};
|
|
3961
|
-
}
|
|
3962
|
-
|
|
3963
|
-
export function toSchnorrVerifySignatureResponse(o: MsgpackSchnorrVerifySignatureResponse): SchnorrVerifySignatureResponse {
|
|
3964
|
-
if (o.verified === undefined) { throw new Error("Expected verified in SchnorrVerifySignatureResponse deserialization"); };
|
|
3965
|
-
return {
|
|
3966
|
-
verified: o.verified,
|
|
3967
|
-
};
|
|
3968
|
-
}
|
|
3969
|
-
|
|
3970
|
-
export function fromSchnorrVerifySignatureResponse(o: SchnorrVerifySignatureResponse): MsgpackSchnorrVerifySignatureResponse {
|
|
3971
|
-
if (o.verified === undefined) { throw new Error("Expected verified in SchnorrVerifySignatureResponse serialization"); };
|
|
3972
|
-
return {
|
|
3973
|
-
verified: o.verified,
|
|
3974
|
-
};
|
|
3975
|
-
}
|
|
3976
|
-
|
|
3977
|
-
export function toSecp256k1GetRandomFr(o: MsgpackSecp256k1GetRandomFr): Secp256k1GetRandomFr {
|
|
3978
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in Secp256k1GetRandomFr deserialization"); };
|
|
3979
|
-
return {
|
|
3980
|
-
dummy: o.dummy,
|
|
3981
|
-
};
|
|
3982
|
-
}
|
|
3983
|
-
|
|
3984
|
-
export function fromSecp256k1GetRandomFr(o: Secp256k1GetRandomFr): MsgpackSecp256k1GetRandomFr {
|
|
3985
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in Secp256k1GetRandomFr serialization"); };
|
|
3986
|
-
return {
|
|
3987
|
-
dummy: o.dummy,
|
|
3988
|
-
};
|
|
3989
|
-
}
|
|
3990
|
-
|
|
3991
|
-
export function toSecp256k1GetRandomFrResponse(o: MsgpackSecp256k1GetRandomFrResponse): Secp256k1GetRandomFrResponse {
|
|
3992
|
-
if (o.value === undefined) { throw new Error("Expected value in Secp256k1GetRandomFrResponse deserialization"); };
|
|
3993
|
-
return {
|
|
3994
|
-
value: o.value,
|
|
3995
|
-
};
|
|
3996
|
-
}
|
|
3997
|
-
|
|
3998
|
-
export function fromSecp256k1GetRandomFrResponse(o: Secp256k1GetRandomFrResponse): MsgpackSecp256k1GetRandomFrResponse {
|
|
3999
|
-
if (o.value === undefined) { throw new Error("Expected value in Secp256k1GetRandomFrResponse serialization"); };
|
|
4000
|
-
return {
|
|
4001
|
-
value: o.value,
|
|
4002
|
-
};
|
|
4003
|
-
}
|
|
4004
|
-
|
|
4005
|
-
export function toSecp256k1Mul(o: MsgpackSecp256k1Mul): Secp256k1Mul {
|
|
4006
|
-
if (o.point === undefined) { throw new Error("Expected point in Secp256k1Mul deserialization"); }
|
|
4007
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Secp256k1Mul deserialization"); };
|
|
4008
|
-
return {
|
|
4009
|
-
point: toSecp256k1Point(o.point),
|
|
4010
|
-
scalar: o.scalar,
|
|
4011
|
-
};
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
export function fromSecp256k1Mul(o: Secp256k1Mul): MsgpackSecp256k1Mul {
|
|
4015
|
-
if (o.point === undefined) { throw new Error("Expected point in Secp256k1Mul serialization"); }
|
|
4016
|
-
if (o.scalar === undefined) { throw new Error("Expected scalar in Secp256k1Mul serialization"); };
|
|
4017
|
-
return {
|
|
4018
|
-
point: fromSecp256k1Point(o.point),
|
|
4019
|
-
scalar: o.scalar,
|
|
4020
|
-
};
|
|
4021
|
-
}
|
|
4022
|
-
|
|
4023
|
-
export function toSecp256k1MulResponse(o: MsgpackSecp256k1MulResponse): Secp256k1MulResponse {
|
|
4024
|
-
if (o.point === undefined) { throw new Error("Expected point in Secp256k1MulResponse deserialization"); };
|
|
4025
|
-
return {
|
|
4026
|
-
point: toSecp256k1Point(o.point),
|
|
4027
|
-
};
|
|
4028
|
-
}
|
|
4029
|
-
|
|
4030
|
-
export function fromSecp256k1MulResponse(o: Secp256k1MulResponse): MsgpackSecp256k1MulResponse {
|
|
4031
|
-
if (o.point === undefined) { throw new Error("Expected point in Secp256k1MulResponse serialization"); };
|
|
4032
|
-
return {
|
|
4033
|
-
point: fromSecp256k1Point(o.point),
|
|
4034
|
-
};
|
|
4035
|
-
}
|
|
4036
|
-
|
|
4037
|
-
export function toSecp256k1Point(o: MsgpackSecp256k1Point): Secp256k1Point {
|
|
4038
|
-
if (o.x === undefined) { throw new Error("Expected x in Secp256k1Point deserialization"); }
|
|
4039
|
-
if (o.y === undefined) { throw new Error("Expected y in Secp256k1Point deserialization"); };
|
|
4040
|
-
return {
|
|
4041
|
-
x: o.x,
|
|
4042
|
-
y: o.y,
|
|
4043
|
-
};
|
|
4044
|
-
}
|
|
4045
|
-
|
|
4046
|
-
export function fromSecp256k1Point(o: Secp256k1Point): MsgpackSecp256k1Point {
|
|
4047
|
-
if (o.x === undefined) { throw new Error("Expected x in Secp256k1Point serialization"); }
|
|
4048
|
-
if (o.y === undefined) { throw new Error("Expected y in Secp256k1Point serialization"); };
|
|
4049
|
-
return {
|
|
4050
|
-
x: o.x,
|
|
4051
|
-
y: o.y,
|
|
4052
|
-
};
|
|
4053
|
-
}
|
|
4054
|
-
|
|
4055
|
-
export function toSecp256k1Reduce512(o: MsgpackSecp256k1Reduce512): Secp256k1Reduce512 {
|
|
4056
|
-
if (o.input === undefined) { throw new Error("Expected input in Secp256k1Reduce512 deserialization"); };
|
|
4057
|
-
return {
|
|
4058
|
-
input: o.input,
|
|
4059
|
-
};
|
|
4060
|
-
}
|
|
4061
|
-
|
|
4062
|
-
export function fromSecp256k1Reduce512(o: Secp256k1Reduce512): MsgpackSecp256k1Reduce512 {
|
|
4063
|
-
if (o.input === undefined) { throw new Error("Expected input in Secp256k1Reduce512 serialization"); };
|
|
4064
|
-
return {
|
|
4065
|
-
input: o.input,
|
|
4066
|
-
};
|
|
4067
|
-
}
|
|
4068
|
-
|
|
4069
|
-
export function toSecp256k1Reduce512Response(o: MsgpackSecp256k1Reduce512Response): Secp256k1Reduce512Response {
|
|
4070
|
-
if (o.value === undefined) { throw new Error("Expected value in Secp256k1Reduce512Response deserialization"); };
|
|
4071
|
-
return {
|
|
4072
|
-
value: o.value,
|
|
4073
|
-
};
|
|
4074
|
-
}
|
|
4075
|
-
|
|
4076
|
-
export function fromSecp256k1Reduce512Response(o: Secp256k1Reduce512Response): MsgpackSecp256k1Reduce512Response {
|
|
4077
|
-
if (o.value === undefined) { throw new Error("Expected value in Secp256k1Reduce512Response serialization"); };
|
|
4078
|
-
return {
|
|
4079
|
-
value: o.value,
|
|
4080
|
-
};
|
|
4081
|
-
}
|
|
4082
|
-
|
|
4083
|
-
export function toSecp256r1Point(o: MsgpackSecp256r1Point): Secp256r1Point {
|
|
4084
|
-
if (o.x === undefined) { throw new Error("Expected x in Secp256r1Point deserialization"); }
|
|
4085
|
-
if (o.y === undefined) { throw new Error("Expected y in Secp256r1Point deserialization"); };
|
|
4086
|
-
return {
|
|
4087
|
-
x: o.x,
|
|
4088
|
-
y: o.y,
|
|
4089
|
-
};
|
|
4090
|
-
}
|
|
4091
|
-
|
|
4092
|
-
export function fromSecp256r1Point(o: Secp256r1Point): MsgpackSecp256r1Point {
|
|
4093
|
-
if (o.x === undefined) { throw new Error("Expected x in Secp256r1Point serialization"); }
|
|
4094
|
-
if (o.y === undefined) { throw new Error("Expected y in Secp256r1Point serialization"); };
|
|
4095
|
-
return {
|
|
4096
|
-
x: o.x,
|
|
4097
|
-
y: o.y,
|
|
4098
|
-
};
|
|
4099
|
-
}
|
|
4100
|
-
|
|
4101
|
-
export function toShutdown(o: MsgpackShutdown): Shutdown {
|
|
4102
|
-
return {};
|
|
4103
|
-
}
|
|
4104
|
-
|
|
4105
|
-
export function fromShutdown(o: Shutdown): MsgpackShutdown {
|
|
4106
|
-
return {};
|
|
4107
|
-
}
|
|
4108
|
-
|
|
4109
|
-
export function toShutdownResponse(o: MsgpackShutdownResponse): ShutdownResponse {
|
|
4110
|
-
return {};
|
|
4111
|
-
}
|
|
4112
|
-
|
|
4113
|
-
export function fromShutdownResponse(o: ShutdownResponse): MsgpackShutdownResponse {
|
|
4114
|
-
return {};
|
|
4115
|
-
}
|
|
4116
|
-
|
|
4117
|
-
export function toSrsInitGrumpkinSrs(o: MsgpackSrsInitGrumpkinSrs): SrsInitGrumpkinSrs {
|
|
4118
|
-
if (o.points_buf === undefined) { throw new Error("Expected points_buf in SrsInitGrumpkinSrs deserialization"); }
|
|
4119
|
-
if (o.num_points === undefined) { throw new Error("Expected num_points in SrsInitGrumpkinSrs deserialization"); };
|
|
4120
|
-
return {
|
|
4121
|
-
pointsBuf: o.points_buf,
|
|
4122
|
-
numPoints: o.num_points,
|
|
4123
|
-
};
|
|
4124
|
-
}
|
|
4125
|
-
|
|
4126
|
-
export function fromSrsInitGrumpkinSrs(o: SrsInitGrumpkinSrs): MsgpackSrsInitGrumpkinSrs {
|
|
4127
|
-
if (o.pointsBuf === undefined) { throw new Error("Expected pointsBuf in SrsInitGrumpkinSrs serialization"); }
|
|
4128
|
-
if (o.numPoints === undefined) { throw new Error("Expected numPoints in SrsInitGrumpkinSrs serialization"); };
|
|
4129
|
-
return {
|
|
4130
|
-
points_buf: o.pointsBuf,
|
|
4131
|
-
num_points: o.numPoints,
|
|
4132
|
-
};
|
|
4133
|
-
}
|
|
4134
|
-
|
|
4135
|
-
export function toSrsInitGrumpkinSrsResponse(o: MsgpackSrsInitGrumpkinSrsResponse): SrsInitGrumpkinSrsResponse {
|
|
4136
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in SrsInitGrumpkinSrsResponse deserialization"); };
|
|
4137
|
-
return {
|
|
4138
|
-
dummy: o.dummy,
|
|
4139
|
-
};
|
|
4140
|
-
}
|
|
4141
|
-
|
|
4142
|
-
export function fromSrsInitGrumpkinSrsResponse(o: SrsInitGrumpkinSrsResponse): MsgpackSrsInitGrumpkinSrsResponse {
|
|
4143
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in SrsInitGrumpkinSrsResponse serialization"); };
|
|
4144
|
-
return {
|
|
4145
|
-
dummy: o.dummy,
|
|
4146
|
-
};
|
|
4147
|
-
}
|
|
4148
|
-
|
|
4149
|
-
export function toSrsInitSrs(o: MsgpackSrsInitSrs): SrsInitSrs {
|
|
4150
|
-
if (o.points_buf === undefined) { throw new Error("Expected points_buf in SrsInitSrs deserialization"); }
|
|
4151
|
-
if (o.num_points === undefined) { throw new Error("Expected num_points in SrsInitSrs deserialization"); }
|
|
4152
|
-
if (o.g2_point === undefined) { throw new Error("Expected g2_point in SrsInitSrs deserialization"); };
|
|
4153
|
-
return {
|
|
4154
|
-
pointsBuf: o.points_buf,
|
|
4155
|
-
numPoints: o.num_points,
|
|
4156
|
-
g2Point: o.g2_point,
|
|
4157
|
-
};
|
|
4158
|
-
}
|
|
4159
|
-
|
|
4160
|
-
export function fromSrsInitSrs(o: SrsInitSrs): MsgpackSrsInitSrs {
|
|
4161
|
-
if (o.pointsBuf === undefined) { throw new Error("Expected pointsBuf in SrsInitSrs serialization"); }
|
|
4162
|
-
if (o.numPoints === undefined) { throw new Error("Expected numPoints in SrsInitSrs serialization"); }
|
|
4163
|
-
if (o.g2Point === undefined) { throw new Error("Expected g2Point in SrsInitSrs serialization"); };
|
|
4164
|
-
return {
|
|
4165
|
-
points_buf: o.pointsBuf,
|
|
4166
|
-
num_points: o.numPoints,
|
|
4167
|
-
g2_point: o.g2Point,
|
|
4168
|
-
};
|
|
4169
|
-
}
|
|
4170
|
-
|
|
4171
|
-
export function toSrsInitSrsResponse(o: MsgpackSrsInitSrsResponse): SrsInitSrsResponse {
|
|
4172
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in SrsInitSrsResponse deserialization"); };
|
|
4173
|
-
return {
|
|
4174
|
-
dummy: o.dummy,
|
|
4175
|
-
};
|
|
4176
|
-
}
|
|
4177
|
-
|
|
4178
|
-
export function fromSrsInitSrsResponse(o: SrsInitSrsResponse): MsgpackSrsInitSrsResponse {
|
|
4179
|
-
if (o.dummy === undefined) { throw new Error("Expected dummy in SrsInitSrsResponse serialization"); };
|
|
4180
|
-
return {
|
|
4181
|
-
dummy: o.dummy,
|
|
4182
|
-
};
|
|
4183
|
-
}
|
|
4184
|
-
|
|
4185
|
-
export function toVkAsFields(o: MsgpackVkAsFields): VkAsFields {
|
|
4186
|
-
if (o.verification_key === undefined) { throw new Error("Expected verification_key in VkAsFields deserialization"); };
|
|
4187
|
-
return {
|
|
4188
|
-
verificationKey: o.verification_key,
|
|
4189
|
-
};
|
|
4190
|
-
}
|
|
4191
|
-
|
|
4192
|
-
export function fromVkAsFields(o: VkAsFields): MsgpackVkAsFields {
|
|
4193
|
-
if (o.verificationKey === undefined) { throw new Error("Expected verificationKey in VkAsFields serialization"); };
|
|
4194
|
-
return {
|
|
4195
|
-
verification_key: o.verificationKey,
|
|
4196
|
-
};
|
|
4197
|
-
}
|
|
4198
|
-
|
|
4199
|
-
export function toVkAsFieldsResponse(o: MsgpackVkAsFieldsResponse): VkAsFieldsResponse {
|
|
4200
|
-
if (o.fields === undefined) { throw new Error("Expected fields in VkAsFieldsResponse deserialization"); };
|
|
4201
|
-
return {
|
|
4202
|
-
fields: o.fields.map((v: any) => v),
|
|
4203
|
-
};
|
|
4204
|
-
}
|
|
4205
|
-
|
|
4206
|
-
export function fromVkAsFieldsResponse(o: VkAsFieldsResponse): MsgpackVkAsFieldsResponse {
|
|
4207
|
-
if (o.fields === undefined) { throw new Error("Expected fields in VkAsFieldsResponse serialization"); };
|
|
4208
|
-
return {
|
|
4209
|
-
fields: o.fields.map((v: any) => v),
|
|
4210
|
-
};
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
// Base API interface
|
|
4215
|
-
export interface BbApiBase {
|
|
4216
|
-
circuitProve(command: CircuitProve): Promise<CircuitProveResponse>;
|
|
4217
|
-
circuitComputeVk(command: CircuitComputeVk): Promise<CircuitComputeVkResponse>;
|
|
4218
|
-
circuitStats(command: CircuitStats): Promise<CircuitInfoResponse>;
|
|
4219
|
-
circuitVerify(command: CircuitVerify): Promise<CircuitVerifyResponse>;
|
|
4220
|
-
chonkComputeStandaloneVk(command: ChonkComputeStandaloneVk): Promise<ChonkComputeStandaloneVkResponse>;
|
|
4221
|
-
chonkComputeIvcVk(command: ChonkComputeIvcVk): Promise<ChonkComputeIvcVkResponse>;
|
|
4222
|
-
chonkStart(command: ChonkStart): Promise<ChonkStartResponse>;
|
|
4223
|
-
chonkLoad(command: ChonkLoad): Promise<ChonkLoadResponse>;
|
|
4224
|
-
chonkAccumulate(command: ChonkAccumulate): Promise<ChonkAccumulateResponse>;
|
|
4225
|
-
chonkProve(command: ChonkProve): Promise<ChonkProveResponse>;
|
|
4226
|
-
chonkVerify(command: ChonkVerify): Promise<ChonkVerifyResponse>;
|
|
4227
|
-
vkAsFields(command: VkAsFields): Promise<VkAsFieldsResponse>;
|
|
4228
|
-
megaVkAsFields(command: MegaVkAsFields): Promise<MegaVkAsFieldsResponse>;
|
|
4229
|
-
circuitWriteSolidityVerifier(command: CircuitWriteSolidityVerifier): Promise<CircuitWriteSolidityVerifierResponse>;
|
|
4230
|
-
chonkCheckPrecomputedVk(command: ChonkCheckPrecomputedVk): Promise<ChonkCheckPrecomputedVkResponse>;
|
|
4231
|
-
chonkStats(command: ChonkStats): Promise<ChonkStatsResponse>;
|
|
4232
|
-
poseidon2Hash(command: Poseidon2Hash): Promise<Poseidon2HashResponse>;
|
|
4233
|
-
poseidon2Permutation(command: Poseidon2Permutation): Promise<Poseidon2PermutationResponse>;
|
|
4234
|
-
poseidon2HashAccumulate(command: Poseidon2HashAccumulate): Promise<Poseidon2HashAccumulateResponse>;
|
|
4235
|
-
pedersenCommit(command: PedersenCommit): Promise<PedersenCommitResponse>;
|
|
4236
|
-
pedersenHash(command: PedersenHash): Promise<PedersenHashResponse>;
|
|
4237
|
-
pedersenHashBuffer(command: PedersenHashBuffer): Promise<PedersenHashBufferResponse>;
|
|
4238
|
-
blake2s(command: Blake2s): Promise<Blake2sResponse>;
|
|
4239
|
-
blake2sToField(command: Blake2sToField): Promise<Blake2sToFieldResponse>;
|
|
4240
|
-
aesEncrypt(command: AesEncrypt): Promise<AesEncryptResponse>;
|
|
4241
|
-
aesDecrypt(command: AesDecrypt): Promise<AesDecryptResponse>;
|
|
4242
|
-
grumpkinMul(command: GrumpkinMul): Promise<GrumpkinMulResponse>;
|
|
4243
|
-
grumpkinAdd(command: GrumpkinAdd): Promise<GrumpkinAddResponse>;
|
|
4244
|
-
grumpkinBatchMul(command: GrumpkinBatchMul): Promise<GrumpkinBatchMulResponse>;
|
|
4245
|
-
grumpkinGetRandomFr(command: GrumpkinGetRandomFr): Promise<GrumpkinGetRandomFrResponse>;
|
|
4246
|
-
grumpkinReduce512(command: GrumpkinReduce512): Promise<GrumpkinReduce512Response>;
|
|
4247
|
-
secp256k1Mul(command: Secp256k1Mul): Promise<Secp256k1MulResponse>;
|
|
4248
|
-
secp256k1GetRandomFr(command: Secp256k1GetRandomFr): Promise<Secp256k1GetRandomFrResponse>;
|
|
4249
|
-
secp256k1Reduce512(command: Secp256k1Reduce512): Promise<Secp256k1Reduce512Response>;
|
|
4250
|
-
bn254FrSqrt(command: Bn254FrSqrt): Promise<Bn254FrSqrtResponse>;
|
|
4251
|
-
bn254FqSqrt(command: Bn254FqSqrt): Promise<Bn254FqSqrtResponse>;
|
|
4252
|
-
bn254G1Mul(command: Bn254G1Mul): Promise<Bn254G1MulResponse>;
|
|
4253
|
-
bn254G2Mul(command: Bn254G2Mul): Promise<Bn254G2MulResponse>;
|
|
4254
|
-
bn254G1IsOnCurve(command: Bn254G1IsOnCurve): Promise<Bn254G1IsOnCurveResponse>;
|
|
4255
|
-
bn254G1FromCompressed(command: Bn254G1FromCompressed): Promise<Bn254G1FromCompressedResponse>;
|
|
4256
|
-
schnorrComputePublicKey(command: SchnorrComputePublicKey): Promise<SchnorrComputePublicKeyResponse>;
|
|
4257
|
-
schnorrConstructSignature(command: SchnorrConstructSignature): Promise<SchnorrConstructSignatureResponse>;
|
|
4258
|
-
schnorrVerifySignature(command: SchnorrVerifySignature): Promise<SchnorrVerifySignatureResponse>;
|
|
4259
|
-
ecdsaSecp256k1ComputePublicKey(command: EcdsaSecp256k1ComputePublicKey): Promise<EcdsaSecp256k1ComputePublicKeyResponse>;
|
|
4260
|
-
ecdsaSecp256r1ComputePublicKey(command: EcdsaSecp256r1ComputePublicKey): Promise<EcdsaSecp256r1ComputePublicKeyResponse>;
|
|
4261
|
-
ecdsaSecp256k1ConstructSignature(command: EcdsaSecp256k1ConstructSignature): Promise<EcdsaSecp256k1ConstructSignatureResponse>;
|
|
4262
|
-
ecdsaSecp256r1ConstructSignature(command: EcdsaSecp256r1ConstructSignature): Promise<EcdsaSecp256r1ConstructSignatureResponse>;
|
|
4263
|
-
ecdsaSecp256k1RecoverPublicKey(command: EcdsaSecp256k1RecoverPublicKey): Promise<EcdsaSecp256k1RecoverPublicKeyResponse>;
|
|
4264
|
-
ecdsaSecp256r1RecoverPublicKey(command: EcdsaSecp256r1RecoverPublicKey): Promise<EcdsaSecp256r1RecoverPublicKeyResponse>;
|
|
4265
|
-
ecdsaSecp256k1VerifySignature(command: EcdsaSecp256k1VerifySignature): Promise<EcdsaSecp256k1VerifySignatureResponse>;
|
|
4266
|
-
ecdsaSecp256r1VerifySignature(command: EcdsaSecp256r1VerifySignature): Promise<EcdsaSecp256r1VerifySignatureResponse>;
|
|
4267
|
-
srsInitSrs(command: SrsInitSrs): Promise<SrsInitSrsResponse>;
|
|
4268
|
-
srsInitGrumpkinSrs(command: SrsInitGrumpkinSrs): Promise<SrsInitGrumpkinSrsResponse>;
|
|
4269
|
-
shutdown(command: Shutdown): Promise<ShutdownResponse>;
|
|
4270
|
-
destroy(): Promise<void>;
|
|
4271
|
-
}
|