@aztec/bb.js 3.0.0-nightly.20251026 → 3.0.0-nightly.20251030-2

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.
Files changed (147) hide show
  1. package/README.md +1 -1
  2. package/dest/browser/barretenberg/backend.js +13 -13
  3. package/dest/browser/barretenberg/index.d.ts +1 -1
  4. package/dest/browser/barretenberg/index.d.ts.map +1 -1
  5. package/dest/browser/barretenberg/index.js +2 -2
  6. package/dest/browser/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +1 -1
  7. package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg-threads.js +1 -1
  8. package/dest/browser/barretenberg_wasm/fetch_code/browser/barretenberg.js +1 -1
  9. package/dest/browser/bb_backends/wasm.d.ts +2 -9
  10. package/dest/browser/bb_backends/wasm.d.ts.map +1 -1
  11. package/dest/browser/bb_backends/wasm.js +3 -10
  12. package/dest/browser/bbapi_exception.d.ts +7 -0
  13. package/dest/browser/bbapi_exception.d.ts.map +1 -0
  14. package/dest/browser/bbapi_exception.js +14 -0
  15. package/dest/browser/cbind/generate.js +93 -1
  16. package/dest/browser/cbind/generated/api_types.d.ts +623 -377
  17. package/dest/browser/cbind/generated/api_types.d.ts.map +1 -1
  18. package/dest/browser/cbind/generated/api_types.js +778 -452
  19. package/dest/browser/cbind/generated/async.d.ts +15 -10
  20. package/dest/browser/cbind/generated/async.d.ts.map +1 -1
  21. package/dest/browser/cbind/generated/async.js +304 -96
  22. package/dest/browser/cbind/generated/curve_constants.d.ts +45 -0
  23. package/dest/browser/cbind/generated/curve_constants.d.ts.map +1 -0
  24. package/dest/browser/cbind/generated/curve_constants.js +45 -0
  25. package/dest/browser/cbind/generated/sync.d.ts +15 -10
  26. package/dest/browser/cbind/generated/sync.d.ts.map +1 -1
  27. package/dest/browser/cbind/generated/sync.js +299 -96
  28. package/dest/browser/cbind/schema_compiler.d.ts.map +1 -1
  29. package/dest/browser/cbind/schema_compiler.js +24 -4
  30. package/dest/browser/index.d.ts +3 -1
  31. package/dest/browser/index.d.ts.map +1 -1
  32. package/dest/browser/index.js +4 -2
  33. package/dest/browser/serialize/index.d.ts +0 -1
  34. package/dest/browser/serialize/index.d.ts.map +1 -1
  35. package/dest/browser/serialize/index.js +1 -2
  36. package/dest/browser/types/fields.d.ts +6 -26
  37. package/dest/browser/types/fields.d.ts.map +1 -1
  38. package/dest/browser/types/fields.js +15 -56
  39. package/dest/browser/types/point.d.ts +8 -6
  40. package/dest/browser/types/point.d.ts.map +1 -1
  41. package/dest/browser/types/point.js +12 -15
  42. package/dest/node/barretenberg/backend.js +13 -13
  43. package/dest/node/barretenberg/index.d.ts +1 -1
  44. package/dest/node/barretenberg/index.d.ts.map +1 -1
  45. package/dest/node/barretenberg/index.js +2 -2
  46. package/dest/node/barretenberg/poseidon.bench.test.js +3 -2
  47. package/dest/node/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
  48. package/dest/node/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +1 -1
  49. package/dest/node/bb_backends/wasm.d.ts +2 -9
  50. package/dest/node/bb_backends/wasm.d.ts.map +1 -1
  51. package/dest/node/bb_backends/wasm.js +3 -10
  52. package/dest/node/bbapi_exception.d.ts +7 -0
  53. package/dest/node/bbapi_exception.d.ts.map +1 -0
  54. package/dest/node/bbapi_exception.js +14 -0
  55. package/dest/node/cbind/generate.js +93 -1
  56. package/dest/node/cbind/generated/api_types.d.ts +623 -377
  57. package/dest/node/cbind/generated/api_types.d.ts.map +1 -1
  58. package/dest/node/cbind/generated/api_types.js +778 -452
  59. package/dest/node/cbind/generated/async.d.ts +15 -10
  60. package/dest/node/cbind/generated/async.d.ts.map +1 -1
  61. package/dest/node/cbind/generated/async.js +304 -96
  62. package/dest/node/cbind/generated/curve_constants.d.ts +45 -0
  63. package/dest/node/cbind/generated/curve_constants.d.ts.map +1 -0
  64. package/dest/node/cbind/generated/curve_constants.js +45 -0
  65. package/dest/node/cbind/generated/sync.d.ts +15 -10
  66. package/dest/node/cbind/generated/sync.d.ts.map +1 -1
  67. package/dest/node/cbind/generated/sync.js +299 -96
  68. package/dest/node/cbind/schema_compiler.d.ts.map +1 -1
  69. package/dest/node/cbind/schema_compiler.js +24 -4
  70. package/dest/node/index.d.ts +3 -1
  71. package/dest/node/index.d.ts.map +1 -1
  72. package/dest/node/index.js +4 -2
  73. package/dest/node/serialize/index.d.ts +0 -1
  74. package/dest/node/serialize/index.d.ts.map +1 -1
  75. package/dest/node/serialize/index.js +1 -2
  76. package/dest/node/types/fields.d.ts +6 -26
  77. package/dest/node/types/fields.d.ts.map +1 -1
  78. package/dest/node/types/fields.js +15 -56
  79. package/dest/node/types/point.d.ts +8 -6
  80. package/dest/node/types/point.d.ts.map +1 -1
  81. package/dest/node/types/point.js +12 -15
  82. package/dest/node-cjs/barretenberg/backend.js +12 -12
  83. package/dest/node-cjs/barretenberg/index.d.ts +1 -1
  84. package/dest/node-cjs/barretenberg/index.d.ts.map +1 -1
  85. package/dest/node-cjs/barretenberg/index.js +2 -2
  86. package/dest/node-cjs/barretenberg/poseidon.bench.test.js +5 -4
  87. package/dest/node-cjs/barretenberg_wasm/barretenberg-threads.wasm.gz +0 -0
  88. package/dest/node-cjs/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.js +1 -1
  89. package/dest/node-cjs/bb_backends/wasm.d.ts +2 -9
  90. package/dest/node-cjs/bb_backends/wasm.d.ts.map +1 -1
  91. package/dest/node-cjs/bb_backends/wasm.js +3 -10
  92. package/dest/node-cjs/bbapi_exception.d.ts +7 -0
  93. package/dest/node-cjs/bbapi_exception.d.ts.map +1 -0
  94. package/dest/node-cjs/bbapi_exception.js +18 -0
  95. package/dest/node-cjs/cbind/generate.js +93 -1
  96. package/dest/node-cjs/cbind/generated/api_types.d.ts +623 -377
  97. package/dest/node-cjs/cbind/generated/api_types.d.ts.map +1 -1
  98. package/dest/node-cjs/cbind/generated/api_types.js +848 -492
  99. package/dest/node-cjs/cbind/generated/async.d.ts +15 -10
  100. package/dest/node-cjs/cbind/generated/async.d.ts.map +1 -1
  101. package/dest/node-cjs/cbind/generated/async.js +303 -95
  102. package/dest/node-cjs/cbind/generated/curve_constants.d.ts +45 -0
  103. package/dest/node-cjs/cbind/generated/curve_constants.d.ts.map +1 -0
  104. package/dest/node-cjs/cbind/generated/curve_constants.js +48 -0
  105. package/dest/node-cjs/cbind/generated/sync.d.ts +15 -10
  106. package/dest/node-cjs/cbind/generated/sync.d.ts.map +1 -1
  107. package/dest/node-cjs/cbind/generated/sync.js +298 -95
  108. package/dest/node-cjs/cbind/schema_compiler.d.ts.map +1 -1
  109. package/dest/node-cjs/cbind/schema_compiler.js +24 -4
  110. package/dest/node-cjs/index.d.ts +3 -1
  111. package/dest/node-cjs/index.d.ts.map +1 -1
  112. package/dest/node-cjs/index.js +23 -8
  113. package/dest/node-cjs/serialize/index.d.ts +0 -1
  114. package/dest/node-cjs/serialize/index.d.ts.map +1 -1
  115. package/dest/node-cjs/serialize/index.js +1 -2
  116. package/dest/node-cjs/types/fields.d.ts +6 -26
  117. package/dest/node-cjs/types/fields.d.ts.map +1 -1
  118. package/dest/node-cjs/types/fields.js +15 -57
  119. package/dest/node-cjs/types/point.d.ts +8 -6
  120. package/dest/node-cjs/types/point.d.ts.map +1 -1
  121. package/dest/node-cjs/types/point.js +13 -16
  122. package/package.json +4 -3
  123. package/src/barretenberg/backend.ts +12 -12
  124. package/src/barretenberg/index.ts +1 -1
  125. package/src/barretenberg/poseidon.bench.test.ts +2 -1
  126. package/src/barretenberg_wasm/barretenberg_wasm_main/heap_allocator.ts +4 -4
  127. package/src/bb_backends/wasm.ts +2 -9
  128. package/src/bbapi_exception.ts +13 -0
  129. package/src/cbind/generate.ts +99 -0
  130. package/src/cbind/schema_compiler.ts +25 -3
  131. package/src/index.ts +28 -1
  132. package/src/serialize/index.ts +0 -1
  133. package/src/types/fields.ts +14 -63
  134. package/src/types/point.ts +13 -19
  135. package/dest/browser/serialize/buffer_reader.d.ts +0 -28
  136. package/dest/browser/serialize/buffer_reader.d.ts.map +0 -1
  137. package/dest/browser/serialize/buffer_reader.js +0 -66
  138. package/dest/node/serialize/buffer_reader.d.ts +0 -28
  139. package/dest/node/serialize/buffer_reader.d.ts.map +0 -1
  140. package/dest/node/serialize/buffer_reader.js +0 -66
  141. package/dest/node-cjs/serialize/buffer_reader.d.ts +0 -28
  142. package/dest/node-cjs/serialize/buffer_reader.d.ts.map +0 -1
  143. package/dest/node-cjs/serialize/buffer_reader.js +0 -70
  144. package/src/cbind/generated/api_types.ts +0 -3757
  145. package/src/cbind/generated/async.ts +0 -504
  146. package/src/cbind/generated/sync.ts +0 -455
  147. package/src/serialize/buffer_reader.ts +0 -85
@@ -1,6 +1,9 @@
1
+ export type Field2 = [Uint8Array, Uint8Array];
1
2
  export type Fq = Uint8Array;
2
3
  export type Fr = Uint8Array;
4
+ export type Secp256k1Fq = Uint8Array;
3
5
  export type Secp256k1Fr = Uint8Array;
6
+ export type Secp256r1Fq = Uint8Array;
4
7
  export type Secp256r1Fr = Uint8Array;
5
8
  export type Uint256T = Uint8Array;
6
9
  export interface AesDecrypt {
@@ -39,14 +42,6 @@ export interface AesEncryptResponse {
39
42
  interface MsgpackAesEncryptResponse {
40
43
  ciphertext: Uint8Array;
41
44
  }
42
- export interface AffineElement {
43
- x: Fr;
44
- y: Fr;
45
- }
46
- interface MsgpackAffineElement {
47
- x: Uint8Array;
48
- y: Uint8Array;
49
- }
50
45
  export interface Blake2s {
51
46
  data: Uint8Array;
52
47
  }
@@ -71,6 +66,20 @@ export interface Blake2sToFieldResponse {
71
66
  interface MsgpackBlake2sToFieldResponse {
72
67
  field: Uint8Array;
73
68
  }
69
+ export interface Bn254FqSqrt {
70
+ input: Fq;
71
+ }
72
+ interface MsgpackBn254FqSqrt {
73
+ input: Uint8Array;
74
+ }
75
+ export interface Bn254FqSqrtResponse {
76
+ isSquareRoot: boolean;
77
+ value: Fq;
78
+ }
79
+ interface MsgpackBn254FqSqrtResponse {
80
+ is_square_root: boolean;
81
+ value: Uint8Array;
82
+ }
74
83
  export interface Bn254FrSqrt {
75
84
  input: Fr;
76
85
  }
@@ -85,6 +94,194 @@ interface MsgpackBn254FrSqrtResponse {
85
94
  is_square_root: boolean;
86
95
  value: Uint8Array;
87
96
  }
97
+ export interface Bn254G1FromCompressed {
98
+ compressed: Uint8Array;
99
+ }
100
+ interface MsgpackBn254G1FromCompressed {
101
+ compressed: Uint8Array;
102
+ }
103
+ export interface Bn254G1FromCompressedResponse {
104
+ point: Bn254G1Point;
105
+ }
106
+ interface MsgpackBn254G1FromCompressedResponse {
107
+ point: MsgpackBn254G1Point;
108
+ }
109
+ export interface Bn254G1IsOnCurve {
110
+ point: Bn254G1Point;
111
+ }
112
+ interface MsgpackBn254G1IsOnCurve {
113
+ point: MsgpackBn254G1Point;
114
+ }
115
+ export interface Bn254G1IsOnCurveResponse {
116
+ isOnCurve: boolean;
117
+ }
118
+ interface MsgpackBn254G1IsOnCurveResponse {
119
+ is_on_curve: boolean;
120
+ }
121
+ export interface Bn254G1Mul {
122
+ point: Bn254G1Point;
123
+ scalar: Fr;
124
+ }
125
+ interface MsgpackBn254G1Mul {
126
+ point: MsgpackBn254G1Point;
127
+ scalar: Uint8Array;
128
+ }
129
+ export interface Bn254G1MulResponse {
130
+ point: Bn254G1Point;
131
+ }
132
+ interface MsgpackBn254G1MulResponse {
133
+ point: MsgpackBn254G1Point;
134
+ }
135
+ export interface Bn254G1Point {
136
+ x: Fq;
137
+ y: Fq;
138
+ }
139
+ interface MsgpackBn254G1Point {
140
+ x: Uint8Array;
141
+ y: Uint8Array;
142
+ }
143
+ export interface Bn254G2Mul {
144
+ point: Bn254G2Point;
145
+ scalar: Fr;
146
+ }
147
+ interface MsgpackBn254G2Mul {
148
+ point: MsgpackBn254G2Point;
149
+ scalar: Uint8Array;
150
+ }
151
+ export interface Bn254G2MulResponse {
152
+ point: Bn254G2Point;
153
+ }
154
+ interface MsgpackBn254G2MulResponse {
155
+ point: MsgpackBn254G2Point;
156
+ }
157
+ export interface Bn254G2Point {
158
+ x: Field2;
159
+ y: Field2;
160
+ }
161
+ interface MsgpackBn254G2Point {
162
+ x: [Uint8Array, Uint8Array];
163
+ y: [Uint8Array, Uint8Array];
164
+ }
165
+ export interface ChonkAccumulate {
166
+ witness: Uint8Array;
167
+ }
168
+ interface MsgpackChonkAccumulate {
169
+ witness: Uint8Array;
170
+ }
171
+ export interface ChonkAccumulateResponse {
172
+ }
173
+ interface MsgpackChonkAccumulateResponse {
174
+ }
175
+ export interface ChonkCheckPrecomputedVk {
176
+ circuit: CircuitInput;
177
+ }
178
+ interface MsgpackChonkCheckPrecomputedVk {
179
+ circuit: MsgpackCircuitInput;
180
+ }
181
+ export interface ChonkCheckPrecomputedVkResponse {
182
+ valid: boolean;
183
+ actualVk: Uint8Array;
184
+ }
185
+ interface MsgpackChonkCheckPrecomputedVkResponse {
186
+ valid: boolean;
187
+ actual_vk: Uint8Array;
188
+ }
189
+ export interface ChonkComputeIvcVk {
190
+ circuit: CircuitInputNoVK;
191
+ }
192
+ interface MsgpackChonkComputeIvcVk {
193
+ circuit: MsgpackCircuitInputNoVK;
194
+ }
195
+ export interface ChonkComputeIvcVkResponse {
196
+ bytes: Uint8Array;
197
+ }
198
+ interface MsgpackChonkComputeIvcVkResponse {
199
+ bytes: Uint8Array;
200
+ }
201
+ export interface ChonkComputeStandaloneVk {
202
+ circuit: CircuitInputNoVK;
203
+ }
204
+ interface MsgpackChonkComputeStandaloneVk {
205
+ circuit: MsgpackCircuitInputNoVK;
206
+ }
207
+ export interface ChonkComputeStandaloneVkResponse {
208
+ bytes: Uint8Array;
209
+ fields: Fr[];
210
+ }
211
+ interface MsgpackChonkComputeStandaloneVkResponse {
212
+ bytes: Uint8Array;
213
+ fields: Uint8Array[];
214
+ }
215
+ export interface ChonkLoad {
216
+ circuit: CircuitInput;
217
+ }
218
+ interface MsgpackChonkLoad {
219
+ circuit: MsgpackCircuitInput;
220
+ }
221
+ export interface ChonkLoadResponse {
222
+ }
223
+ interface MsgpackChonkLoadResponse {
224
+ }
225
+ export interface ChonkProof {
226
+ megaProof: Fr[];
227
+ goblinProof: GoblinProof;
228
+ }
229
+ interface MsgpackChonkProof {
230
+ mega_proof: Uint8Array[];
231
+ goblin_proof: MsgpackGoblinProof;
232
+ }
233
+ export interface ChonkProve {
234
+ }
235
+ interface MsgpackChonkProve {
236
+ }
237
+ export interface ChonkProveResponse {
238
+ proof: ChonkProof;
239
+ }
240
+ interface MsgpackChonkProveResponse {
241
+ proof: MsgpackChonkProof;
242
+ }
243
+ export interface ChonkStart {
244
+ numCircuits: number;
245
+ }
246
+ interface MsgpackChonkStart {
247
+ num_circuits: number;
248
+ }
249
+ export interface ChonkStartResponse {
250
+ }
251
+ interface MsgpackChonkStartResponse {
252
+ }
253
+ export interface ChonkStats {
254
+ circuit: CircuitInputNoVK;
255
+ includeGatesPerOpcode: boolean;
256
+ }
257
+ interface MsgpackChonkStats {
258
+ circuit: MsgpackCircuitInputNoVK;
259
+ include_gates_per_opcode: boolean;
260
+ }
261
+ export interface ChonkStatsResponse {
262
+ acirOpcodes: number;
263
+ circuitSize: number;
264
+ gatesPerOpcode: number[];
265
+ }
266
+ interface MsgpackChonkStatsResponse {
267
+ acir_opcodes: number;
268
+ circuit_size: number;
269
+ gates_per_opcode: number[];
270
+ }
271
+ export interface ChonkVerify {
272
+ proof: ChonkProof;
273
+ vk: Uint8Array;
274
+ }
275
+ interface MsgpackChonkVerify {
276
+ proof: MsgpackChonkProof;
277
+ vk: Uint8Array;
278
+ }
279
+ export interface ChonkVerifyResponse {
280
+ valid: boolean;
281
+ }
282
+ interface MsgpackChonkVerifyResponse {
283
+ valid: boolean;
284
+ }
88
285
  export interface CircuitComputeVk {
89
286
  circuit: CircuitInputNoVK;
90
287
  settings: ProofSystemSettings;
@@ -195,126 +392,6 @@ export interface CircuitWriteSolidityVerifierResponse {
195
392
  interface MsgpackCircuitWriteSolidityVerifierResponse {
196
393
  solidity_code: string;
197
394
  }
198
- export interface ClientIvcAccumulate {
199
- witness: Uint8Array;
200
- }
201
- interface MsgpackClientIvcAccumulate {
202
- witness: Uint8Array;
203
- }
204
- export interface ClientIvcAccumulateResponse {
205
- }
206
- interface MsgpackClientIvcAccumulateResponse {
207
- }
208
- export interface ClientIvcCheckPrecomputedVk {
209
- circuit: CircuitInput;
210
- }
211
- interface MsgpackClientIvcCheckPrecomputedVk {
212
- circuit: MsgpackCircuitInput;
213
- }
214
- export interface ClientIvcCheckPrecomputedVkResponse {
215
- valid: boolean;
216
- actualVk: Uint8Array;
217
- }
218
- interface MsgpackClientIvcCheckPrecomputedVkResponse {
219
- valid: boolean;
220
- actual_vk: Uint8Array;
221
- }
222
- export interface ClientIvcComputeIvcVk {
223
- circuit: CircuitInputNoVK;
224
- }
225
- interface MsgpackClientIvcComputeIvcVk {
226
- circuit: MsgpackCircuitInputNoVK;
227
- }
228
- export interface ClientIvcComputeIvcVkResponse {
229
- bytes: Uint8Array;
230
- }
231
- interface MsgpackClientIvcComputeIvcVkResponse {
232
- bytes: Uint8Array;
233
- }
234
- export interface ClientIvcComputeStandaloneVk {
235
- circuit: CircuitInputNoVK;
236
- }
237
- interface MsgpackClientIvcComputeStandaloneVk {
238
- circuit: MsgpackCircuitInputNoVK;
239
- }
240
- export interface ClientIvcComputeStandaloneVkResponse {
241
- bytes: Uint8Array;
242
- fields: Fr[];
243
- }
244
- interface MsgpackClientIvcComputeStandaloneVkResponse {
245
- bytes: Uint8Array;
246
- fields: Uint8Array[];
247
- }
248
- export interface ClientIvcLoad {
249
- circuit: CircuitInput;
250
- }
251
- interface MsgpackClientIvcLoad {
252
- circuit: MsgpackCircuitInput;
253
- }
254
- export interface ClientIvcLoadResponse {
255
- }
256
- interface MsgpackClientIvcLoadResponse {
257
- }
258
- export interface ClientIVCProof {
259
- megaProof: Fr[];
260
- goblinProof: GoblinProof;
261
- }
262
- interface MsgpackClientIVCProof {
263
- mega_proof: Uint8Array[];
264
- goblin_proof: MsgpackGoblinProof;
265
- }
266
- export interface ClientIvcProve {
267
- }
268
- interface MsgpackClientIvcProve {
269
- }
270
- export interface ClientIvcProveResponse {
271
- proof: ClientIVCProof;
272
- }
273
- interface MsgpackClientIvcProveResponse {
274
- proof: MsgpackClientIVCProof;
275
- }
276
- export interface ClientIvcStart {
277
- numCircuits: number;
278
- }
279
- interface MsgpackClientIvcStart {
280
- num_circuits: number;
281
- }
282
- export interface ClientIvcStartResponse {
283
- }
284
- interface MsgpackClientIvcStartResponse {
285
- }
286
- export interface ClientIvcStats {
287
- circuit: CircuitInputNoVK;
288
- includeGatesPerOpcode: boolean;
289
- }
290
- interface MsgpackClientIvcStats {
291
- circuit: MsgpackCircuitInputNoVK;
292
- include_gates_per_opcode: boolean;
293
- }
294
- export interface ClientIvcStatsResponse {
295
- acirOpcodes: number;
296
- circuitSize: number;
297
- gatesPerOpcode: number[];
298
- }
299
- interface MsgpackClientIvcStatsResponse {
300
- acir_opcodes: number;
301
- circuit_size: number;
302
- gates_per_opcode: number[];
303
- }
304
- export interface ClientIvcVerify {
305
- proof: ClientIVCProof;
306
- vk: Uint8Array;
307
- }
308
- interface MsgpackClientIvcVerify {
309
- proof: MsgpackClientIVCProof;
310
- vk: Uint8Array;
311
- }
312
- export interface ClientIvcVerifyResponse {
313
- valid: boolean;
314
- }
315
- interface MsgpackClientIvcVerifyResponse {
316
- valid: boolean;
317
- }
318
395
  export interface ECCVMProof {
319
396
  preIpaProof: Fr[];
320
397
  ipaProof: Fr[];
@@ -330,10 +407,10 @@ interface MsgpackEcdsaSecp256k1ComputePublicKey {
330
407
  private_key: Uint8Array;
331
408
  }
332
409
  export interface EcdsaSecp256k1ComputePublicKeyResponse {
333
- publicKey: AffineElement;
410
+ publicKey: Secp256k1Point;
334
411
  }
335
412
  interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
336
- public_key: MsgpackAffineElement;
413
+ public_key: MsgpackSecp256k1Point;
337
414
  }
338
415
  export interface EcdsaSecp256k1ConstructSignature {
339
416
  message: Uint8Array;
@@ -366,21 +443,21 @@ interface MsgpackEcdsaSecp256k1RecoverPublicKey {
366
443
  v: number;
367
444
  }
368
445
  export interface EcdsaSecp256k1RecoverPublicKeyResponse {
369
- publicKey: AffineElement;
446
+ publicKey: Secp256k1Point;
370
447
  }
371
448
  interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
372
- public_key: MsgpackAffineElement;
449
+ public_key: MsgpackSecp256k1Point;
373
450
  }
374
451
  export interface EcdsaSecp256k1VerifySignature {
375
452
  message: Uint8Array;
376
- publicKey: AffineElement;
453
+ publicKey: Secp256k1Point;
377
454
  r: Uint8Array;
378
455
  s: Uint8Array;
379
456
  v: number;
380
457
  }
381
458
  interface MsgpackEcdsaSecp256k1VerifySignature {
382
459
  message: Uint8Array;
383
- public_key: MsgpackAffineElement;
460
+ public_key: MsgpackSecp256k1Point;
384
461
  r: Uint8Array;
385
462
  s: Uint8Array;
386
463
  v: number;
@@ -398,10 +475,10 @@ interface MsgpackEcdsaSecp256r1ComputePublicKey {
398
475
  private_key: Uint8Array;
399
476
  }
400
477
  export interface EcdsaSecp256r1ComputePublicKeyResponse {
401
- publicKey: AffineElement;
478
+ publicKey: Secp256r1Point;
402
479
  }
403
480
  interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
404
- public_key: MsgpackAffineElement;
481
+ public_key: MsgpackSecp256r1Point;
405
482
  }
406
483
  export interface EcdsaSecp256r1ConstructSignature {
407
484
  message: Uint8Array;
@@ -434,21 +511,21 @@ interface MsgpackEcdsaSecp256r1RecoverPublicKey {
434
511
  v: number;
435
512
  }
436
513
  export interface EcdsaSecp256r1RecoverPublicKeyResponse {
437
- publicKey: AffineElement;
514
+ publicKey: Secp256r1Point;
438
515
  }
439
516
  interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
440
- public_key: MsgpackAffineElement;
517
+ public_key: MsgpackSecp256r1Point;
441
518
  }
442
519
  export interface EcdsaSecp256r1VerifySignature {
443
520
  message: Uint8Array;
444
- publicKey: AffineElement;
521
+ publicKey: Secp256r1Point;
445
522
  r: Uint8Array;
446
523
  s: Uint8Array;
447
524
  v: number;
448
525
  }
449
526
  interface MsgpackEcdsaSecp256r1VerifySignature {
450
527
  message: Uint8Array;
451
- public_key: MsgpackAffineElement;
528
+ public_key: MsgpackSecp256r1Point;
452
529
  r: Uint8Array;
453
530
  s: Uint8Array;
454
531
  v: number;
@@ -459,6 +536,12 @@ export interface EcdsaSecp256r1VerifySignatureResponse {
459
536
  interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
460
537
  verified: boolean;
461
538
  }
539
+ export interface ErrorResponse {
540
+ message: string;
541
+ }
542
+ interface MsgpackErrorResponse {
543
+ message: string;
544
+ }
462
545
  export interface GoblinProof {
463
546
  mergeProof: Fr[];
464
547
  eccvmProof: ECCVMProof;
@@ -470,32 +553,32 @@ interface MsgpackGoblinProof {
470
553
  translator_proof: Uint8Array[];
471
554
  }
472
555
  export interface GrumpkinAdd {
473
- pointA: AffineElement;
474
- pointB: AffineElement;
556
+ pointA: GrumpkinPoint;
557
+ pointB: GrumpkinPoint;
475
558
  }
476
559
  interface MsgpackGrumpkinAdd {
477
- point_a: MsgpackAffineElement;
478
- point_b: MsgpackAffineElement;
560
+ point_a: MsgpackGrumpkinPoint;
561
+ point_b: MsgpackGrumpkinPoint;
479
562
  }
480
563
  export interface GrumpkinAddResponse {
481
- point: AffineElement;
564
+ point: GrumpkinPoint;
482
565
  }
483
566
  interface MsgpackGrumpkinAddResponse {
484
- point: MsgpackAffineElement;
567
+ point: MsgpackGrumpkinPoint;
485
568
  }
486
569
  export interface GrumpkinBatchMul {
487
- points: AffineElement[];
570
+ points: GrumpkinPoint[];
488
571
  scalar: Fq;
489
572
  }
490
573
  interface MsgpackGrumpkinBatchMul {
491
- points: MsgpackAffineElement[];
574
+ points: MsgpackGrumpkinPoint[];
492
575
  scalar: Uint8Array;
493
576
  }
494
577
  export interface GrumpkinBatchMulResponse {
495
- points: AffineElement[];
578
+ points: GrumpkinPoint[];
496
579
  }
497
580
  interface MsgpackGrumpkinBatchMulResponse {
498
- points: MsgpackAffineElement[];
581
+ points: MsgpackGrumpkinPoint[];
499
582
  }
500
583
  export interface GrumpkinGetRandomFr {
501
584
  dummy: number;
@@ -510,18 +593,26 @@ interface MsgpackGrumpkinGetRandomFrResponse {
510
593
  value: Uint8Array;
511
594
  }
512
595
  export interface GrumpkinMul {
513
- point: AffineElement;
596
+ point: GrumpkinPoint;
514
597
  scalar: Fq;
515
598
  }
516
599
  interface MsgpackGrumpkinMul {
517
- point: MsgpackAffineElement;
600
+ point: MsgpackGrumpkinPoint;
518
601
  scalar: Uint8Array;
519
602
  }
520
603
  export interface GrumpkinMulResponse {
521
- point: AffineElement;
604
+ point: GrumpkinPoint;
522
605
  }
523
606
  interface MsgpackGrumpkinMulResponse {
524
- point: MsgpackAffineElement;
607
+ point: MsgpackGrumpkinPoint;
608
+ }
609
+ export interface GrumpkinPoint {
610
+ x: Fr;
611
+ y: Fr;
612
+ }
613
+ interface MsgpackGrumpkinPoint {
614
+ x: Uint8Array;
615
+ y: Uint8Array;
525
616
  }
526
617
  export interface GrumpkinReduce512 {
527
618
  input: Uint8Array;
@@ -556,10 +647,10 @@ interface MsgpackPedersenCommit {
556
647
  hash_index: number;
557
648
  }
558
649
  export interface PedersenCommitResponse {
559
- point: AffineElement;
650
+ point: GrumpkinPoint;
560
651
  }
561
652
  interface MsgpackPedersenCommitResponse {
562
- point: MsgpackAffineElement;
653
+ point: MsgpackGrumpkinPoint;
563
654
  }
564
655
  export interface PedersenHash {
565
656
  inputs: Fr[];
@@ -644,10 +735,10 @@ interface MsgpackSchnorrComputePublicKey {
644
735
  private_key: Uint8Array;
645
736
  }
646
737
  export interface SchnorrComputePublicKeyResponse {
647
- publicKey: AffineElement;
738
+ publicKey: GrumpkinPoint;
648
739
  }
649
740
  interface MsgpackSchnorrComputePublicKeyResponse {
650
- public_key: MsgpackAffineElement;
741
+ public_key: MsgpackGrumpkinPoint;
651
742
  }
652
743
  export interface SchnorrConstructSignature {
653
744
  message: Uint8Array;
@@ -667,13 +758,13 @@ interface MsgpackSchnorrConstructSignatureResponse {
667
758
  }
668
759
  export interface SchnorrVerifySignature {
669
760
  message: Uint8Array;
670
- publicKey: AffineElement;
761
+ publicKey: GrumpkinPoint;
671
762
  s: Uint8Array;
672
763
  e: Uint8Array;
673
764
  }
674
765
  interface MsgpackSchnorrVerifySignature {
675
766
  message: Uint8Array;
676
- public_key: MsgpackAffineElement;
767
+ public_key: MsgpackGrumpkinPoint;
677
768
  s: Uint8Array;
678
769
  e: Uint8Array;
679
770
  }
@@ -696,18 +787,26 @@ interface MsgpackSecp256k1GetRandomFrResponse {
696
787
  value: Uint8Array;
697
788
  }
698
789
  export interface Secp256k1Mul {
699
- point: AffineElement;
790
+ point: Secp256k1Point;
700
791
  scalar: Secp256k1Fr;
701
792
  }
702
793
  interface MsgpackSecp256k1Mul {
703
- point: MsgpackAffineElement;
794
+ point: MsgpackSecp256k1Point;
704
795
  scalar: Uint8Array;
705
796
  }
706
797
  export interface Secp256k1MulResponse {
707
- point: AffineElement;
798
+ point: Secp256k1Point;
708
799
  }
709
800
  interface MsgpackSecp256k1MulResponse {
710
- point: MsgpackAffineElement;
801
+ point: MsgpackSecp256k1Point;
802
+ }
803
+ export interface Secp256k1Point {
804
+ x: Secp256k1Fq;
805
+ y: Secp256k1Fq;
806
+ }
807
+ interface MsgpackSecp256k1Point {
808
+ x: Uint8Array;
809
+ y: Uint8Array;
711
810
  }
712
811
  export interface Secp256k1Reduce512 {
713
812
  input: Uint8Array;
@@ -721,6 +820,14 @@ export interface Secp256k1Reduce512Response {
721
820
  interface MsgpackSecp256k1Reduce512Response {
722
821
  value: Uint8Array;
723
822
  }
823
+ export interface Secp256r1Point {
824
+ x: Secp256r1Fq;
825
+ y: Secp256r1Fq;
826
+ }
827
+ interface MsgpackSecp256r1Point {
828
+ x: Uint8Array;
829
+ y: Uint8Array;
830
+ }
724
831
  export interface Shutdown {
725
832
  }
726
833
  interface MsgpackShutdown {
@@ -807,14 +914,6 @@ export interface AesEncryptResponse {
807
914
  interface MsgpackAesEncryptResponse {
808
915
  ciphertext: Uint8Array;
809
916
  }
810
- export interface AffineElement {
811
- x: Fr;
812
- y: Fr;
813
- }
814
- interface MsgpackAffineElement {
815
- x: Uint8Array;
816
- y: Uint8Array;
817
- }
818
917
  export interface Blake2s {
819
918
  data: Uint8Array;
820
919
  }
@@ -839,6 +938,20 @@ export interface Blake2sToFieldResponse {
839
938
  interface MsgpackBlake2sToFieldResponse {
840
939
  field: Uint8Array;
841
940
  }
941
+ export interface Bn254FqSqrt {
942
+ input: Fq;
943
+ }
944
+ interface MsgpackBn254FqSqrt {
945
+ input: Uint8Array;
946
+ }
947
+ export interface Bn254FqSqrtResponse {
948
+ isSquareRoot: boolean;
949
+ value: Fq;
950
+ }
951
+ interface MsgpackBn254FqSqrtResponse {
952
+ is_square_root: boolean;
953
+ value: Uint8Array;
954
+ }
842
955
  export interface Bn254FrSqrt {
843
956
  input: Fr;
844
957
  }
@@ -853,6 +966,194 @@ interface MsgpackBn254FrSqrtResponse {
853
966
  is_square_root: boolean;
854
967
  value: Uint8Array;
855
968
  }
969
+ export interface Bn254G1FromCompressed {
970
+ compressed: Uint8Array;
971
+ }
972
+ interface MsgpackBn254G1FromCompressed {
973
+ compressed: Uint8Array;
974
+ }
975
+ export interface Bn254G1FromCompressedResponse {
976
+ point: Bn254G1Point;
977
+ }
978
+ interface MsgpackBn254G1FromCompressedResponse {
979
+ point: MsgpackBn254G1Point;
980
+ }
981
+ export interface Bn254G1IsOnCurve {
982
+ point: Bn254G1Point;
983
+ }
984
+ interface MsgpackBn254G1IsOnCurve {
985
+ point: MsgpackBn254G1Point;
986
+ }
987
+ export interface Bn254G1IsOnCurveResponse {
988
+ isOnCurve: boolean;
989
+ }
990
+ interface MsgpackBn254G1IsOnCurveResponse {
991
+ is_on_curve: boolean;
992
+ }
993
+ export interface Bn254G1Mul {
994
+ point: Bn254G1Point;
995
+ scalar: Fr;
996
+ }
997
+ interface MsgpackBn254G1Mul {
998
+ point: MsgpackBn254G1Point;
999
+ scalar: Uint8Array;
1000
+ }
1001
+ export interface Bn254G1MulResponse {
1002
+ point: Bn254G1Point;
1003
+ }
1004
+ interface MsgpackBn254G1MulResponse {
1005
+ point: MsgpackBn254G1Point;
1006
+ }
1007
+ export interface Bn254G1Point {
1008
+ x: Fq;
1009
+ y: Fq;
1010
+ }
1011
+ interface MsgpackBn254G1Point {
1012
+ x: Uint8Array;
1013
+ y: Uint8Array;
1014
+ }
1015
+ export interface Bn254G2Mul {
1016
+ point: Bn254G2Point;
1017
+ scalar: Fr;
1018
+ }
1019
+ interface MsgpackBn254G2Mul {
1020
+ point: MsgpackBn254G2Point;
1021
+ scalar: Uint8Array;
1022
+ }
1023
+ export interface Bn254G2MulResponse {
1024
+ point: Bn254G2Point;
1025
+ }
1026
+ interface MsgpackBn254G2MulResponse {
1027
+ point: MsgpackBn254G2Point;
1028
+ }
1029
+ export interface Bn254G2Point {
1030
+ x: Field2;
1031
+ y: Field2;
1032
+ }
1033
+ interface MsgpackBn254G2Point {
1034
+ x: [Uint8Array, Uint8Array];
1035
+ y: [Uint8Array, Uint8Array];
1036
+ }
1037
+ export interface ChonkAccumulate {
1038
+ witness: Uint8Array;
1039
+ }
1040
+ interface MsgpackChonkAccumulate {
1041
+ witness: Uint8Array;
1042
+ }
1043
+ export interface ChonkAccumulateResponse {
1044
+ }
1045
+ interface MsgpackChonkAccumulateResponse {
1046
+ }
1047
+ export interface ChonkCheckPrecomputedVk {
1048
+ circuit: CircuitInput;
1049
+ }
1050
+ interface MsgpackChonkCheckPrecomputedVk {
1051
+ circuit: MsgpackCircuitInput;
1052
+ }
1053
+ export interface ChonkCheckPrecomputedVkResponse {
1054
+ valid: boolean;
1055
+ actualVk: Uint8Array;
1056
+ }
1057
+ interface MsgpackChonkCheckPrecomputedVkResponse {
1058
+ valid: boolean;
1059
+ actual_vk: Uint8Array;
1060
+ }
1061
+ export interface ChonkComputeIvcVk {
1062
+ circuit: CircuitInputNoVK;
1063
+ }
1064
+ interface MsgpackChonkComputeIvcVk {
1065
+ circuit: MsgpackCircuitInputNoVK;
1066
+ }
1067
+ export interface ChonkComputeIvcVkResponse {
1068
+ bytes: Uint8Array;
1069
+ }
1070
+ interface MsgpackChonkComputeIvcVkResponse {
1071
+ bytes: Uint8Array;
1072
+ }
1073
+ export interface ChonkComputeStandaloneVk {
1074
+ circuit: CircuitInputNoVK;
1075
+ }
1076
+ interface MsgpackChonkComputeStandaloneVk {
1077
+ circuit: MsgpackCircuitInputNoVK;
1078
+ }
1079
+ export interface ChonkComputeStandaloneVkResponse {
1080
+ bytes: Uint8Array;
1081
+ fields: Fr[];
1082
+ }
1083
+ interface MsgpackChonkComputeStandaloneVkResponse {
1084
+ bytes: Uint8Array;
1085
+ fields: Uint8Array[];
1086
+ }
1087
+ export interface ChonkLoad {
1088
+ circuit: CircuitInput;
1089
+ }
1090
+ interface MsgpackChonkLoad {
1091
+ circuit: MsgpackCircuitInput;
1092
+ }
1093
+ export interface ChonkLoadResponse {
1094
+ }
1095
+ interface MsgpackChonkLoadResponse {
1096
+ }
1097
+ export interface ChonkProof {
1098
+ megaProof: Fr[];
1099
+ goblinProof: GoblinProof;
1100
+ }
1101
+ interface MsgpackChonkProof {
1102
+ mega_proof: Uint8Array[];
1103
+ goblin_proof: MsgpackGoblinProof;
1104
+ }
1105
+ export interface ChonkProve {
1106
+ }
1107
+ interface MsgpackChonkProve {
1108
+ }
1109
+ export interface ChonkProveResponse {
1110
+ proof: ChonkProof;
1111
+ }
1112
+ interface MsgpackChonkProveResponse {
1113
+ proof: MsgpackChonkProof;
1114
+ }
1115
+ export interface ChonkStart {
1116
+ numCircuits: number;
1117
+ }
1118
+ interface MsgpackChonkStart {
1119
+ num_circuits: number;
1120
+ }
1121
+ export interface ChonkStartResponse {
1122
+ }
1123
+ interface MsgpackChonkStartResponse {
1124
+ }
1125
+ export interface ChonkStats {
1126
+ circuit: CircuitInputNoVK;
1127
+ includeGatesPerOpcode: boolean;
1128
+ }
1129
+ interface MsgpackChonkStats {
1130
+ circuit: MsgpackCircuitInputNoVK;
1131
+ include_gates_per_opcode: boolean;
1132
+ }
1133
+ export interface ChonkStatsResponse {
1134
+ acirOpcodes: number;
1135
+ circuitSize: number;
1136
+ gatesPerOpcode: number[];
1137
+ }
1138
+ interface MsgpackChonkStatsResponse {
1139
+ acir_opcodes: number;
1140
+ circuit_size: number;
1141
+ gates_per_opcode: number[];
1142
+ }
1143
+ export interface ChonkVerify {
1144
+ proof: ChonkProof;
1145
+ vk: Uint8Array;
1146
+ }
1147
+ interface MsgpackChonkVerify {
1148
+ proof: MsgpackChonkProof;
1149
+ vk: Uint8Array;
1150
+ }
1151
+ export interface ChonkVerifyResponse {
1152
+ valid: boolean;
1153
+ }
1154
+ interface MsgpackChonkVerifyResponse {
1155
+ valid: boolean;
1156
+ }
856
1157
  export interface CircuitComputeVk {
857
1158
  circuit: CircuitInputNoVK;
858
1159
  settings: ProofSystemSettings;
@@ -963,126 +1264,6 @@ export interface CircuitWriteSolidityVerifierResponse {
963
1264
  interface MsgpackCircuitWriteSolidityVerifierResponse {
964
1265
  solidity_code: string;
965
1266
  }
966
- export interface ClientIvcAccumulate {
967
- witness: Uint8Array;
968
- }
969
- interface MsgpackClientIvcAccumulate {
970
- witness: Uint8Array;
971
- }
972
- export interface ClientIvcAccumulateResponse {
973
- }
974
- interface MsgpackClientIvcAccumulateResponse {
975
- }
976
- export interface ClientIvcCheckPrecomputedVk {
977
- circuit: CircuitInput;
978
- }
979
- interface MsgpackClientIvcCheckPrecomputedVk {
980
- circuit: MsgpackCircuitInput;
981
- }
982
- export interface ClientIvcCheckPrecomputedVkResponse {
983
- valid: boolean;
984
- actualVk: Uint8Array;
985
- }
986
- interface MsgpackClientIvcCheckPrecomputedVkResponse {
987
- valid: boolean;
988
- actual_vk: Uint8Array;
989
- }
990
- export interface ClientIvcComputeIvcVk {
991
- circuit: CircuitInputNoVK;
992
- }
993
- interface MsgpackClientIvcComputeIvcVk {
994
- circuit: MsgpackCircuitInputNoVK;
995
- }
996
- export interface ClientIvcComputeIvcVkResponse {
997
- bytes: Uint8Array;
998
- }
999
- interface MsgpackClientIvcComputeIvcVkResponse {
1000
- bytes: Uint8Array;
1001
- }
1002
- export interface ClientIvcComputeStandaloneVk {
1003
- circuit: CircuitInputNoVK;
1004
- }
1005
- interface MsgpackClientIvcComputeStandaloneVk {
1006
- circuit: MsgpackCircuitInputNoVK;
1007
- }
1008
- export interface ClientIvcComputeStandaloneVkResponse {
1009
- bytes: Uint8Array;
1010
- fields: Fr[];
1011
- }
1012
- interface MsgpackClientIvcComputeStandaloneVkResponse {
1013
- bytes: Uint8Array;
1014
- fields: Uint8Array[];
1015
- }
1016
- export interface ClientIvcLoad {
1017
- circuit: CircuitInput;
1018
- }
1019
- interface MsgpackClientIvcLoad {
1020
- circuit: MsgpackCircuitInput;
1021
- }
1022
- export interface ClientIvcLoadResponse {
1023
- }
1024
- interface MsgpackClientIvcLoadResponse {
1025
- }
1026
- export interface ClientIVCProof {
1027
- megaProof: Fr[];
1028
- goblinProof: GoblinProof;
1029
- }
1030
- interface MsgpackClientIVCProof {
1031
- mega_proof: Uint8Array[];
1032
- goblin_proof: MsgpackGoblinProof;
1033
- }
1034
- export interface ClientIvcProve {
1035
- }
1036
- interface MsgpackClientIvcProve {
1037
- }
1038
- export interface ClientIvcProveResponse {
1039
- proof: ClientIVCProof;
1040
- }
1041
- interface MsgpackClientIvcProveResponse {
1042
- proof: MsgpackClientIVCProof;
1043
- }
1044
- export interface ClientIvcStart {
1045
- numCircuits: number;
1046
- }
1047
- interface MsgpackClientIvcStart {
1048
- num_circuits: number;
1049
- }
1050
- export interface ClientIvcStartResponse {
1051
- }
1052
- interface MsgpackClientIvcStartResponse {
1053
- }
1054
- export interface ClientIvcStats {
1055
- circuit: CircuitInputNoVK;
1056
- includeGatesPerOpcode: boolean;
1057
- }
1058
- interface MsgpackClientIvcStats {
1059
- circuit: MsgpackCircuitInputNoVK;
1060
- include_gates_per_opcode: boolean;
1061
- }
1062
- export interface ClientIvcStatsResponse {
1063
- acirOpcodes: number;
1064
- circuitSize: number;
1065
- gatesPerOpcode: number[];
1066
- }
1067
- interface MsgpackClientIvcStatsResponse {
1068
- acir_opcodes: number;
1069
- circuit_size: number;
1070
- gates_per_opcode: number[];
1071
- }
1072
- export interface ClientIvcVerify {
1073
- proof: ClientIVCProof;
1074
- vk: Uint8Array;
1075
- }
1076
- interface MsgpackClientIvcVerify {
1077
- proof: MsgpackClientIVCProof;
1078
- vk: Uint8Array;
1079
- }
1080
- export interface ClientIvcVerifyResponse {
1081
- valid: boolean;
1082
- }
1083
- interface MsgpackClientIvcVerifyResponse {
1084
- valid: boolean;
1085
- }
1086
1267
  export interface ECCVMProof {
1087
1268
  preIpaProof: Fr[];
1088
1269
  ipaProof: Fr[];
@@ -1098,10 +1279,10 @@ interface MsgpackEcdsaSecp256k1ComputePublicKey {
1098
1279
  private_key: Uint8Array;
1099
1280
  }
1100
1281
  export interface EcdsaSecp256k1ComputePublicKeyResponse {
1101
- publicKey: AffineElement;
1282
+ publicKey: Secp256k1Point;
1102
1283
  }
1103
1284
  interface MsgpackEcdsaSecp256k1ComputePublicKeyResponse {
1104
- public_key: MsgpackAffineElement;
1285
+ public_key: MsgpackSecp256k1Point;
1105
1286
  }
1106
1287
  export interface EcdsaSecp256k1ConstructSignature {
1107
1288
  message: Uint8Array;
@@ -1134,21 +1315,21 @@ interface MsgpackEcdsaSecp256k1RecoverPublicKey {
1134
1315
  v: number;
1135
1316
  }
1136
1317
  export interface EcdsaSecp256k1RecoverPublicKeyResponse {
1137
- publicKey: AffineElement;
1318
+ publicKey: Secp256k1Point;
1138
1319
  }
1139
1320
  interface MsgpackEcdsaSecp256k1RecoverPublicKeyResponse {
1140
- public_key: MsgpackAffineElement;
1321
+ public_key: MsgpackSecp256k1Point;
1141
1322
  }
1142
1323
  export interface EcdsaSecp256k1VerifySignature {
1143
1324
  message: Uint8Array;
1144
- publicKey: AffineElement;
1325
+ publicKey: Secp256k1Point;
1145
1326
  r: Uint8Array;
1146
1327
  s: Uint8Array;
1147
1328
  v: number;
1148
1329
  }
1149
1330
  interface MsgpackEcdsaSecp256k1VerifySignature {
1150
1331
  message: Uint8Array;
1151
- public_key: MsgpackAffineElement;
1332
+ public_key: MsgpackSecp256k1Point;
1152
1333
  r: Uint8Array;
1153
1334
  s: Uint8Array;
1154
1335
  v: number;
@@ -1166,10 +1347,10 @@ interface MsgpackEcdsaSecp256r1ComputePublicKey {
1166
1347
  private_key: Uint8Array;
1167
1348
  }
1168
1349
  export interface EcdsaSecp256r1ComputePublicKeyResponse {
1169
- publicKey: AffineElement;
1350
+ publicKey: Secp256r1Point;
1170
1351
  }
1171
1352
  interface MsgpackEcdsaSecp256r1ComputePublicKeyResponse {
1172
- public_key: MsgpackAffineElement;
1353
+ public_key: MsgpackSecp256r1Point;
1173
1354
  }
1174
1355
  export interface EcdsaSecp256r1ConstructSignature {
1175
1356
  message: Uint8Array;
@@ -1202,21 +1383,21 @@ interface MsgpackEcdsaSecp256r1RecoverPublicKey {
1202
1383
  v: number;
1203
1384
  }
1204
1385
  export interface EcdsaSecp256r1RecoverPublicKeyResponse {
1205
- publicKey: AffineElement;
1386
+ publicKey: Secp256r1Point;
1206
1387
  }
1207
1388
  interface MsgpackEcdsaSecp256r1RecoverPublicKeyResponse {
1208
- public_key: MsgpackAffineElement;
1389
+ public_key: MsgpackSecp256r1Point;
1209
1390
  }
1210
1391
  export interface EcdsaSecp256r1VerifySignature {
1211
1392
  message: Uint8Array;
1212
- publicKey: AffineElement;
1393
+ publicKey: Secp256r1Point;
1213
1394
  r: Uint8Array;
1214
1395
  s: Uint8Array;
1215
1396
  v: number;
1216
1397
  }
1217
1398
  interface MsgpackEcdsaSecp256r1VerifySignature {
1218
1399
  message: Uint8Array;
1219
- public_key: MsgpackAffineElement;
1400
+ public_key: MsgpackSecp256r1Point;
1220
1401
  r: Uint8Array;
1221
1402
  s: Uint8Array;
1222
1403
  v: number;
@@ -1227,6 +1408,12 @@ export interface EcdsaSecp256r1VerifySignatureResponse {
1227
1408
  interface MsgpackEcdsaSecp256r1VerifySignatureResponse {
1228
1409
  verified: boolean;
1229
1410
  }
1411
+ export interface ErrorResponse {
1412
+ message: string;
1413
+ }
1414
+ interface MsgpackErrorResponse {
1415
+ message: string;
1416
+ }
1230
1417
  export interface GoblinProof {
1231
1418
  mergeProof: Fr[];
1232
1419
  eccvmProof: ECCVMProof;
@@ -1238,32 +1425,32 @@ interface MsgpackGoblinProof {
1238
1425
  translator_proof: Uint8Array[];
1239
1426
  }
1240
1427
  export interface GrumpkinAdd {
1241
- pointA: AffineElement;
1242
- pointB: AffineElement;
1428
+ pointA: GrumpkinPoint;
1429
+ pointB: GrumpkinPoint;
1243
1430
  }
1244
1431
  interface MsgpackGrumpkinAdd {
1245
- point_a: MsgpackAffineElement;
1246
- point_b: MsgpackAffineElement;
1432
+ point_a: MsgpackGrumpkinPoint;
1433
+ point_b: MsgpackGrumpkinPoint;
1247
1434
  }
1248
1435
  export interface GrumpkinAddResponse {
1249
- point: AffineElement;
1436
+ point: GrumpkinPoint;
1250
1437
  }
1251
1438
  interface MsgpackGrumpkinAddResponse {
1252
- point: MsgpackAffineElement;
1439
+ point: MsgpackGrumpkinPoint;
1253
1440
  }
1254
1441
  export interface GrumpkinBatchMul {
1255
- points: AffineElement[];
1442
+ points: GrumpkinPoint[];
1256
1443
  scalar: Fq;
1257
1444
  }
1258
1445
  interface MsgpackGrumpkinBatchMul {
1259
- points: MsgpackAffineElement[];
1446
+ points: MsgpackGrumpkinPoint[];
1260
1447
  scalar: Uint8Array;
1261
1448
  }
1262
1449
  export interface GrumpkinBatchMulResponse {
1263
- points: AffineElement[];
1450
+ points: GrumpkinPoint[];
1264
1451
  }
1265
1452
  interface MsgpackGrumpkinBatchMulResponse {
1266
- points: MsgpackAffineElement[];
1453
+ points: MsgpackGrumpkinPoint[];
1267
1454
  }
1268
1455
  export interface GrumpkinGetRandomFr {
1269
1456
  dummy: number;
@@ -1278,18 +1465,26 @@ interface MsgpackGrumpkinGetRandomFrResponse {
1278
1465
  value: Uint8Array;
1279
1466
  }
1280
1467
  export interface GrumpkinMul {
1281
- point: AffineElement;
1468
+ point: GrumpkinPoint;
1282
1469
  scalar: Fq;
1283
1470
  }
1284
1471
  interface MsgpackGrumpkinMul {
1285
- point: MsgpackAffineElement;
1472
+ point: MsgpackGrumpkinPoint;
1286
1473
  scalar: Uint8Array;
1287
1474
  }
1288
1475
  export interface GrumpkinMulResponse {
1289
- point: AffineElement;
1476
+ point: GrumpkinPoint;
1290
1477
  }
1291
1478
  interface MsgpackGrumpkinMulResponse {
1292
- point: MsgpackAffineElement;
1479
+ point: MsgpackGrumpkinPoint;
1480
+ }
1481
+ export interface GrumpkinPoint {
1482
+ x: Fr;
1483
+ y: Fr;
1484
+ }
1485
+ interface MsgpackGrumpkinPoint {
1486
+ x: Uint8Array;
1487
+ y: Uint8Array;
1293
1488
  }
1294
1489
  export interface GrumpkinReduce512 {
1295
1490
  input: Uint8Array;
@@ -1324,10 +1519,10 @@ interface MsgpackPedersenCommit {
1324
1519
  hash_index: number;
1325
1520
  }
1326
1521
  export interface PedersenCommitResponse {
1327
- point: AffineElement;
1522
+ point: GrumpkinPoint;
1328
1523
  }
1329
1524
  interface MsgpackPedersenCommitResponse {
1330
- point: MsgpackAffineElement;
1525
+ point: MsgpackGrumpkinPoint;
1331
1526
  }
1332
1527
  export interface PedersenHash {
1333
1528
  inputs: Fr[];
@@ -1412,10 +1607,10 @@ interface MsgpackSchnorrComputePublicKey {
1412
1607
  private_key: Uint8Array;
1413
1608
  }
1414
1609
  export interface SchnorrComputePublicKeyResponse {
1415
- publicKey: AffineElement;
1610
+ publicKey: GrumpkinPoint;
1416
1611
  }
1417
1612
  interface MsgpackSchnorrComputePublicKeyResponse {
1418
- public_key: MsgpackAffineElement;
1613
+ public_key: MsgpackGrumpkinPoint;
1419
1614
  }
1420
1615
  export interface SchnorrConstructSignature {
1421
1616
  message: Uint8Array;
@@ -1435,13 +1630,13 @@ interface MsgpackSchnorrConstructSignatureResponse {
1435
1630
  }
1436
1631
  export interface SchnorrVerifySignature {
1437
1632
  message: Uint8Array;
1438
- publicKey: AffineElement;
1633
+ publicKey: GrumpkinPoint;
1439
1634
  s: Uint8Array;
1440
1635
  e: Uint8Array;
1441
1636
  }
1442
1637
  interface MsgpackSchnorrVerifySignature {
1443
1638
  message: Uint8Array;
1444
- public_key: MsgpackAffineElement;
1639
+ public_key: MsgpackGrumpkinPoint;
1445
1640
  s: Uint8Array;
1446
1641
  e: Uint8Array;
1447
1642
  }
@@ -1464,18 +1659,26 @@ interface MsgpackSecp256k1GetRandomFrResponse {
1464
1659
  value: Uint8Array;
1465
1660
  }
1466
1661
  export interface Secp256k1Mul {
1467
- point: AffineElement;
1662
+ point: Secp256k1Point;
1468
1663
  scalar: Secp256k1Fr;
1469
1664
  }
1470
1665
  interface MsgpackSecp256k1Mul {
1471
- point: MsgpackAffineElement;
1666
+ point: MsgpackSecp256k1Point;
1472
1667
  scalar: Uint8Array;
1473
1668
  }
1474
1669
  export interface Secp256k1MulResponse {
1475
- point: AffineElement;
1670
+ point: Secp256k1Point;
1476
1671
  }
1477
1672
  interface MsgpackSecp256k1MulResponse {
1478
- point: MsgpackAffineElement;
1673
+ point: MsgpackSecp256k1Point;
1674
+ }
1675
+ export interface Secp256k1Point {
1676
+ x: Secp256k1Fq;
1677
+ y: Secp256k1Fq;
1678
+ }
1679
+ interface MsgpackSecp256k1Point {
1680
+ x: Uint8Array;
1681
+ y: Uint8Array;
1479
1682
  }
1480
1683
  export interface Secp256k1Reduce512 {
1481
1684
  input: Uint8Array;
@@ -1489,6 +1692,14 @@ export interface Secp256k1Reduce512Response {
1489
1692
  interface MsgpackSecp256k1Reduce512Response {
1490
1693
  value: Uint8Array;
1491
1694
  }
1695
+ export interface Secp256r1Point {
1696
+ x: Secp256r1Fq;
1697
+ y: Secp256r1Fq;
1698
+ }
1699
+ interface MsgpackSecp256r1Point {
1700
+ x: Uint8Array;
1701
+ y: Uint8Array;
1702
+ }
1492
1703
  export interface Shutdown {
1493
1704
  }
1494
1705
  interface MsgpackShutdown {
@@ -1547,8 +1758,6 @@ export declare function toAesEncrypt(o: MsgpackAesEncrypt): AesEncrypt;
1547
1758
  export declare function fromAesEncrypt(o: AesEncrypt): MsgpackAesEncrypt;
1548
1759
  export declare function toAesEncryptResponse(o: MsgpackAesEncryptResponse): AesEncryptResponse;
1549
1760
  export declare function fromAesEncryptResponse(o: AesEncryptResponse): MsgpackAesEncryptResponse;
1550
- export declare function toAffineElement(o: MsgpackAffineElement): AffineElement;
1551
- export declare function fromAffineElement(o: AffineElement): MsgpackAffineElement;
1552
1761
  export declare function toBlake2s(o: MsgpackBlake2s): Blake2s;
1553
1762
  export declare function fromBlake2s(o: Blake2s): MsgpackBlake2s;
1554
1763
  export declare function toBlake2sResponse(o: MsgpackBlake2sResponse): Blake2sResponse;
@@ -1557,10 +1766,72 @@ export declare function toBlake2sToField(o: MsgpackBlake2sToField): Blake2sToFie
1557
1766
  export declare function fromBlake2sToField(o: Blake2sToField): MsgpackBlake2sToField;
1558
1767
  export declare function toBlake2sToFieldResponse(o: MsgpackBlake2sToFieldResponse): Blake2sToFieldResponse;
1559
1768
  export declare function fromBlake2sToFieldResponse(o: Blake2sToFieldResponse): MsgpackBlake2sToFieldResponse;
1769
+ export declare function toBn254FqSqrt(o: MsgpackBn254FqSqrt): Bn254FqSqrt;
1770
+ export declare function fromBn254FqSqrt(o: Bn254FqSqrt): MsgpackBn254FqSqrt;
1771
+ export declare function toBn254FqSqrtResponse(o: MsgpackBn254FqSqrtResponse): Bn254FqSqrtResponse;
1772
+ export declare function fromBn254FqSqrtResponse(o: Bn254FqSqrtResponse): MsgpackBn254FqSqrtResponse;
1560
1773
  export declare function toBn254FrSqrt(o: MsgpackBn254FrSqrt): Bn254FrSqrt;
1561
1774
  export declare function fromBn254FrSqrt(o: Bn254FrSqrt): MsgpackBn254FrSqrt;
1562
1775
  export declare function toBn254FrSqrtResponse(o: MsgpackBn254FrSqrtResponse): Bn254FrSqrtResponse;
1563
1776
  export declare function fromBn254FrSqrtResponse(o: Bn254FrSqrtResponse): MsgpackBn254FrSqrtResponse;
1777
+ export declare function toBn254G1FromCompressed(o: MsgpackBn254G1FromCompressed): Bn254G1FromCompressed;
1778
+ export declare function fromBn254G1FromCompressed(o: Bn254G1FromCompressed): MsgpackBn254G1FromCompressed;
1779
+ export declare function toBn254G1FromCompressedResponse(o: MsgpackBn254G1FromCompressedResponse): Bn254G1FromCompressedResponse;
1780
+ export declare function fromBn254G1FromCompressedResponse(o: Bn254G1FromCompressedResponse): MsgpackBn254G1FromCompressedResponse;
1781
+ export declare function toBn254G1IsOnCurve(o: MsgpackBn254G1IsOnCurve): Bn254G1IsOnCurve;
1782
+ export declare function fromBn254G1IsOnCurve(o: Bn254G1IsOnCurve): MsgpackBn254G1IsOnCurve;
1783
+ export declare function toBn254G1IsOnCurveResponse(o: MsgpackBn254G1IsOnCurveResponse): Bn254G1IsOnCurveResponse;
1784
+ export declare function fromBn254G1IsOnCurveResponse(o: Bn254G1IsOnCurveResponse): MsgpackBn254G1IsOnCurveResponse;
1785
+ export declare function toBn254G1Mul(o: MsgpackBn254G1Mul): Bn254G1Mul;
1786
+ export declare function fromBn254G1Mul(o: Bn254G1Mul): MsgpackBn254G1Mul;
1787
+ export declare function toBn254G1MulResponse(o: MsgpackBn254G1MulResponse): Bn254G1MulResponse;
1788
+ export declare function fromBn254G1MulResponse(o: Bn254G1MulResponse): MsgpackBn254G1MulResponse;
1789
+ export declare function toBn254G1Point(o: MsgpackBn254G1Point): Bn254G1Point;
1790
+ export declare function fromBn254G1Point(o: Bn254G1Point): MsgpackBn254G1Point;
1791
+ export declare function toBn254G2Mul(o: MsgpackBn254G2Mul): Bn254G2Mul;
1792
+ export declare function fromBn254G2Mul(o: Bn254G2Mul): MsgpackBn254G2Mul;
1793
+ export declare function toBn254G2MulResponse(o: MsgpackBn254G2MulResponse): Bn254G2MulResponse;
1794
+ export declare function fromBn254G2MulResponse(o: Bn254G2MulResponse): MsgpackBn254G2MulResponse;
1795
+ export declare function toBn254G2Point(o: MsgpackBn254G2Point): Bn254G2Point;
1796
+ export declare function fromBn254G2Point(o: Bn254G2Point): MsgpackBn254G2Point;
1797
+ export declare function toChonkAccumulate(o: MsgpackChonkAccumulate): ChonkAccumulate;
1798
+ export declare function fromChonkAccumulate(o: ChonkAccumulate): MsgpackChonkAccumulate;
1799
+ export declare function toChonkAccumulateResponse(o: MsgpackChonkAccumulateResponse): ChonkAccumulateResponse;
1800
+ export declare function fromChonkAccumulateResponse(o: ChonkAccumulateResponse): MsgpackChonkAccumulateResponse;
1801
+ export declare function toChonkCheckPrecomputedVk(o: MsgpackChonkCheckPrecomputedVk): ChonkCheckPrecomputedVk;
1802
+ export declare function fromChonkCheckPrecomputedVk(o: ChonkCheckPrecomputedVk): MsgpackChonkCheckPrecomputedVk;
1803
+ export declare function toChonkCheckPrecomputedVkResponse(o: MsgpackChonkCheckPrecomputedVkResponse): ChonkCheckPrecomputedVkResponse;
1804
+ export declare function fromChonkCheckPrecomputedVkResponse(o: ChonkCheckPrecomputedVkResponse): MsgpackChonkCheckPrecomputedVkResponse;
1805
+ export declare function toChonkComputeIvcVk(o: MsgpackChonkComputeIvcVk): ChonkComputeIvcVk;
1806
+ export declare function fromChonkComputeIvcVk(o: ChonkComputeIvcVk): MsgpackChonkComputeIvcVk;
1807
+ export declare function toChonkComputeIvcVkResponse(o: MsgpackChonkComputeIvcVkResponse): ChonkComputeIvcVkResponse;
1808
+ export declare function fromChonkComputeIvcVkResponse(o: ChonkComputeIvcVkResponse): MsgpackChonkComputeIvcVkResponse;
1809
+ export declare function toChonkComputeStandaloneVk(o: MsgpackChonkComputeStandaloneVk): ChonkComputeStandaloneVk;
1810
+ export declare function fromChonkComputeStandaloneVk(o: ChonkComputeStandaloneVk): MsgpackChonkComputeStandaloneVk;
1811
+ export declare function toChonkComputeStandaloneVkResponse(o: MsgpackChonkComputeStandaloneVkResponse): ChonkComputeStandaloneVkResponse;
1812
+ export declare function fromChonkComputeStandaloneVkResponse(o: ChonkComputeStandaloneVkResponse): MsgpackChonkComputeStandaloneVkResponse;
1813
+ export declare function toChonkLoad(o: MsgpackChonkLoad): ChonkLoad;
1814
+ export declare function fromChonkLoad(o: ChonkLoad): MsgpackChonkLoad;
1815
+ export declare function toChonkLoadResponse(o: MsgpackChonkLoadResponse): ChonkLoadResponse;
1816
+ export declare function fromChonkLoadResponse(o: ChonkLoadResponse): MsgpackChonkLoadResponse;
1817
+ export declare function toChonkProof(o: MsgpackChonkProof): ChonkProof;
1818
+ export declare function fromChonkProof(o: ChonkProof): MsgpackChonkProof;
1819
+ export declare function toChonkProve(o: MsgpackChonkProve): ChonkProve;
1820
+ export declare function fromChonkProve(o: ChonkProve): MsgpackChonkProve;
1821
+ export declare function toChonkProveResponse(o: MsgpackChonkProveResponse): ChonkProveResponse;
1822
+ export declare function fromChonkProveResponse(o: ChonkProveResponse): MsgpackChonkProveResponse;
1823
+ export declare function toChonkStart(o: MsgpackChonkStart): ChonkStart;
1824
+ export declare function fromChonkStart(o: ChonkStart): MsgpackChonkStart;
1825
+ export declare function toChonkStartResponse(o: MsgpackChonkStartResponse): ChonkStartResponse;
1826
+ export declare function fromChonkStartResponse(o: ChonkStartResponse): MsgpackChonkStartResponse;
1827
+ export declare function toChonkStats(o: MsgpackChonkStats): ChonkStats;
1828
+ export declare function fromChonkStats(o: ChonkStats): MsgpackChonkStats;
1829
+ export declare function toChonkStatsResponse(o: MsgpackChonkStatsResponse): ChonkStatsResponse;
1830
+ export declare function fromChonkStatsResponse(o: ChonkStatsResponse): MsgpackChonkStatsResponse;
1831
+ export declare function toChonkVerify(o: MsgpackChonkVerify): ChonkVerify;
1832
+ export declare function fromChonkVerify(o: ChonkVerify): MsgpackChonkVerify;
1833
+ export declare function toChonkVerifyResponse(o: MsgpackChonkVerifyResponse): ChonkVerifyResponse;
1834
+ export declare function fromChonkVerifyResponse(o: ChonkVerifyResponse): MsgpackChonkVerifyResponse;
1564
1835
  export declare function toCircuitComputeVk(o: MsgpackCircuitComputeVk): CircuitComputeVk;
1565
1836
  export declare function fromCircuitComputeVk(o: CircuitComputeVk): MsgpackCircuitComputeVk;
1566
1837
  export declare function toCircuitComputeVkResponse(o: MsgpackCircuitComputeVkResponse): CircuitComputeVkResponse;
@@ -1585,44 +1856,6 @@ export declare function toCircuitWriteSolidityVerifier(o: MsgpackCircuitWriteSol
1585
1856
  export declare function fromCircuitWriteSolidityVerifier(o: CircuitWriteSolidityVerifier): MsgpackCircuitWriteSolidityVerifier;
1586
1857
  export declare function toCircuitWriteSolidityVerifierResponse(o: MsgpackCircuitWriteSolidityVerifierResponse): CircuitWriteSolidityVerifierResponse;
1587
1858
  export declare function fromCircuitWriteSolidityVerifierResponse(o: CircuitWriteSolidityVerifierResponse): MsgpackCircuitWriteSolidityVerifierResponse;
1588
- export declare function toClientIvcAccumulate(o: MsgpackClientIvcAccumulate): ClientIvcAccumulate;
1589
- export declare function fromClientIvcAccumulate(o: ClientIvcAccumulate): MsgpackClientIvcAccumulate;
1590
- export declare function toClientIvcAccumulateResponse(o: MsgpackClientIvcAccumulateResponse): ClientIvcAccumulateResponse;
1591
- export declare function fromClientIvcAccumulateResponse(o: ClientIvcAccumulateResponse): MsgpackClientIvcAccumulateResponse;
1592
- export declare function toClientIvcCheckPrecomputedVk(o: MsgpackClientIvcCheckPrecomputedVk): ClientIvcCheckPrecomputedVk;
1593
- export declare function fromClientIvcCheckPrecomputedVk(o: ClientIvcCheckPrecomputedVk): MsgpackClientIvcCheckPrecomputedVk;
1594
- export declare function toClientIvcCheckPrecomputedVkResponse(o: MsgpackClientIvcCheckPrecomputedVkResponse): ClientIvcCheckPrecomputedVkResponse;
1595
- export declare function fromClientIvcCheckPrecomputedVkResponse(o: ClientIvcCheckPrecomputedVkResponse): MsgpackClientIvcCheckPrecomputedVkResponse;
1596
- export declare function toClientIvcComputeIvcVk(o: MsgpackClientIvcComputeIvcVk): ClientIvcComputeIvcVk;
1597
- export declare function fromClientIvcComputeIvcVk(o: ClientIvcComputeIvcVk): MsgpackClientIvcComputeIvcVk;
1598
- export declare function toClientIvcComputeIvcVkResponse(o: MsgpackClientIvcComputeIvcVkResponse): ClientIvcComputeIvcVkResponse;
1599
- export declare function fromClientIvcComputeIvcVkResponse(o: ClientIvcComputeIvcVkResponse): MsgpackClientIvcComputeIvcVkResponse;
1600
- export declare function toClientIvcComputeStandaloneVk(o: MsgpackClientIvcComputeStandaloneVk): ClientIvcComputeStandaloneVk;
1601
- export declare function fromClientIvcComputeStandaloneVk(o: ClientIvcComputeStandaloneVk): MsgpackClientIvcComputeStandaloneVk;
1602
- export declare function toClientIvcComputeStandaloneVkResponse(o: MsgpackClientIvcComputeStandaloneVkResponse): ClientIvcComputeStandaloneVkResponse;
1603
- export declare function fromClientIvcComputeStandaloneVkResponse(o: ClientIvcComputeStandaloneVkResponse): MsgpackClientIvcComputeStandaloneVkResponse;
1604
- export declare function toClientIvcLoad(o: MsgpackClientIvcLoad): ClientIvcLoad;
1605
- export declare function fromClientIvcLoad(o: ClientIvcLoad): MsgpackClientIvcLoad;
1606
- export declare function toClientIvcLoadResponse(o: MsgpackClientIvcLoadResponse): ClientIvcLoadResponse;
1607
- export declare function fromClientIvcLoadResponse(o: ClientIvcLoadResponse): MsgpackClientIvcLoadResponse;
1608
- export declare function toClientIVCProof(o: MsgpackClientIVCProof): ClientIVCProof;
1609
- export declare function fromClientIVCProof(o: ClientIVCProof): MsgpackClientIVCProof;
1610
- export declare function toClientIvcProve(o: MsgpackClientIvcProve): ClientIvcProve;
1611
- export declare function fromClientIvcProve(o: ClientIvcProve): MsgpackClientIvcProve;
1612
- export declare function toClientIvcProveResponse(o: MsgpackClientIvcProveResponse): ClientIvcProveResponse;
1613
- export declare function fromClientIvcProveResponse(o: ClientIvcProveResponse): MsgpackClientIvcProveResponse;
1614
- export declare function toClientIvcStart(o: MsgpackClientIvcStart): ClientIvcStart;
1615
- export declare function fromClientIvcStart(o: ClientIvcStart): MsgpackClientIvcStart;
1616
- export declare function toClientIvcStartResponse(o: MsgpackClientIvcStartResponse): ClientIvcStartResponse;
1617
- export declare function fromClientIvcStartResponse(o: ClientIvcStartResponse): MsgpackClientIvcStartResponse;
1618
- export declare function toClientIvcStats(o: MsgpackClientIvcStats): ClientIvcStats;
1619
- export declare function fromClientIvcStats(o: ClientIvcStats): MsgpackClientIvcStats;
1620
- export declare function toClientIvcStatsResponse(o: MsgpackClientIvcStatsResponse): ClientIvcStatsResponse;
1621
- export declare function fromClientIvcStatsResponse(o: ClientIvcStatsResponse): MsgpackClientIvcStatsResponse;
1622
- export declare function toClientIvcVerify(o: MsgpackClientIvcVerify): ClientIvcVerify;
1623
- export declare function fromClientIvcVerify(o: ClientIvcVerify): MsgpackClientIvcVerify;
1624
- export declare function toClientIvcVerifyResponse(o: MsgpackClientIvcVerifyResponse): ClientIvcVerifyResponse;
1625
- export declare function fromClientIvcVerifyResponse(o: ClientIvcVerifyResponse): MsgpackClientIvcVerifyResponse;
1626
1859
  export declare function toECCVMProof(o: MsgpackECCVMProof): ECCVMProof;
1627
1860
  export declare function fromECCVMProof(o: ECCVMProof): MsgpackECCVMProof;
1628
1861
  export declare function toEcdsaSecp256k1ComputePublicKey(o: MsgpackEcdsaSecp256k1ComputePublicKey): EcdsaSecp256k1ComputePublicKey;
@@ -1657,6 +1890,8 @@ export declare function toEcdsaSecp256r1VerifySignature(o: MsgpackEcdsaSecp256r1
1657
1890
  export declare function fromEcdsaSecp256r1VerifySignature(o: EcdsaSecp256r1VerifySignature): MsgpackEcdsaSecp256r1VerifySignature;
1658
1891
  export declare function toEcdsaSecp256r1VerifySignatureResponse(o: MsgpackEcdsaSecp256r1VerifySignatureResponse): EcdsaSecp256r1VerifySignatureResponse;
1659
1892
  export declare function fromEcdsaSecp256r1VerifySignatureResponse(o: EcdsaSecp256r1VerifySignatureResponse): MsgpackEcdsaSecp256r1VerifySignatureResponse;
1893
+ export declare function toErrorResponse(o: MsgpackErrorResponse): ErrorResponse;
1894
+ export declare function fromErrorResponse(o: ErrorResponse): MsgpackErrorResponse;
1660
1895
  export declare function toGoblinProof(o: MsgpackGoblinProof): GoblinProof;
1661
1896
  export declare function fromGoblinProof(o: GoblinProof): MsgpackGoblinProof;
1662
1897
  export declare function toGrumpkinAdd(o: MsgpackGrumpkinAdd): GrumpkinAdd;
@@ -1675,6 +1910,8 @@ export declare function toGrumpkinMul(o: MsgpackGrumpkinMul): GrumpkinMul;
1675
1910
  export declare function fromGrumpkinMul(o: GrumpkinMul): MsgpackGrumpkinMul;
1676
1911
  export declare function toGrumpkinMulResponse(o: MsgpackGrumpkinMulResponse): GrumpkinMulResponse;
1677
1912
  export declare function fromGrumpkinMulResponse(o: GrumpkinMulResponse): MsgpackGrumpkinMulResponse;
1913
+ export declare function toGrumpkinPoint(o: MsgpackGrumpkinPoint): GrumpkinPoint;
1914
+ export declare function fromGrumpkinPoint(o: GrumpkinPoint): MsgpackGrumpkinPoint;
1678
1915
  export declare function toGrumpkinReduce512(o: MsgpackGrumpkinReduce512): GrumpkinReduce512;
1679
1916
  export declare function fromGrumpkinReduce512(o: GrumpkinReduce512): MsgpackGrumpkinReduce512;
1680
1917
  export declare function toGrumpkinReduce512Response(o: MsgpackGrumpkinReduce512Response): GrumpkinReduce512Response;
@@ -1729,10 +1966,14 @@ export declare function toSecp256k1Mul(o: MsgpackSecp256k1Mul): Secp256k1Mul;
1729
1966
  export declare function fromSecp256k1Mul(o: Secp256k1Mul): MsgpackSecp256k1Mul;
1730
1967
  export declare function toSecp256k1MulResponse(o: MsgpackSecp256k1MulResponse): Secp256k1MulResponse;
1731
1968
  export declare function fromSecp256k1MulResponse(o: Secp256k1MulResponse): MsgpackSecp256k1MulResponse;
1969
+ export declare function toSecp256k1Point(o: MsgpackSecp256k1Point): Secp256k1Point;
1970
+ export declare function fromSecp256k1Point(o: Secp256k1Point): MsgpackSecp256k1Point;
1732
1971
  export declare function toSecp256k1Reduce512(o: MsgpackSecp256k1Reduce512): Secp256k1Reduce512;
1733
1972
  export declare function fromSecp256k1Reduce512(o: Secp256k1Reduce512): MsgpackSecp256k1Reduce512;
1734
1973
  export declare function toSecp256k1Reduce512Response(o: MsgpackSecp256k1Reduce512Response): Secp256k1Reduce512Response;
1735
1974
  export declare function fromSecp256k1Reduce512Response(o: Secp256k1Reduce512Response): MsgpackSecp256k1Reduce512Response;
1975
+ export declare function toSecp256r1Point(o: MsgpackSecp256r1Point): Secp256r1Point;
1976
+ export declare function fromSecp256r1Point(o: Secp256r1Point): MsgpackSecp256r1Point;
1736
1977
  export declare function toShutdown(o: MsgpackShutdown): Shutdown;
1737
1978
  export declare function fromShutdown(o: Shutdown): MsgpackShutdown;
1738
1979
  export declare function toShutdownResponse(o: MsgpackShutdownResponse): ShutdownResponse;
@@ -1754,18 +1995,18 @@ export interface BbApiBase {
1754
1995
  circuitComputeVk(command: CircuitComputeVk): Promise<CircuitComputeVkResponse>;
1755
1996
  circuitStats(command: CircuitStats): Promise<CircuitInfoResponse>;
1756
1997
  circuitVerify(command: CircuitVerify): Promise<CircuitVerifyResponse>;
1757
- clientIvcComputeStandaloneVk(command: ClientIvcComputeStandaloneVk): Promise<ClientIvcComputeStandaloneVkResponse>;
1758
- clientIvcComputeIvcVk(command: ClientIvcComputeIvcVk): Promise<ClientIvcComputeIvcVkResponse>;
1759
- clientIvcStart(command: ClientIvcStart): Promise<ClientIvcStartResponse>;
1760
- clientIvcLoad(command: ClientIvcLoad): Promise<ClientIvcLoadResponse>;
1761
- clientIvcAccumulate(command: ClientIvcAccumulate): Promise<ClientIvcAccumulateResponse>;
1762
- clientIvcProve(command: ClientIvcProve): Promise<ClientIvcProveResponse>;
1763
- clientIvcVerify(command: ClientIvcVerify): Promise<ClientIvcVerifyResponse>;
1998
+ chonkComputeStandaloneVk(command: ChonkComputeStandaloneVk): Promise<ChonkComputeStandaloneVkResponse>;
1999
+ chonkComputeIvcVk(command: ChonkComputeIvcVk): Promise<ChonkComputeIvcVkResponse>;
2000
+ chonkStart(command: ChonkStart): Promise<ChonkStartResponse>;
2001
+ chonkLoad(command: ChonkLoad): Promise<ChonkLoadResponse>;
2002
+ chonkAccumulate(command: ChonkAccumulate): Promise<ChonkAccumulateResponse>;
2003
+ chonkProve(command: ChonkProve): Promise<ChonkProveResponse>;
2004
+ chonkVerify(command: ChonkVerify): Promise<ChonkVerifyResponse>;
1764
2005
  vkAsFields(command: VkAsFields): Promise<VkAsFieldsResponse>;
1765
2006
  megaVkAsFields(command: MegaVkAsFields): Promise<MegaVkAsFieldsResponse>;
1766
2007
  circuitWriteSolidityVerifier(command: CircuitWriteSolidityVerifier): Promise<CircuitWriteSolidityVerifierResponse>;
1767
- clientIvcCheckPrecomputedVk(command: ClientIvcCheckPrecomputedVk): Promise<ClientIvcCheckPrecomputedVkResponse>;
1768
- clientIvcStats(command: ClientIvcStats): Promise<ClientIvcStatsResponse>;
2008
+ chonkCheckPrecomputedVk(command: ChonkCheckPrecomputedVk): Promise<ChonkCheckPrecomputedVkResponse>;
2009
+ chonkStats(command: ChonkStats): Promise<ChonkStatsResponse>;
1769
2010
  poseidon2Hash(command: Poseidon2Hash): Promise<Poseidon2HashResponse>;
1770
2011
  poseidon2Permutation(command: Poseidon2Permutation): Promise<Poseidon2PermutationResponse>;
1771
2012
  poseidon2HashAccumulate(command: Poseidon2HashAccumulate): Promise<Poseidon2HashAccumulateResponse>;
@@ -1785,6 +2026,11 @@ export interface BbApiBase {
1785
2026
  secp256k1GetRandomFr(command: Secp256k1GetRandomFr): Promise<Secp256k1GetRandomFrResponse>;
1786
2027
  secp256k1Reduce512(command: Secp256k1Reduce512): Promise<Secp256k1Reduce512Response>;
1787
2028
  bn254FrSqrt(command: Bn254FrSqrt): Promise<Bn254FrSqrtResponse>;
2029
+ bn254FqSqrt(command: Bn254FqSqrt): Promise<Bn254FqSqrtResponse>;
2030
+ bn254G1Mul(command: Bn254G1Mul): Promise<Bn254G1MulResponse>;
2031
+ bn254G2Mul(command: Bn254G2Mul): Promise<Bn254G2MulResponse>;
2032
+ bn254G1IsOnCurve(command: Bn254G1IsOnCurve): Promise<Bn254G1IsOnCurveResponse>;
2033
+ bn254G1FromCompressed(command: Bn254G1FromCompressed): Promise<Bn254G1FromCompressedResponse>;
1788
2034
  schnorrComputePublicKey(command: SchnorrComputePublicKey): Promise<SchnorrComputePublicKeyResponse>;
1789
2035
  schnorrConstructSignature(command: SchnorrConstructSignature): Promise<SchnorrConstructSignatureResponse>;
1790
2036
  schnorrVerifySignature(command: SchnorrVerifySignature): Promise<SchnorrVerifySignatureResponse>;