@aztec/noir-acvm_js 4.0.0-nightly.20260107 → 4.0.0-nightly.20260108

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.
@@ -1,39 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Returns the `BuildInfo` object containing information about how the installed package was built.
5
- * @returns {BuildInfo} - Information on how the installed package was built.
6
- */
7
- export function buildInfo(): BuildInfo;
8
- /**
9
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
10
- *
11
- * @param {WitnessMap} witness_map - A witness map.
12
- * @returns {Uint8Array} A compressed witness map
13
- */
14
- export function compressWitness(witness_map: WitnessMap): Uint8Array;
15
- /**
16
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
17
- * This should be used to only fetch the witness map for the main function.
18
- *
19
- * @param {Uint8Array} compressed_witness - A compressed witness.
20
- * @returns {WitnessMap} The decompressed witness map.
21
- */
22
- export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
23
- /**
24
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
25
- *
26
- * @param {WitnessStack} witness_stack - A witness stack.
27
- * @returns {Uint8Array} A compressed witness stack
28
- */
29
- export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
30
- /**
31
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
4
+ * Sets the package's logging level.
32
5
  *
33
- * @param {Uint8Array} compressed_witness - A compressed witness.
34
- * @returns {WitnessStack} The decompressed witness stack.
6
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
35
7
  */
36
- export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
8
+ export function initLogLevel(filter: string): void;
37
9
  /**
38
10
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
39
11
  *
@@ -62,12 +34,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
62
34
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
63
35
  */
64
36
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
65
- /**
66
- * Sets the package's logging level.
67
- *
68
- * @param {LogLevel} level - The maximum level of logging to be emitted.
69
- */
70
- export function initLogLevel(filter: string): void;
71
37
  /**
72
38
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
73
39
  *
@@ -116,18 +82,66 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
116
82
  * Verifies a ECDSA signature over the secp256r1 curve.
117
83
  */
118
84
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
119
-
120
85
  /**
121
- * @typedef {Object} BuildInfo - Information about how the installed package was built
122
- * @property {string} gitHash - The hash of the git commit from which the package was built.
123
- * @property {string} version - The version of the package at the built git commit.
124
- * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
86
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
87
+ *
88
+ * @param {WitnessMap} witness_map - A witness map.
89
+ * @returns {Uint8Array} A compressed witness map
125
90
  */
126
- export type BuildInfo = {
127
- gitHash: string;
128
- version: string;
129
- dirty: string;
130
- }
91
+ export function compressWitness(witness_map: WitnessMap): Uint8Array;
92
+ /**
93
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
94
+ * This should be used to only fetch the witness map for the main function.
95
+ *
96
+ * @param {Uint8Array} compressed_witness - A compressed witness.
97
+ * @returns {WitnessMap} The decompressed witness map.
98
+ */
99
+ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
100
+ /**
101
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
102
+ *
103
+ * @param {WitnessStack} witness_stack - A witness stack.
104
+ * @returns {Uint8Array} A compressed witness stack
105
+ */
106
+ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
107
+ /**
108
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
109
+ *
110
+ * @param {Uint8Array} compressed_witness - A compressed witness.
111
+ * @returns {WitnessStack} The decompressed witness stack.
112
+ */
113
+ export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
114
+ /**
115
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
116
+ * @returns {BuildInfo} - Information on how the installed package was built.
117
+ */
118
+ export function buildInfo(): BuildInfo;
119
+
120
+ export type RawAssertionPayload = {
121
+ selector: string;
122
+ data: string[];
123
+ };
124
+
125
+ export type ExecutionError = Error & {
126
+ callStack?: string[];
127
+ rawAssertionPayload?: RawAssertionPayload;
128
+ acirFunctionId?: number;
129
+ brilligFunctionId?: number;
130
+ };
131
+
132
+
133
+
134
+ export type ForeignCallInput = string[]
135
+ export type ForeignCallOutput = string | string[]
136
+
137
+ /**
138
+ * A callback which performs an foreign call and returns the response.
139
+ * @callback ForeignCallHandler
140
+ * @param {string} name - The identifier for the type of foreign call being performed.
141
+ * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
142
+ * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
143
+ */
144
+ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
131
145
 
132
146
 
133
147
 
@@ -155,30 +169,16 @@ export type WitnessStack = Array<StackItem>;
155
169
 
156
170
 
157
171
 
158
- export type ForeignCallInput = string[]
159
- export type ForeignCallOutput = string | string[]
160
-
161
172
  /**
162
- * A callback which performs an foreign call and returns the response.
163
- * @callback ForeignCallHandler
164
- * @param {string} name - The identifier for the type of foreign call being performed.
165
- * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
166
- * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
167
- */
168
- export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
169
-
170
-
171
-
172
- export type RawAssertionPayload = {
173
- selector: string;
174
- data: string[];
175
- };
176
-
177
- export type ExecutionError = Error & {
178
- callStack?: string[];
179
- rawAssertionPayload?: RawAssertionPayload;
180
- acirFunctionId?: number;
181
- brilligFunctionId?: number;
182
- };
173
+ * @typedef {Object} BuildInfo - Information about how the installed package was built
174
+ * @property {string} gitHash - The hash of the git commit from which the package was built.
175
+ * @property {string} version - The version of the package at the built git commit.
176
+ * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
177
+ */
178
+ export type BuildInfo = {
179
+ gitHash: string;
180
+ version: string;
181
+ dirty: string;
182
+ }
183
183
 
184
184
 
package/nodejs/acvm_js.js CHANGED
@@ -201,39 +201,24 @@ function debugString(val) {
201
201
  // TODO we could test for more things here, like `Set`s and `Map`s.
202
202
  return className;
203
203
  }
204
- /**
205
- * Returns the `BuildInfo` object containing information about how the installed package was built.
206
- * @returns {BuildInfo} - Information on how the installed package was built.
207
- */
208
- module.exports.buildInfo = function() {
209
- const ret = wasm.buildInfo();
210
- return ret;
211
- };
212
204
 
213
205
  function takeFromExternrefTable0(idx) {
214
206
  const value = wasm.__wbindgen_export_2.get(idx);
215
207
  wasm.__externref_table_dealloc(idx);
216
208
  return value;
217
209
  }
218
-
219
- function getArrayU8FromWasm0(ptr, len) {
220
- ptr = ptr >>> 0;
221
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
222
- }
223
210
  /**
224
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
211
+ * Sets the package's logging level.
225
212
  *
226
- * @param {WitnessMap} witness_map - A witness map.
227
- * @returns {Uint8Array} A compressed witness map
213
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
228
214
  */
229
- module.exports.compressWitness = function(witness_map) {
230
- const ret = wasm.compressWitness(witness_map);
231
- if (ret[3]) {
232
- throw takeFromExternrefTable0(ret[2]);
215
+ module.exports.initLogLevel = function(filter) {
216
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
217
+ const len0 = WASM_VECTOR_LEN;
218
+ const ret = wasm.initLogLevel(ptr0, len0);
219
+ if (ret[1]) {
220
+ throw takeFromExternrefTable0(ret[0]);
233
221
  }
234
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
235
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
236
- return v1;
237
222
  };
238
223
 
239
224
  function passArray8ToWasm0(arg, malloc) {
@@ -242,55 +227,6 @@ function passArray8ToWasm0(arg, malloc) {
242
227
  WASM_VECTOR_LEN = arg.length;
243
228
  return ptr;
244
229
  }
245
- /**
246
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
247
- * This should be used to only fetch the witness map for the main function.
248
- *
249
- * @param {Uint8Array} compressed_witness - A compressed witness.
250
- * @returns {WitnessMap} The decompressed witness map.
251
- */
252
- module.exports.decompressWitness = function(compressed_witness) {
253
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
254
- const len0 = WASM_VECTOR_LEN;
255
- const ret = wasm.decompressWitness(ptr0, len0);
256
- if (ret[2]) {
257
- throw takeFromExternrefTable0(ret[1]);
258
- }
259
- return takeFromExternrefTable0(ret[0]);
260
- };
261
-
262
- /**
263
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
264
- *
265
- * @param {WitnessStack} witness_stack - A witness stack.
266
- * @returns {Uint8Array} A compressed witness stack
267
- */
268
- module.exports.compressWitnessStack = function(witness_stack) {
269
- const ret = wasm.compressWitnessStack(witness_stack);
270
- if (ret[3]) {
271
- throw takeFromExternrefTable0(ret[2]);
272
- }
273
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
274
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
275
- return v1;
276
- };
277
-
278
- /**
279
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
280
- *
281
- * @param {Uint8Array} compressed_witness - A compressed witness.
282
- * @returns {WitnessStack} The decompressed witness stack.
283
- */
284
- module.exports.decompressWitnessStack = function(compressed_witness) {
285
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
286
- const len0 = WASM_VECTOR_LEN;
287
- const ret = wasm.decompressWitnessStack(ptr0, len0);
288
- if (ret[2]) {
289
- throw takeFromExternrefTable0(ret[1]);
290
- }
291
- return takeFromExternrefTable0(ret[0]);
292
- };
293
-
294
230
  /**
295
231
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
296
232
  *
@@ -337,20 +273,6 @@ module.exports.executeProgram = function(program, initial_witness, foreign_call_
337
273
  return ret;
338
274
  };
339
275
 
340
- /**
341
- * Sets the package's logging level.
342
- *
343
- * @param {LogLevel} level - The maximum level of logging to be emitted.
344
- */
345
- module.exports.initLogLevel = function(filter) {
346
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
347
- const len0 = WASM_VECTOR_LEN;
348
- const ret = wasm.initLogLevel(ptr0, len0);
349
- if (ret[1]) {
350
- throw takeFromExternrefTable0(ret[0]);
351
- }
352
- };
353
-
354
276
  /**
355
277
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
356
278
  *
@@ -470,6 +392,10 @@ module.exports.sha256_compression = function(inputs, state) {
470
392
  return v3;
471
393
  };
472
394
 
395
+ function getArrayU8FromWasm0(ptr, len) {
396
+ ptr = ptr >>> 0;
397
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
398
+ }
473
399
  /**
474
400
  * Calculates the Blake2s256 hash of the input bytes
475
401
  * @param {Uint8Array} inputs
@@ -526,16 +452,90 @@ module.exports.ecdsa_secp256r1_verify = function(hashed_msg, public_key_x_bytes,
526
452
  return ret !== 0;
527
453
  };
528
454
 
455
+ /**
456
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
457
+ *
458
+ * @param {WitnessMap} witness_map - A witness map.
459
+ * @returns {Uint8Array} A compressed witness map
460
+ */
461
+ module.exports.compressWitness = function(witness_map) {
462
+ const ret = wasm.compressWitness(witness_map);
463
+ if (ret[3]) {
464
+ throw takeFromExternrefTable0(ret[2]);
465
+ }
466
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
467
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
468
+ return v1;
469
+ };
470
+
471
+ /**
472
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
473
+ * This should be used to only fetch the witness map for the main function.
474
+ *
475
+ * @param {Uint8Array} compressed_witness - A compressed witness.
476
+ * @returns {WitnessMap} The decompressed witness map.
477
+ */
478
+ module.exports.decompressWitness = function(compressed_witness) {
479
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
480
+ const len0 = WASM_VECTOR_LEN;
481
+ const ret = wasm.decompressWitness(ptr0, len0);
482
+ if (ret[2]) {
483
+ throw takeFromExternrefTable0(ret[1]);
484
+ }
485
+ return takeFromExternrefTable0(ret[0]);
486
+ };
487
+
488
+ /**
489
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
490
+ *
491
+ * @param {WitnessStack} witness_stack - A witness stack.
492
+ * @returns {Uint8Array} A compressed witness stack
493
+ */
494
+ module.exports.compressWitnessStack = function(witness_stack) {
495
+ const ret = wasm.compressWitnessStack(witness_stack);
496
+ if (ret[3]) {
497
+ throw takeFromExternrefTable0(ret[2]);
498
+ }
499
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
500
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
501
+ return v1;
502
+ };
503
+
504
+ /**
505
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
506
+ *
507
+ * @param {Uint8Array} compressed_witness - A compressed witness.
508
+ * @returns {WitnessStack} The decompressed witness stack.
509
+ */
510
+ module.exports.decompressWitnessStack = function(compressed_witness) {
511
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
512
+ const len0 = WASM_VECTOR_LEN;
513
+ const ret = wasm.decompressWitnessStack(ptr0, len0);
514
+ if (ret[2]) {
515
+ throw takeFromExternrefTable0(ret[1]);
516
+ }
517
+ return takeFromExternrefTable0(ret[0]);
518
+ };
519
+
520
+ /**
521
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
522
+ * @returns {BuildInfo} - Information on how the installed package was built.
523
+ */
524
+ module.exports.buildInfo = function() {
525
+ const ret = wasm.buildInfo();
526
+ return ret;
527
+ };
528
+
529
529
  function __wbg_adapter_30(arg0, arg1, arg2) {
530
- wasm.closure576_externref_shim(arg0, arg1, arg2);
530
+ wasm.closure490_externref_shim(arg0, arg1, arg2);
531
531
  }
532
532
 
533
533
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
534
- wasm.closure1171_externref_shim(arg0, arg1, arg2, arg3, arg4);
534
+ wasm.closure996_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
535
  }
536
536
 
537
537
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
538
- wasm.closure1175_externref_shim(arg0, arg1, arg2, arg3);
538
+ wasm.closure1000_externref_shim(arg0, arg1, arg2, arg3);
539
539
  }
540
540
 
541
541
  module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
@@ -553,12 +553,12 @@ module.exports.__wbg_call_833bed5770ea2041 = function() { return handleError(fun
553
553
  return ret;
554
554
  }, arguments) };
555
555
 
556
- module.exports.__wbg_constructor_3aef6db465a4d40f = function(arg0) {
556
+ module.exports.__wbg_constructor_536364f6bcd4616b = function(arg0) {
557
557
  const ret = new Error(arg0);
558
558
  return ret;
559
559
  };
560
560
 
561
- module.exports.__wbg_constructor_9cd41836d6991f28 = function(arg0) {
561
+ module.exports.__wbg_constructor_66e92e9c3ecae9e8 = function(arg0) {
562
562
  const ret = new Error(arg0);
563
563
  return ret;
564
564
  };
@@ -689,7 +689,7 @@ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
689
689
  return ret;
690
690
  };
691
691
 
692
- module.exports.__wbg_new_8e773a1674584163 = function() {
692
+ module.exports.__wbg_new_9f501325818b4158 = function() {
693
693
  const ret = new Array();
694
694
  return ret;
695
695
  };
@@ -699,7 +699,7 @@ module.exports.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
699
699
  return ret;
700
700
  };
701
701
 
702
- module.exports.__wbg_new_dd245daac54dc568 = function() {
702
+ module.exports.__wbg_new_ec40611a7805f1f0 = function() {
703
703
  const ret = new Map();
704
704
  return ret;
705
705
  };
@@ -813,8 +813,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
813
813
  return ret;
814
814
  };
815
815
 
816
- module.exports.__wbindgen_closure_wrapper1971 = function(arg0, arg1, arg2) {
817
- const ret = makeMutClosure(arg0, arg1, 577, __wbg_adapter_30);
816
+ module.exports.__wbindgen_closure_wrapper1603 = function(arg0, arg1, arg2) {
817
+ const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_30);
818
818
  return ret;
819
819
  };
820
820
 
Binary file
@@ -1,15 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const buildInfo: () => any;
5
- export const compressWitness: (a: any) => [number, number, number, number];
6
- export const decompressWitness: (a: number, b: number) => [number, number, number];
7
- export const compressWitnessStack: (a: any) => [number, number, number, number];
8
- export const decompressWitnessStack: (a: number, b: number) => [number, number, number];
4
+ export const initLogLevel: (a: number, b: number) => [number, number];
9
5
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
10
6
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
11
7
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
12
- export const initLogLevel: (a: number, b: number) => [number, number];
13
8
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
14
9
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
15
10
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
@@ -19,6 +14,11 @@ export const sha256_compression: (a: number, b: number, c: number, d: number) =>
19
14
  export const blake2s256: (a: number, b: number) => [number, number];
20
15
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
21
16
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
17
+ export const compressWitness: (a: any) => [number, number, number, number];
18
+ export const decompressWitness: (a: number, b: number) => [number, number, number];
19
+ export const compressWitnessStack: (a: any) => [number, number, number, number];
20
+ export const decompressWitnessStack: (a: number, b: number) => [number, number, number];
21
+ export const buildInfo: () => any;
22
22
  export const __wbindgen_exn_store: (a: number) => void;
23
23
  export const __externref_table_alloc: () => number;
24
24
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -27,7 +27,7 @@ export const __wbindgen_malloc: (a: number, b: number) => number;
27
27
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
28
28
  export const __wbindgen_export_6: WebAssembly.Table;
29
29
  export const __externref_table_dealloc: (a: number) => void;
30
- export const closure576_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1171_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1175_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure490_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure996_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1000_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
33
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/noir-acvm_js",
3
- "version": "4.0.0-nightly.20260107",
3
+ "version": "4.0.0-nightly.20260108",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -41,11 +41,11 @@
41
41
  "@web/dev-server-esbuild": "^1.0.4",
42
42
  "@web/test-runner": "^0.20.2",
43
43
  "@web/test-runner-playwright": "^0.11.1",
44
- "chai": "^4.5.0",
45
- "eslint": "^9.39.1",
44
+ "chai": "^6.2.2",
45
+ "eslint": "^9.39.2",
46
46
  "eslint-plugin-prettier": "^5.5.4",
47
- "mocha": "^11.5.0",
48
- "prettier": "3.7.3",
47
+ "mocha": "^11.7.5",
48
+ "prettier": "3.7.4",
49
49
  "ts-node": "^10.9.2",
50
50
  "typescript": "^5.8.3"
51
51
  }
package/web/acvm_js.d.ts CHANGED
@@ -1,39 +1,11 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Returns the `BuildInfo` object containing information about how the installed package was built.
5
- * @returns {BuildInfo} - Information on how the installed package was built.
6
- */
7
- export function buildInfo(): BuildInfo;
8
- /**
9
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
10
- *
11
- * @param {WitnessMap} witness_map - A witness map.
12
- * @returns {Uint8Array} A compressed witness map
13
- */
14
- export function compressWitness(witness_map: WitnessMap): Uint8Array;
15
- /**
16
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
17
- * This should be used to only fetch the witness map for the main function.
18
- *
19
- * @param {Uint8Array} compressed_witness - A compressed witness.
20
- * @returns {WitnessMap} The decompressed witness map.
21
- */
22
- export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
23
- /**
24
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
25
- *
26
- * @param {WitnessStack} witness_stack - A witness stack.
27
- * @returns {Uint8Array} A compressed witness stack
28
- */
29
- export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
30
- /**
31
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
4
+ * Sets the package's logging level.
32
5
  *
33
- * @param {Uint8Array} compressed_witness - A compressed witness.
34
- * @returns {WitnessStack} The decompressed witness stack.
6
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
35
7
  */
36
- export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
8
+ export function initLogLevel(filter: string): void;
37
9
  /**
38
10
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
39
11
  *
@@ -62,12 +34,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
62
34
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
63
35
  */
64
36
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
65
- /**
66
- * Sets the package's logging level.
67
- *
68
- * @param {LogLevel} level - The maximum level of logging to be emitted.
69
- */
70
- export function initLogLevel(filter: string): void;
71
37
  /**
72
38
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
73
39
  *
@@ -116,18 +82,66 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
116
82
  * Verifies a ECDSA signature over the secp256r1 curve.
117
83
  */
118
84
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
119
-
120
85
  /**
121
- * @typedef {Object} BuildInfo - Information about how the installed package was built
122
- * @property {string} gitHash - The hash of the git commit from which the package was built.
123
- * @property {string} version - The version of the package at the built git commit.
124
- * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
86
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
87
+ *
88
+ * @param {WitnessMap} witness_map - A witness map.
89
+ * @returns {Uint8Array} A compressed witness map
125
90
  */
126
- export type BuildInfo = {
127
- gitHash: string;
128
- version: string;
129
- dirty: string;
130
- }
91
+ export function compressWitness(witness_map: WitnessMap): Uint8Array;
92
+ /**
93
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
94
+ * This should be used to only fetch the witness map for the main function.
95
+ *
96
+ * @param {Uint8Array} compressed_witness - A compressed witness.
97
+ * @returns {WitnessMap} The decompressed witness map.
98
+ */
99
+ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
100
+ /**
101
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
102
+ *
103
+ * @param {WitnessStack} witness_stack - A witness stack.
104
+ * @returns {Uint8Array} A compressed witness stack
105
+ */
106
+ export function compressWitnessStack(witness_stack: WitnessStack): Uint8Array;
107
+ /**
108
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
109
+ *
110
+ * @param {Uint8Array} compressed_witness - A compressed witness.
111
+ * @returns {WitnessStack} The decompressed witness stack.
112
+ */
113
+ export function decompressWitnessStack(compressed_witness: Uint8Array): WitnessStack;
114
+ /**
115
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
116
+ * @returns {BuildInfo} - Information on how the installed package was built.
117
+ */
118
+ export function buildInfo(): BuildInfo;
119
+
120
+ export type RawAssertionPayload = {
121
+ selector: string;
122
+ data: string[];
123
+ };
124
+
125
+ export type ExecutionError = Error & {
126
+ callStack?: string[];
127
+ rawAssertionPayload?: RawAssertionPayload;
128
+ acirFunctionId?: number;
129
+ brilligFunctionId?: number;
130
+ };
131
+
132
+
133
+
134
+ export type ForeignCallInput = string[]
135
+ export type ForeignCallOutput = string | string[]
136
+
137
+ /**
138
+ * A callback which performs an foreign call and returns the response.
139
+ * @callback ForeignCallHandler
140
+ * @param {string} name - The identifier for the type of foreign call being performed.
141
+ * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
142
+ * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
143
+ */
144
+ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
131
145
 
132
146
 
133
147
 
@@ -155,31 +169,17 @@ export type WitnessStack = Array<StackItem>;
155
169
 
156
170
 
157
171
 
158
- export type ForeignCallInput = string[]
159
- export type ForeignCallOutput = string | string[]
160
-
161
172
  /**
162
- * A callback which performs an foreign call and returns the response.
163
- * @callback ForeignCallHandler
164
- * @param {string} name - The identifier for the type of foreign call being performed.
165
- * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
166
- * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
167
- */
168
- export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
169
-
170
-
171
-
172
- export type RawAssertionPayload = {
173
- selector: string;
174
- data: string[];
175
- };
176
-
177
- export type ExecutionError = Error & {
178
- callStack?: string[];
179
- rawAssertionPayload?: RawAssertionPayload;
180
- acirFunctionId?: number;
181
- brilligFunctionId?: number;
182
- };
173
+ * @typedef {Object} BuildInfo - Information about how the installed package was built
174
+ * @property {string} gitHash - The hash of the git commit from which the package was built.
175
+ * @property {string} version - The version of the package at the built git commit.
176
+ * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
177
+ */
178
+ export type BuildInfo = {
179
+ gitHash: string;
180
+ version: string;
181
+ dirty: string;
182
+ }
183
183
 
184
184
 
185
185
 
@@ -187,15 +187,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
187
187
 
188
188
  export interface InitOutput {
189
189
  readonly memory: WebAssembly.Memory;
190
- readonly buildInfo: () => any;
191
- readonly compressWitness: (a: any) => [number, number, number, number];
192
- readonly decompressWitness: (a: number, b: number) => [number, number, number];
193
- readonly compressWitnessStack: (a: any) => [number, number, number, number];
194
- readonly decompressWitnessStack: (a: number, b: number) => [number, number, number];
190
+ readonly initLogLevel: (a: number, b: number) => [number, number];
195
191
  readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
196
192
  readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
197
193
  readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
198
- readonly initLogLevel: (a: number, b: number) => [number, number];
199
194
  readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
200
195
  readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
201
196
  readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
@@ -205,6 +200,11 @@ export interface InitOutput {
205
200
  readonly blake2s256: (a: number, b: number) => [number, number];
206
201
  readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
207
202
  readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
203
+ readonly compressWitness: (a: any) => [number, number, number, number];
204
+ readonly decompressWitness: (a: number, b: number) => [number, number, number];
205
+ readonly compressWitnessStack: (a: any) => [number, number, number, number];
206
+ readonly decompressWitnessStack: (a: number, b: number) => [number, number, number];
207
+ readonly buildInfo: () => any;
208
208
  readonly __wbindgen_exn_store: (a: number) => void;
209
209
  readonly __externref_table_alloc: () => number;
210
210
  readonly __wbindgen_export_2: WebAssembly.Table;
@@ -213,9 +213,9 @@ export interface InitOutput {
213
213
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
214
214
  readonly __wbindgen_export_6: WebAssembly.Table;
215
215
  readonly __externref_table_dealloc: (a: number) => void;
216
- readonly closure576_externref_shim: (a: number, b: number, c: any) => void;
217
- readonly closure1171_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
- readonly closure1175_externref_shim: (a: number, b: number, c: any, d: any) => void;
216
+ readonly closure490_externref_shim: (a: number, b: number, c: any) => void;
217
+ readonly closure996_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
+ readonly closure1000_externref_shim: (a: number, b: number, c: any, d: any) => void;
219
219
  readonly __wbindgen_start: () => void;
220
220
  }
221
221
 
package/web/acvm_js.js CHANGED
@@ -197,39 +197,24 @@ function debugString(val) {
197
197
  // TODO we could test for more things here, like `Set`s and `Map`s.
198
198
  return className;
199
199
  }
200
- /**
201
- * Returns the `BuildInfo` object containing information about how the installed package was built.
202
- * @returns {BuildInfo} - Information on how the installed package was built.
203
- */
204
- export function buildInfo() {
205
- const ret = wasm.buildInfo();
206
- return ret;
207
- }
208
200
 
209
201
  function takeFromExternrefTable0(idx) {
210
202
  const value = wasm.__wbindgen_export_2.get(idx);
211
203
  wasm.__externref_table_dealloc(idx);
212
204
  return value;
213
205
  }
214
-
215
- function getArrayU8FromWasm0(ptr, len) {
216
- ptr = ptr >>> 0;
217
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
218
- }
219
206
  /**
220
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
207
+ * Sets the package's logging level.
221
208
  *
222
- * @param {WitnessMap} witness_map - A witness map.
223
- * @returns {Uint8Array} A compressed witness map
209
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
224
210
  */
225
- export function compressWitness(witness_map) {
226
- const ret = wasm.compressWitness(witness_map);
227
- if (ret[3]) {
228
- throw takeFromExternrefTable0(ret[2]);
211
+ export function initLogLevel(filter) {
212
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
213
+ const len0 = WASM_VECTOR_LEN;
214
+ const ret = wasm.initLogLevel(ptr0, len0);
215
+ if (ret[1]) {
216
+ throw takeFromExternrefTable0(ret[0]);
229
217
  }
230
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
231
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
232
- return v1;
233
218
  }
234
219
 
235
220
  function passArray8ToWasm0(arg, malloc) {
@@ -238,55 +223,6 @@ function passArray8ToWasm0(arg, malloc) {
238
223
  WASM_VECTOR_LEN = arg.length;
239
224
  return ptr;
240
225
  }
241
- /**
242
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
243
- * This should be used to only fetch the witness map for the main function.
244
- *
245
- * @param {Uint8Array} compressed_witness - A compressed witness.
246
- * @returns {WitnessMap} The decompressed witness map.
247
- */
248
- export function decompressWitness(compressed_witness) {
249
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
250
- const len0 = WASM_VECTOR_LEN;
251
- const ret = wasm.decompressWitness(ptr0, len0);
252
- if (ret[2]) {
253
- throw takeFromExternrefTable0(ret[1]);
254
- }
255
- return takeFromExternrefTable0(ret[0]);
256
- }
257
-
258
- /**
259
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
260
- *
261
- * @param {WitnessStack} witness_stack - A witness stack.
262
- * @returns {Uint8Array} A compressed witness stack
263
- */
264
- export function compressWitnessStack(witness_stack) {
265
- const ret = wasm.compressWitnessStack(witness_stack);
266
- if (ret[3]) {
267
- throw takeFromExternrefTable0(ret[2]);
268
- }
269
- var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
270
- wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
271
- return v1;
272
- }
273
-
274
- /**
275
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
276
- *
277
- * @param {Uint8Array} compressed_witness - A compressed witness.
278
- * @returns {WitnessStack} The decompressed witness stack.
279
- */
280
- export function decompressWitnessStack(compressed_witness) {
281
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
282
- const len0 = WASM_VECTOR_LEN;
283
- const ret = wasm.decompressWitnessStack(ptr0, len0);
284
- if (ret[2]) {
285
- throw takeFromExternrefTable0(ret[1]);
286
- }
287
- return takeFromExternrefTable0(ret[0]);
288
- }
289
-
290
226
  /**
291
227
  * Executes an ACIR circuit to generate the solved witness from the initial witness.
292
228
  *
@@ -333,20 +269,6 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
333
269
  return ret;
334
270
  }
335
271
 
336
- /**
337
- * Sets the package's logging level.
338
- *
339
- * @param {LogLevel} level - The maximum level of logging to be emitted.
340
- */
341
- export function initLogLevel(filter) {
342
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
343
- const len0 = WASM_VECTOR_LEN;
344
- const ret = wasm.initLogLevel(ptr0, len0);
345
- if (ret[1]) {
346
- throw takeFromExternrefTable0(ret[0]);
347
- }
348
- }
349
-
350
272
  /**
351
273
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
352
274
  *
@@ -466,6 +388,10 @@ export function sha256_compression(inputs, state) {
466
388
  return v3;
467
389
  }
468
390
 
391
+ function getArrayU8FromWasm0(ptr, len) {
392
+ ptr = ptr >>> 0;
393
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
394
+ }
469
395
  /**
470
396
  * Calculates the Blake2s256 hash of the input bytes
471
397
  * @param {Uint8Array} inputs
@@ -522,16 +448,90 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
522
448
  return ret !== 0;
523
449
  }
524
450
 
451
+ /**
452
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
453
+ *
454
+ * @param {WitnessMap} witness_map - A witness map.
455
+ * @returns {Uint8Array} A compressed witness map
456
+ */
457
+ export function compressWitness(witness_map) {
458
+ const ret = wasm.compressWitness(witness_map);
459
+ if (ret[3]) {
460
+ throw takeFromExternrefTable0(ret[2]);
461
+ }
462
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
463
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
464
+ return v1;
465
+ }
466
+
467
+ /**
468
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
469
+ * This should be used to only fetch the witness map for the main function.
470
+ *
471
+ * @param {Uint8Array} compressed_witness - A compressed witness.
472
+ * @returns {WitnessMap} The decompressed witness map.
473
+ */
474
+ export function decompressWitness(compressed_witness) {
475
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
476
+ const len0 = WASM_VECTOR_LEN;
477
+ const ret = wasm.decompressWitness(ptr0, len0);
478
+ if (ret[2]) {
479
+ throw takeFromExternrefTable0(ret[1]);
480
+ }
481
+ return takeFromExternrefTable0(ret[0]);
482
+ }
483
+
484
+ /**
485
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
486
+ *
487
+ * @param {WitnessStack} witness_stack - A witness stack.
488
+ * @returns {Uint8Array} A compressed witness stack
489
+ */
490
+ export function compressWitnessStack(witness_stack) {
491
+ const ret = wasm.compressWitnessStack(witness_stack);
492
+ if (ret[3]) {
493
+ throw takeFromExternrefTable0(ret[2]);
494
+ }
495
+ var v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
496
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
497
+ return v1;
498
+ }
499
+
500
+ /**
501
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
502
+ *
503
+ * @param {Uint8Array} compressed_witness - A compressed witness.
504
+ * @returns {WitnessStack} The decompressed witness stack.
505
+ */
506
+ export function decompressWitnessStack(compressed_witness) {
507
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
508
+ const len0 = WASM_VECTOR_LEN;
509
+ const ret = wasm.decompressWitnessStack(ptr0, len0);
510
+ if (ret[2]) {
511
+ throw takeFromExternrefTable0(ret[1]);
512
+ }
513
+ return takeFromExternrefTable0(ret[0]);
514
+ }
515
+
516
+ /**
517
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
518
+ * @returns {BuildInfo} - Information on how the installed package was built.
519
+ */
520
+ export function buildInfo() {
521
+ const ret = wasm.buildInfo();
522
+ return ret;
523
+ }
524
+
525
525
  function __wbg_adapter_30(arg0, arg1, arg2) {
526
- wasm.closure576_externref_shim(arg0, arg1, arg2);
526
+ wasm.closure490_externref_shim(arg0, arg1, arg2);
527
527
  }
528
528
 
529
529
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
530
- wasm.closure1171_externref_shim(arg0, arg1, arg2, arg3, arg4);
530
+ wasm.closure996_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
531
  }
532
532
 
533
533
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
534
- wasm.closure1175_externref_shim(arg0, arg1, arg2, arg3);
534
+ wasm.closure1000_externref_shim(arg0, arg1, arg2, arg3);
535
535
  }
536
536
 
537
537
  async function __wbg_load(module, imports) {
@@ -580,11 +580,11 @@ function __wbg_get_imports() {
580
580
  const ret = arg0.call(arg1, arg2, arg3);
581
581
  return ret;
582
582
  }, arguments) };
583
- imports.wbg.__wbg_constructor_3aef6db465a4d40f = function(arg0) {
583
+ imports.wbg.__wbg_constructor_536364f6bcd4616b = function(arg0) {
584
584
  const ret = new Error(arg0);
585
585
  return ret;
586
586
  };
587
- imports.wbg.__wbg_constructor_9cd41836d6991f28 = function(arg0) {
587
+ imports.wbg.__wbg_constructor_66e92e9c3ecae9e8 = function(arg0) {
588
588
  const ret = new Error(arg0);
589
589
  return ret;
590
590
  };
@@ -697,7 +697,7 @@ function __wbg_get_imports() {
697
697
  const ret = new Error();
698
698
  return ret;
699
699
  };
700
- imports.wbg.__wbg_new_8e773a1674584163 = function() {
700
+ imports.wbg.__wbg_new_9f501325818b4158 = function() {
701
701
  const ret = new Array();
702
702
  return ret;
703
703
  };
@@ -705,7 +705,7 @@ function __wbg_get_imports() {
705
705
  const ret = new Error(getStringFromWasm0(arg0, arg1));
706
706
  return ret;
707
707
  };
708
- imports.wbg.__wbg_new_dd245daac54dc568 = function() {
708
+ imports.wbg.__wbg_new_ec40611a7805f1f0 = function() {
709
709
  const ret = new Map();
710
710
  return ret;
711
711
  };
@@ -797,8 +797,8 @@ function __wbg_get_imports() {
797
797
  const ret = false;
798
798
  return ret;
799
799
  };
800
- imports.wbg.__wbindgen_closure_wrapper1971 = function(arg0, arg1, arg2) {
801
- const ret = makeMutClosure(arg0, arg1, 577, __wbg_adapter_30);
800
+ imports.wbg.__wbindgen_closure_wrapper1603 = function(arg0, arg1, arg2) {
801
+ const ret = makeMutClosure(arg0, arg1, 491, __wbg_adapter_30);
802
802
  return ret;
803
803
  };
804
804
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,15 +1,10 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const buildInfo: () => any;
5
- export const compressWitness: (a: any) => [number, number, number, number];
6
- export const decompressWitness: (a: number, b: number) => [number, number, number];
7
- export const compressWitnessStack: (a: any) => [number, number, number, number];
8
- export const decompressWitnessStack: (a: number, b: number) => [number, number, number];
4
+ export const initLogLevel: (a: number, b: number) => [number, number];
9
5
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
10
6
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
11
7
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
12
- export const initLogLevel: (a: number, b: number) => [number, number];
13
8
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
14
9
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
15
10
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
@@ -19,6 +14,11 @@ export const sha256_compression: (a: number, b: number, c: number, d: number) =>
19
14
  export const blake2s256: (a: number, b: number) => [number, number];
20
15
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
21
16
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
17
+ export const compressWitness: (a: any) => [number, number, number, number];
18
+ export const decompressWitness: (a: number, b: number) => [number, number, number];
19
+ export const compressWitnessStack: (a: any) => [number, number, number, number];
20
+ export const decompressWitnessStack: (a: number, b: number) => [number, number, number];
21
+ export const buildInfo: () => any;
22
22
  export const __wbindgen_exn_store: (a: number) => void;
23
23
  export const __externref_table_alloc: () => number;
24
24
  export const __wbindgen_export_2: WebAssembly.Table;
@@ -27,7 +27,7 @@ export const __wbindgen_malloc: (a: number, b: number) => number;
27
27
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
28
28
  export const __wbindgen_export_6: WebAssembly.Table;
29
29
  export const __externref_table_dealloc: (a: number) => void;
30
- export const closure576_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1171_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1175_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure490_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure996_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1000_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
33
  export const __wbindgen_start: () => void;