@noir-lang/acvm_js 1.0.0-beta.22 → 1.0.0-beta.23

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.
@@ -79,23 +79,23 @@ export function blake2s256(inputs: Uint8Array): Uint8Array;
79
79
 
80
80
  /**
81
81
  * Returns the `BuildInfo` object containing information about how the installed package was built.
82
- * @returns {BuildInfo} - Information on how the installed package was built.
82
+ * @returns {`BuildInfo`} - Information on how the installed package was built.
83
83
  */
84
84
  export function buildInfo(): BuildInfo;
85
85
 
86
86
  /**
87
87
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
88
88
  *
89
- * @param {WitnessMap} witness_map - A witness map.
90
- * @returns {Uint8Array} A compressed witness map
89
+ * @param {`WitnessMap`} `witness_map` - A witness map.
90
+ * @returns {`Uint8Array`} A compressed witness map
91
91
  */
92
92
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
93
93
 
94
94
  /**
95
95
  * Compresses a `WitnessStack` into the binary format outputted by Nargo.
96
96
  *
97
- * @param {WitnessStack} witness_stack - A witness stack.
98
- * @returns {Uint8Array} A compressed witness stack
97
+ * @param {`WitnessStack`} `witness_stack` - A witness stack.
98
+ * @returns {`Uint8Array`} A compressed witness stack
99
99
  */
100
100
  export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
101
101
 
@@ -103,16 +103,16 @@ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
103
103
  * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
104
104
  * This should be used to only fetch the witness map for the main function.
105
105
  *
106
- * @param {Uint8Array} compressed_witness - A compressed witness.
107
- * @returns {WitnessMap} The decompressed witness map.
106
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
107
+ * @returns {`WitnessMap`} The decompressed witness map.
108
108
  */
109
109
  export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
110
110
 
111
111
  /**
112
112
  * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
113
113
  *
114
- * @param {Uint8Array} compressed_witness - A compressed witness.
115
- * @returns {WitnessStack} The decompressed witness stack.
114
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
115
+ * @returns {`WitnessStack`} The decompressed witness stack.
116
116
  */
117
117
  export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
118
118
 
@@ -129,10 +129,10 @@ export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_byte
129
129
  /**
130
130
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
131
131
  *
132
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
133
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
134
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
135
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
132
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
133
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
134
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
135
+ * @returns {`WitnessMap`} The solved witness calculated by executing the circuit on the provided inputs.
136
136
  */
137
137
  export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
138
138
 
@@ -140,54 +140,54 @@ export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap,
140
140
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
141
141
  * This method also extracts the public return values from the solved witness into its own return witness.
142
142
  *
143
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
144
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
145
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
146
- * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
143
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
144
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
145
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
146
+ * @returns {`SolvedAndReturnWitness`} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
147
147
  */
148
148
  export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
149
149
 
150
150
  /**
151
151
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
152
152
  *
153
- * @param {Uint8Array} program - A serialized representation of an ACIR program
154
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
155
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
156
- * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
153
+ * @param {`Uint8Array`} program - A serialized representation of an ACIR program
154
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `program`.
155
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the program.
156
+ * @returns {`WitnessStack`} The solved witness calculated by executing the program on the provided inputs.
157
157
  */
158
158
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
159
159
 
160
160
  /**
161
161
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
162
162
  *
163
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
164
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
165
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
163
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
164
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
165
+ * @returns {`WitnessMap`} A witness map containing the circuit's public parameters.
166
166
  */
167
167
  export function getPublicParametersWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
168
168
 
169
169
  /**
170
170
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
171
171
  *
172
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
173
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
174
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
172
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
173
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
174
+ * @returns {`WitnessMap`} A witness map containing the circuit's public inputs.
175
175
  */
176
176
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
177
177
 
178
178
  /**
179
179
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
180
180
  *
181
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
182
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
183
- * @returns {WitnessMap} A witness map containing the circuit's return values.
181
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
182
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
183
+ * @returns {`WitnessMap`} A witness map containing the circuit's return values.
184
184
  */
185
185
  export function getReturnWitness(program: Uint8Array, witness_map: WitnessMap): WitnessMap;
186
186
 
187
187
  /**
188
188
  * Sets the package's logging level.
189
189
  *
190
- * @param {LogLevel} level - The maximum level of logging to be emitted.
190
+ * @param {`LogLevel`} level - The maximum level of logging to be emitted.
191
191
  */
192
192
  export function initLogLevel(filter: string): void;
193
193
 
package/nodejs/acvm_js.js CHANGED
@@ -29,7 +29,7 @@ exports.blake2s256 = blake2s256;
29
29
 
30
30
  /**
31
31
  * Returns the `BuildInfo` object containing information about how the installed package was built.
32
- * @returns {BuildInfo} - Information on how the installed package was built.
32
+ * @returns {`BuildInfo`} - Information on how the installed package was built.
33
33
  */
34
34
  function buildInfo() {
35
35
  const ret = wasm.buildInfo();
@@ -40,8 +40,8 @@ exports.buildInfo = buildInfo;
40
40
  /**
41
41
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
42
42
  *
43
- * @param {WitnessMap} witness_map - A witness map.
44
- * @returns {Uint8Array} A compressed witness map
43
+ * @param {`WitnessMap`} `witness_map` - A witness map.
44
+ * @returns {`Uint8Array`} A compressed witness map
45
45
  */
46
46
  function compressWitness(witness_map) {
47
47
  const ret = wasm.compressWitness(witness_map);
@@ -57,8 +57,8 @@ exports.compressWitness = compressWitness;
57
57
  /**
58
58
  * Compresses a `WitnessStack` into the binary format outputted by Nargo.
59
59
  *
60
- * @param {WitnessStack} witness_stack - A witness stack.
61
- * @returns {Uint8Array} A compressed witness stack
60
+ * @param {`WitnessStack`} `witness_stack` - A witness stack.
61
+ * @returns {`Uint8Array`} A compressed witness stack
62
62
  */
63
63
  function compressWitnessStack(witness_stack) {
64
64
  const ret = wasm.compressWitnessStack(witness_stack);
@@ -75,8 +75,8 @@ exports.compressWitnessStack = compressWitnessStack;
75
75
  * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
76
76
  * This should be used to only fetch the witness map for the main function.
77
77
  *
78
- * @param {Uint8Array} compressed_witness - A compressed witness.
79
- * @returns {WitnessMap} The decompressed witness map.
78
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
79
+ * @returns {`WitnessMap`} The decompressed witness map.
80
80
  */
81
81
  function decompressWitness(compressed_witness) {
82
82
  const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
@@ -92,8 +92,8 @@ exports.decompressWitness = decompressWitness;
92
92
  /**
93
93
  * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
94
94
  *
95
- * @param {Uint8Array} compressed_witness - A compressed witness.
96
- * @returns {WitnessStack} The decompressed witness stack.
95
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
96
+ * @returns {`WitnessStack`} The decompressed witness stack.
97
97
  */
98
98
  function decompressWitnessStack(compressed_witness) {
99
99
  const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
@@ -153,10 +153,10 @@ exports.ecdsa_secp256r1_verify = ecdsa_secp256r1_verify;
153
153
  /**
154
154
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
155
155
  *
156
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
157
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
158
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
159
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
156
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
157
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
158
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
159
+ * @returns {`WitnessMap`} The solved witness calculated by executing the circuit on the provided inputs.
160
160
  */
161
161
  function executeCircuit(program, initial_witness, foreign_call_handler) {
162
162
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -170,10 +170,10 @@ exports.executeCircuit = executeCircuit;
170
170
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
171
171
  * This method also extracts the public return values from the solved witness into its own return witness.
172
172
  *
173
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
174
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
175
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
176
- * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
173
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
174
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
175
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
176
+ * @returns {`SolvedAndReturnWitness`} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
177
177
  */
178
178
  function executeCircuitWithReturnWitness(program, initial_witness, foreign_call_handler) {
179
179
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -186,10 +186,10 @@ exports.executeCircuitWithReturnWitness = executeCircuitWithReturnWitness;
186
186
  /**
187
187
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
188
188
  *
189
- * @param {Uint8Array} program - A serialized representation of an ACIR program
190
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
191
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
192
- * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
189
+ * @param {`Uint8Array`} program - A serialized representation of an ACIR program
190
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `program`.
191
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the program.
192
+ * @returns {`WitnessStack`} The solved witness calculated by executing the program on the provided inputs.
193
193
  */
194
194
  function executeProgram(program, initial_witness, foreign_call_handler) {
195
195
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -202,9 +202,9 @@ exports.executeProgram = executeProgram;
202
202
  /**
203
203
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
204
204
  *
205
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
206
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
207
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
205
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
206
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
207
+ * @returns {`WitnessMap`} A witness map containing the circuit's public parameters.
208
208
  * @param {Uint8Array} program
209
209
  * @param {WitnessMap} solved_witness
210
210
  * @returns {WitnessMap}
@@ -223,9 +223,9 @@ exports.getPublicParametersWitness = getPublicParametersWitness;
223
223
  /**
224
224
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
225
225
  *
226
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
227
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
228
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
226
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
227
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
228
+ * @returns {`WitnessMap`} A witness map containing the circuit's public inputs.
229
229
  * @param {Uint8Array} program
230
230
  * @param {WitnessMap} solved_witness
231
231
  * @returns {WitnessMap}
@@ -244,9 +244,9 @@ exports.getPublicWitness = getPublicWitness;
244
244
  /**
245
245
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
246
246
  *
247
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
248
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
249
- * @returns {WitnessMap} A witness map containing the circuit's return values.
247
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
248
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
249
+ * @returns {`WitnessMap`} A witness map containing the circuit's return values.
250
250
  * @param {Uint8Array} program
251
251
  * @param {WitnessMap} witness_map
252
252
  * @returns {WitnessMap}
@@ -265,7 +265,7 @@ exports.getReturnWitness = getReturnWitness;
265
265
  /**
266
266
  * Sets the package's logging level.
267
267
  *
268
- * @param {LogLevel} level - The maximum level of logging to be emitted.
268
+ * @param {`LogLevel`} level - The maximum level of logging to be emitted.
269
269
  */
270
270
  function initLogLevel(filter) {
271
271
  const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -357,11 +357,11 @@ function __wbg_get_imports() {
357
357
  const ret = arg0.call(arg1, arg2, arg3);
358
358
  return ret;
359
359
  }, arguments); },
360
- __wbg_constructor_9c2bd46a7dce7d92: function(arg0) {
360
+ __wbg_constructor_5e1ddeb93a8bf3bc: function(arg0) {
361
361
  const ret = new Error(arg0);
362
362
  return ret;
363
363
  },
364
- __wbg_constructor_dab9c5e2cb00fd27: function(arg0) {
364
+ __wbg_constructor_f99e6ead8fc6ac5d: function(arg0) {
365
365
  const ret = new Error(arg0);
366
366
  return ret;
367
367
  },
@@ -395,7 +395,7 @@ function __wbg_get_imports() {
395
395
  const a = state0.a;
396
396
  state0.a = 0;
397
397
  try {
398
- return wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(a, state0.b, arg0, arg1);
398
+ return wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(a, state0.b, arg0, arg1);
399
399
  } finally {
400
400
  state0.a = a;
401
401
  }
@@ -412,7 +412,7 @@ function __wbg_get_imports() {
412
412
  const a = state0.a;
413
413
  state0.a = 0;
414
414
  try {
415
- return wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(a, state0.b, arg0, arg1, arg2);
415
+ return wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(a, state0.b, arg0, arg1, arg2);
416
416
  } finally {
417
417
  state0.a = a;
418
418
  }
@@ -460,20 +460,20 @@ function __wbg_get_imports() {
460
460
  const ret = new Error();
461
461
  return ret;
462
462
  },
463
- __wbg_new_602e1a672b1320f2: function() {
464
- const ret = new Map();
463
+ __wbg_new_2774ec508e277800: function() {
464
+ const ret = new Array();
465
465
  return ret;
466
466
  },
467
467
  __wbg_new_92df58a8ec3bfb6b: function() {
468
468
  const ret = new Map();
469
469
  return ret;
470
470
  },
471
- __wbg_new_9d1883f62bc40b5c: function() {
471
+ __wbg_new_cbee8c0d5c479eac: function() {
472
472
  const ret = new Array();
473
473
  return ret;
474
474
  },
475
- __wbg_new_cbee8c0d5c479eac: function() {
476
- const ret = new Array();
475
+ __wbg_new_eb383269e69e5c18: function() {
476
+ const ret = new Map();
477
477
  return ret;
478
478
  },
479
479
  __wbg_new_typed_8258a0d8488ef2a2: function(arg0, arg1) {
@@ -483,7 +483,7 @@ function __wbg_get_imports() {
483
483
  const a = state0.a;
484
484
  state0.a = 0;
485
485
  try {
486
- return wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(a, state0.b, arg0, arg1);
486
+ return wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(a, state0.b, arg0, arg1);
487
487
  } finally {
488
488
  state0.a = a;
489
489
  }
@@ -570,8 +570,8 @@ function __wbg_get_imports() {
570
570
  console.warn(arg0);
571
571
  },
572
572
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
573
- // Cast intrinsic for `Closure(Closure { dtor_idx: 475, function: Function { arguments: [Externref], shim_idx: 476, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
574
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h622bad63540236e2, wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f);
573
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 476, function: Function { arguments: [Externref], shim_idx: 477, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
574
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha37ca52b8e37c989, wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986);
575
575
  return ret;
576
576
  },
577
577
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -600,23 +600,23 @@ function __wbg_get_imports() {
600
600
  };
601
601
  }
602
602
 
603
- function wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f(arg0, arg1, arg2) {
604
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f(arg0, arg1, arg2);
603
+ function wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986(arg0, arg1, arg2) {
604
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986(arg0, arg1, arg2);
605
605
  if (ret[1]) {
606
606
  throw takeFromExternrefTable0(ret[0]);
607
607
  }
608
608
  }
609
609
 
610
- function wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(arg0, arg1, arg2, arg3) {
611
- wasm.wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(arg0, arg1, arg2, arg3);
610
+ function wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(arg0, arg1, arg2, arg3) {
611
+ wasm.wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(arg0, arg1, arg2, arg3);
612
612
  }
613
613
 
614
- function wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(arg0, arg1, arg2, arg3) {
615
- wasm.wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(arg0, arg1, arg2, arg3);
614
+ function wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(arg0, arg1, arg2, arg3) {
615
+ wasm.wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(arg0, arg1, arg2, arg3);
616
616
  }
617
617
 
618
- function wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(arg0, arg1, arg2, arg3, arg4) {
619
- wasm.wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(arg0, arg1, arg2, arg3, arg4);
618
+ function wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(arg0, arg1, arg2, arg3, arg4) {
619
+ wasm.wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(arg0, arg1, arg2, arg3, arg4);
620
620
  }
621
621
 
622
622
  function addToExternrefTable0(obj) {
Binary file
@@ -19,11 +19,11 @@ export const initLogLevel: (a: number, b: number) => [number, number];
19
19
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
20
20
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
21
21
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
22
- export const wasm_bindgen__closure__destroy__h622bad63540236e2: (a: number, b: number) => void;
23
- export const wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea: (a: number, b: number, c: any, d: number, e: any) => void;
24
- export const wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f: (a: number, b: number, c: any) => [number, number];
25
- export const wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8: (a: number, b: number, c: any, d: any) => void;
26
- export const wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21: (a: number, b: number, c: any, d: any) => void;
22
+ export const wasm_bindgen__closure__destroy__ha37ca52b8e37c989: (a: number, b: number) => void;
23
+ export const wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146: (a: number, b: number, c: any, d: number, e: any) => void;
24
+ export const wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986: (a: number, b: number, c: any) => [number, number];
25
+ export const wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a: (a: number, b: number, c: any, d: any) => void;
26
+ export const wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21: (a: number, b: number, c: any, d: any) => void;
27
27
  export const __wbindgen_malloc: (a: number, b: number) => number;
28
28
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
29
29
  export const __wbindgen_exn_store: (a: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noir-lang/acvm_js",
3
- "version": "1.0.0-beta.22",
3
+ "version": "1.0.0-beta.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,11 +42,11 @@
42
42
  "@web/test-runner": "^0.20.2",
43
43
  "@web/test-runner-playwright": "^0.11.1",
44
44
  "chai": "^6.2.2",
45
- "eslint": "^10.4.0",
46
- "eslint-plugin-prettier": "^5.5.5",
47
- "mocha": "^11.7.5",
48
- "prettier": "3.8.3",
49
- "tsx": "^4.21.0",
45
+ "eslint": "^10.6.0",
46
+ "eslint-plugin-prettier": "^5.5.6",
47
+ "mocha": "^11.7.6",
48
+ "prettier": "3.9.4",
49
+ "tsx": "^4.22.4",
50
50
  "typescript": "^6.0.3"
51
51
  }
52
52
  }
package/web/acvm_js.d.ts CHANGED
@@ -79,23 +79,23 @@ export function blake2s256(inputs: Uint8Array): Uint8Array;
79
79
 
80
80
  /**
81
81
  * Returns the `BuildInfo` object containing information about how the installed package was built.
82
- * @returns {BuildInfo} - Information on how the installed package was built.
82
+ * @returns {`BuildInfo`} - Information on how the installed package was built.
83
83
  */
84
84
  export function buildInfo(): BuildInfo;
85
85
 
86
86
  /**
87
87
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
88
88
  *
89
- * @param {WitnessMap} witness_map - A witness map.
90
- * @returns {Uint8Array} A compressed witness map
89
+ * @param {`WitnessMap`} `witness_map` - A witness map.
90
+ * @returns {`Uint8Array`} A compressed witness map
91
91
  */
92
92
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
93
93
 
94
94
  /**
95
95
  * Compresses a `WitnessStack` into the binary format outputted by Nargo.
96
96
  *
97
- * @param {WitnessStack} witness_stack - A witness stack.
98
- * @returns {Uint8Array} A compressed witness stack
97
+ * @param {`WitnessStack`} `witness_stack` - A witness stack.
98
+ * @returns {`Uint8Array`} A compressed witness stack
99
99
  */
100
100
  export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
101
101
 
@@ -103,16 +103,16 @@ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
103
103
  * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
104
104
  * This should be used to only fetch the witness map for the main function.
105
105
  *
106
- * @param {Uint8Array} compressed_witness - A compressed witness.
107
- * @returns {WitnessMap} The decompressed witness map.
106
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
107
+ * @returns {`WitnessMap`} The decompressed witness map.
108
108
  */
109
109
  export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
110
110
 
111
111
  /**
112
112
  * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
113
113
  *
114
- * @param {Uint8Array} compressed_witness - A compressed witness.
115
- * @returns {WitnessStack} The decompressed witness stack.
114
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
115
+ * @returns {`WitnessStack`} The decompressed witness stack.
116
116
  */
117
117
  export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
118
118
 
@@ -129,10 +129,10 @@ export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_byte
129
129
  /**
130
130
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
131
131
  *
132
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
133
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
134
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
135
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
132
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
133
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
134
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
135
+ * @returns {`WitnessMap`} The solved witness calculated by executing the circuit on the provided inputs.
136
136
  */
137
137
  export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
138
138
 
@@ -140,54 +140,54 @@ export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap,
140
140
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
141
141
  * This method also extracts the public return values from the solved witness into its own return witness.
142
142
  *
143
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
144
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
145
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
146
- * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
143
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
144
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
145
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
146
+ * @returns {`SolvedAndReturnWitness`} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
147
147
  */
148
148
  export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
149
149
 
150
150
  /**
151
151
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
152
152
  *
153
- * @param {Uint8Array} program - A serialized representation of an ACIR program
154
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
155
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
156
- * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
153
+ * @param {`Uint8Array`} program - A serialized representation of an ACIR program
154
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `program`.
155
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the program.
156
+ * @returns {`WitnessStack`} The solved witness calculated by executing the program on the provided inputs.
157
157
  */
158
158
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
159
159
 
160
160
  /**
161
161
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
162
162
  *
163
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
164
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
165
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
163
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
164
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
165
+ * @returns {`WitnessMap`} A witness map containing the circuit's public parameters.
166
166
  */
167
167
  export function getPublicParametersWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
168
168
 
169
169
  /**
170
170
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
171
171
  *
172
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
173
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
174
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
172
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
173
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
174
+ * @returns {`WitnessMap`} A witness map containing the circuit's public inputs.
175
175
  */
176
176
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
177
177
 
178
178
  /**
179
179
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
180
180
  *
181
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
182
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
183
- * @returns {WitnessMap} A witness map containing the circuit's return values.
181
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
182
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
183
+ * @returns {`WitnessMap`} A witness map containing the circuit's return values.
184
184
  */
185
185
  export function getReturnWitness(program: Uint8Array, witness_map: WitnessMap): WitnessMap;
186
186
 
187
187
  /**
188
188
  * Sets the package's logging level.
189
189
  *
190
- * @param {LogLevel} level - The maximum level of logging to be emitted.
190
+ * @param {`LogLevel`} level - The maximum level of logging to be emitted.
191
191
  */
192
192
  export function initLogLevel(filter: string): void;
193
193
 
@@ -223,11 +223,11 @@ export interface InitOutput {
223
223
  readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
224
224
  readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
225
225
  readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
226
- readonly wasm_bindgen__closure__destroy__h622bad63540236e2: (a: number, b: number) => void;
227
- readonly wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea: (a: number, b: number, c: any, d: number, e: any) => void;
228
- readonly wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f: (a: number, b: number, c: any) => [number, number];
229
- readonly wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8: (a: number, b: number, c: any, d: any) => void;
230
- readonly wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21: (a: number, b: number, c: any, d: any) => void;
226
+ readonly wasm_bindgen__closure__destroy__ha37ca52b8e37c989: (a: number, b: number) => void;
227
+ readonly wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146: (a: number, b: number, c: any, d: number, e: any) => void;
228
+ readonly wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986: (a: number, b: number, c: any) => [number, number];
229
+ readonly wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a: (a: number, b: number, c: any, d: any) => void;
230
+ readonly wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21: (a: number, b: number, c: any, d: any) => void;
231
231
  readonly __wbindgen_malloc: (a: number, b: number) => number;
232
232
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
233
233
  readonly __wbindgen_exn_store: (a: number) => void;
package/web/acvm_js.js CHANGED
@@ -27,7 +27,7 @@ export function blake2s256(inputs) {
27
27
 
28
28
  /**
29
29
  * Returns the `BuildInfo` object containing information about how the installed package was built.
30
- * @returns {BuildInfo} - Information on how the installed package was built.
30
+ * @returns {`BuildInfo`} - Information on how the installed package was built.
31
31
  */
32
32
  export function buildInfo() {
33
33
  const ret = wasm.buildInfo();
@@ -37,8 +37,8 @@ export function buildInfo() {
37
37
  /**
38
38
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
39
39
  *
40
- * @param {WitnessMap} witness_map - A witness map.
41
- * @returns {Uint8Array} A compressed witness map
40
+ * @param {`WitnessMap`} `witness_map` - A witness map.
41
+ * @returns {`Uint8Array`} A compressed witness map
42
42
  */
43
43
  export function compressWitness(witness_map) {
44
44
  const ret = wasm.compressWitness(witness_map);
@@ -53,8 +53,8 @@ export function compressWitness(witness_map) {
53
53
  /**
54
54
  * Compresses a `WitnessStack` into the binary format outputted by Nargo.
55
55
  *
56
- * @param {WitnessStack} witness_stack - A witness stack.
57
- * @returns {Uint8Array} A compressed witness stack
56
+ * @param {`WitnessStack`} `witness_stack` - A witness stack.
57
+ * @returns {`Uint8Array`} A compressed witness stack
58
58
  */
59
59
  export function compressWitnessStack(witness_stack) {
60
60
  const ret = wasm.compressWitnessStack(witness_stack);
@@ -70,8 +70,8 @@ export function compressWitnessStack(witness_stack) {
70
70
  * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
71
71
  * This should be used to only fetch the witness map for the main function.
72
72
  *
73
- * @param {Uint8Array} compressed_witness - A compressed witness.
74
- * @returns {WitnessMap} The decompressed witness map.
73
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
74
+ * @returns {`WitnessMap`} The decompressed witness map.
75
75
  */
76
76
  export function decompressWitness(compressed_witness) {
77
77
  const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
@@ -86,8 +86,8 @@ export function decompressWitness(compressed_witness) {
86
86
  /**
87
87
  * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
88
88
  *
89
- * @param {Uint8Array} compressed_witness - A compressed witness.
90
- * @returns {WitnessStack} The decompressed witness stack.
89
+ * @param {`Uint8Array`} `compressed_witness` - A compressed witness.
90
+ * @returns {`WitnessStack`} The decompressed witness stack.
91
91
  */
92
92
  export function decompressWitnessStack(compressed_witness) {
93
93
  const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
@@ -144,10 +144,10 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
144
144
  /**
145
145
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
146
146
  *
147
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
148
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
149
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
150
- * @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
147
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
148
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
149
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
150
+ * @returns {`WitnessMap`} The solved witness calculated by executing the circuit on the provided inputs.
151
151
  */
152
152
  export function executeCircuit(program, initial_witness, foreign_call_handler) {
153
153
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -160,10 +160,10 @@ export function executeCircuit(program, initial_witness, foreign_call_handler) {
160
160
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
161
161
  * This method also extracts the public return values from the solved witness into its own return witness.
162
162
  *
163
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
164
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
165
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
166
- * @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
163
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
164
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `circuit`..
165
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the circuit.
166
+ * @returns {`SolvedAndReturnWitness`} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
167
167
  */
168
168
  export function executeCircuitWithReturnWitness(program, initial_witness, foreign_call_handler) {
169
169
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -175,10 +175,10 @@ export function executeCircuitWithReturnWitness(program, initial_witness, foreig
175
175
  /**
176
176
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
177
177
  *
178
- * @param {Uint8Array} program - A serialized representation of an ACIR program
179
- * @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
180
- * @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
181
- * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
178
+ * @param {`Uint8Array`} program - A serialized representation of an ACIR program
179
+ * @param {`WitnessMap`} `initial_witness` - The initial witness map defining all of the inputs to `program`.
180
+ * @param {`ForeignCallHandler`} `foreign_call_handler` - A callback to process any foreign calls from the program.
181
+ * @returns {`WitnessStack`} The solved witness calculated by executing the program on the provided inputs.
182
182
  */
183
183
  export function executeProgram(program, initial_witness, foreign_call_handler) {
184
184
  const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
@@ -190,9 +190,9 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
190
190
  /**
191
191
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
192
192
  *
193
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
194
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
195
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
193
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
194
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
195
+ * @returns {`WitnessMap`} A witness map containing the circuit's public parameters.
196
196
  * @param {Uint8Array} program
197
197
  * @param {WitnessMap} solved_witness
198
198
  * @returns {WitnessMap}
@@ -210,9 +210,9 @@ export function getPublicParametersWitness(program, solved_witness) {
210
210
  /**
211
211
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
212
212
  *
213
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
214
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
215
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
213
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
214
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
215
+ * @returns {`WitnessMap`} A witness map containing the circuit's public inputs.
216
216
  * @param {Uint8Array} program
217
217
  * @param {WitnessMap} solved_witness
218
218
  * @returns {WitnessMap}
@@ -230,9 +230,9 @@ export function getPublicWitness(program, solved_witness) {
230
230
  /**
231
231
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
232
232
  *
233
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
234
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
235
- * @returns {WitnessMap} A witness map containing the circuit's return values.
233
+ * @param {`Uint8Array`} circuit - A serialized representation of an ACIR circuit
234
+ * @param {`WitnessMap`} `witness_map` - The completed witness map after executing the circuit.
235
+ * @returns {`WitnessMap`} A witness map containing the circuit's return values.
236
236
  * @param {Uint8Array} program
237
237
  * @param {WitnessMap} witness_map
238
238
  * @returns {WitnessMap}
@@ -250,7 +250,7 @@ export function getReturnWitness(program, witness_map) {
250
250
  /**
251
251
  * Sets the package's logging level.
252
252
  *
253
- * @param {LogLevel} level - The maximum level of logging to be emitted.
253
+ * @param {`LogLevel`} level - The maximum level of logging to be emitted.
254
254
  */
255
255
  export function initLogLevel(filter) {
256
256
  const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -339,11 +339,11 @@ function __wbg_get_imports() {
339
339
  const ret = arg0.call(arg1, arg2, arg3);
340
340
  return ret;
341
341
  }, arguments); },
342
- __wbg_constructor_9c2bd46a7dce7d92: function(arg0) {
342
+ __wbg_constructor_5e1ddeb93a8bf3bc: function(arg0) {
343
343
  const ret = new Error(arg0);
344
344
  return ret;
345
345
  },
346
- __wbg_constructor_dab9c5e2cb00fd27: function(arg0) {
346
+ __wbg_constructor_f99e6ead8fc6ac5d: function(arg0) {
347
347
  const ret = new Error(arg0);
348
348
  return ret;
349
349
  },
@@ -377,7 +377,7 @@ function __wbg_get_imports() {
377
377
  const a = state0.a;
378
378
  state0.a = 0;
379
379
  try {
380
- return wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(a, state0.b, arg0, arg1);
380
+ return wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(a, state0.b, arg0, arg1);
381
381
  } finally {
382
382
  state0.a = a;
383
383
  }
@@ -394,7 +394,7 @@ function __wbg_get_imports() {
394
394
  const a = state0.a;
395
395
  state0.a = 0;
396
396
  try {
397
- return wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(a, state0.b, arg0, arg1, arg2);
397
+ return wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(a, state0.b, arg0, arg1, arg2);
398
398
  } finally {
399
399
  state0.a = a;
400
400
  }
@@ -442,20 +442,20 @@ function __wbg_get_imports() {
442
442
  const ret = new Error();
443
443
  return ret;
444
444
  },
445
- __wbg_new_602e1a672b1320f2: function() {
446
- const ret = new Map();
445
+ __wbg_new_2774ec508e277800: function() {
446
+ const ret = new Array();
447
447
  return ret;
448
448
  },
449
449
  __wbg_new_92df58a8ec3bfb6b: function() {
450
450
  const ret = new Map();
451
451
  return ret;
452
452
  },
453
- __wbg_new_9d1883f62bc40b5c: function() {
453
+ __wbg_new_cbee8c0d5c479eac: function() {
454
454
  const ret = new Array();
455
455
  return ret;
456
456
  },
457
- __wbg_new_cbee8c0d5c479eac: function() {
458
- const ret = new Array();
457
+ __wbg_new_eb383269e69e5c18: function() {
458
+ const ret = new Map();
459
459
  return ret;
460
460
  },
461
461
  __wbg_new_typed_8258a0d8488ef2a2: function(arg0, arg1) {
@@ -465,7 +465,7 @@ function __wbg_get_imports() {
465
465
  const a = state0.a;
466
466
  state0.a = 0;
467
467
  try {
468
- return wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(a, state0.b, arg0, arg1);
468
+ return wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(a, state0.b, arg0, arg1);
469
469
  } finally {
470
470
  state0.a = a;
471
471
  }
@@ -552,8 +552,8 @@ function __wbg_get_imports() {
552
552
  console.warn(arg0);
553
553
  },
554
554
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
555
- // Cast intrinsic for `Closure(Closure { dtor_idx: 475, function: Function { arguments: [Externref], shim_idx: 476, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
556
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h622bad63540236e2, wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f);
555
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 476, function: Function { arguments: [Externref], shim_idx: 477, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
556
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__ha37ca52b8e37c989, wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986);
557
557
  return ret;
558
558
  },
559
559
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -582,23 +582,23 @@ function __wbg_get_imports() {
582
582
  };
583
583
  }
584
584
 
585
- function wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f(arg0, arg1, arg2) {
586
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f(arg0, arg1, arg2);
585
+ function wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986(arg0, arg1, arg2) {
586
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986(arg0, arg1, arg2);
587
587
  if (ret[1]) {
588
588
  throw takeFromExternrefTable0(ret[0]);
589
589
  }
590
590
  }
591
591
 
592
- function wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(arg0, arg1, arg2, arg3) {
593
- wasm.wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8(arg0, arg1, arg2, arg3);
592
+ function wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(arg0, arg1, arg2, arg3) {
593
+ wasm.wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a(arg0, arg1, arg2, arg3);
594
594
  }
595
595
 
596
- function wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(arg0, arg1, arg2, arg3) {
597
- wasm.wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21(arg0, arg1, arg2, arg3);
596
+ function wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(arg0, arg1, arg2, arg3) {
597
+ wasm.wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21(arg0, arg1, arg2, arg3);
598
598
  }
599
599
 
600
- function wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(arg0, arg1, arg2, arg3, arg4) {
601
- wasm.wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea(arg0, arg1, arg2, arg3, arg4);
600
+ function wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(arg0, arg1, arg2, arg3, arg4) {
601
+ wasm.wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146(arg0, arg1, arg2, arg3, arg4);
602
602
  }
603
603
 
604
604
  function addToExternrefTable0(obj) {
Binary file
@@ -19,11 +19,11 @@ export const initLogLevel: (a: number, b: number) => [number, number];
19
19
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
20
20
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
21
21
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
22
- export const wasm_bindgen__closure__destroy__h622bad63540236e2: (a: number, b: number) => void;
23
- export const wasm_bindgen__convert__closures_____invoke__h2a81a24b10fc6cea: (a: number, b: number, c: any, d: number, e: any) => void;
24
- export const wasm_bindgen__convert__closures_____invoke__h9b9b5ed547e2ba3f: (a: number, b: number, c: any) => [number, number];
25
- export const wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8: (a: number, b: number, c: any, d: any) => void;
26
- export const wasm_bindgen__convert__closures_____invoke__h1e56d78f2a0bfba8_21: (a: number, b: number, c: any, d: any) => void;
22
+ export const wasm_bindgen__closure__destroy__ha37ca52b8e37c989: (a: number, b: number) => void;
23
+ export const wasm_bindgen__convert__closures_____invoke__h0e824eb4edcd1146: (a: number, b: number, c: any, d: number, e: any) => void;
24
+ export const wasm_bindgen__convert__closures_____invoke__h1ab3cc7820e94986: (a: number, b: number, c: any) => [number, number];
25
+ export const wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a: (a: number, b: number, c: any, d: any) => void;
26
+ export const wasm_bindgen__convert__closures_____invoke__h844e7784b3b6aa2a_21: (a: number, b: number, c: any, d: any) => void;
27
27
  export const __wbindgen_malloc: (a: number, b: number) => number;
28
28
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
29
29
  export const __wbindgen_exn_store: (a: number) => void;