@noir-lang/acvm_js 0.30.0-e89f364.nightly → 0.31.0

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.
@@ -63,11 +63,6 @@ export function createBlackBoxSolver(): Promise<WasmBlackBoxFunctionSolver>;
63
63
  */
64
64
  export function initLogLevel(level: LogLevel): void;
65
65
  /**
66
- * Returns the `BuildInfo` object containing information about how the installed package was built.
67
- * @returns {BuildInfo} - Information on how the installed package was built.
68
- */
69
- export function buildInfo(): BuildInfo;
70
- /**
71
66
  * Verifies a ECDSA signature over the secp256r1 curve.
72
67
  * @param {Uint8Array} hashed_msg
73
68
  * @param {Uint8Array} public_key_x_bytes
@@ -132,6 +127,11 @@ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
132
127
  * @returns {WitnessMap} A compressed witness map
133
128
  */
134
129
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
130
+ /**
131
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
132
+ * @returns {BuildInfo} - Information on how the installed package was built.
133
+ */
134
+ export function buildInfo(): BuildInfo;
135
135
 
136
136
  export type ForeignCallInput = string[]
137
137
  export type ForeignCallOutput = string | string[]
@@ -156,6 +156,12 @@ export type WitnessMap = Map<number, string>;
156
156
 
157
157
 
158
158
 
159
+ export type ExecutionError = Error & {
160
+ callStack?: string[];
161
+ };
162
+
163
+
164
+
159
165
  /**
160
166
  * @typedef {Object} BuildInfo - Information about how the installed package was built
161
167
  * @property {string} gitHash - The hash of the git commit from which the package was built.
@@ -169,12 +175,6 @@ export type BuildInfo = {
169
175
  }
170
176
 
171
177
 
172
-
173
- export type ExecutionError = Error & {
174
- callStack?: string[];
175
- };
176
-
177
-
178
178
  /**
179
179
  * A struct representing a Trap
180
180
  */
package/nodejs/acvm_js.js CHANGED
@@ -1,7 +1,7 @@
1
1
  let imports = {};
2
2
  imports['__wbindgen_placeholder__'] = module.exports;
3
3
  let wasm;
4
- const { TextDecoder, TextEncoder } = require(`util`);
4
+ const { TextEncoder, TextDecoder } = require(`util`);
5
5
 
6
6
  const heap = new Array(128).fill(undefined);
7
7
 
@@ -23,9 +23,7 @@ function takeObject(idx) {
23
23
  return ret;
24
24
  }
25
25
 
26
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
27
-
28
- cachedTextDecoder.decode();
26
+ let WASM_VECTOR_LEN = 0;
29
27
 
30
28
  let cachedUint8Memory0 = null;
31
29
 
@@ -36,22 +34,6 @@ function getUint8Memory0() {
36
34
  return cachedUint8Memory0;
37
35
  }
38
36
 
39
- function getStringFromWasm0(ptr, len) {
40
- ptr = ptr >>> 0;
41
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
42
- }
43
-
44
- function addHeapObject(obj) {
45
- if (heap_next === heap.length) heap.push(heap.length + 1);
46
- const idx = heap_next;
47
- heap_next = heap[idx];
48
-
49
- heap[idx] = obj;
50
- return idx;
51
- }
52
-
53
- let WASM_VECTOR_LEN = 0;
54
-
55
37
  let cachedTextEncoder = new TextEncoder('utf-8');
56
38
 
57
39
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -118,6 +100,15 @@ function getInt32Memory0() {
118
100
  return cachedInt32Memory0;
119
101
  }
120
102
 
103
+ function addHeapObject(obj) {
104
+ if (heap_next === heap.length) heap.push(heap.length + 1);
105
+ const idx = heap_next;
106
+ heap_next = heap[idx];
107
+
108
+ heap[idx] = obj;
109
+ return idx;
110
+ }
111
+
121
112
  let cachedFloat64Memory0 = null;
122
113
 
123
114
  function getFloat64Memory0() {
@@ -127,6 +118,15 @@ function getFloat64Memory0() {
127
118
  return cachedFloat64Memory0;
128
119
  }
129
120
 
121
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
122
+
123
+ cachedTextDecoder.decode();
124
+
125
+ function getStringFromWasm0(ptr, len) {
126
+ ptr = ptr >>> 0;
127
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
128
+ }
129
+
130
130
  let cachedBigInt64Memory0 = null;
131
131
 
132
132
  function getBigInt64Memory0() {
@@ -226,7 +226,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
226
226
  return real;
227
227
  }
228
228
  function __wbg_adapter_54(arg0, arg1, arg2) {
229
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52952476ed423c11(arg0, arg1, addHeapObject(arg2));
229
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783(arg0, arg1, addHeapObject(arg2));
230
230
  }
231
231
 
232
232
  function passArray8ToWasm0(arg, malloc) {
@@ -374,15 +374,6 @@ module.exports.initLogLevel = function(level) {
374
374
  wasm.initLogLevel(addHeapObject(level));
375
375
  };
376
376
 
377
- /**
378
- * Returns the `BuildInfo` object containing information about how the installed package was built.
379
- * @returns {BuildInfo} - Information on how the installed package was built.
380
- */
381
- module.exports.buildInfo = function() {
382
- const ret = wasm.buildInfo();
383
- return takeObject(ret);
384
- };
385
-
386
377
  /**
387
378
  * Verifies a ECDSA signature over the secp256r1 curve.
388
379
  * @param {Uint8Array} hashed_msg
@@ -564,6 +555,15 @@ module.exports.compressWitness = function(witness_map) {
564
555
  }
565
556
  };
566
557
 
558
+ /**
559
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
560
+ * @returns {BuildInfo} - Information on how the installed package was built.
561
+ */
562
+ module.exports.buildInfo = function() {
563
+ const ret = wasm.buildInfo();
564
+ return takeObject(ret);
565
+ };
566
+
567
567
  function handleError(f, args) {
568
568
  try {
569
569
  return f.apply(this, args);
@@ -572,7 +572,7 @@ function handleError(f, args) {
572
572
  }
573
573
  }
574
574
  function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
575
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h59b9f7ecd67d6688(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
575
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
576
576
  }
577
577
 
578
578
  /**
@@ -640,16 +640,6 @@ module.exports.__wbindgen_is_array = function(arg0) {
640
640
  return ret;
641
641
  };
642
642
 
643
- module.exports.__wbindgen_error_new = function(arg0, arg1) {
644
- const ret = new Error(getStringFromWasm0(arg0, arg1));
645
- return addHeapObject(ret);
646
- };
647
-
648
- module.exports.__wbindgen_object_clone_ref = function(arg0) {
649
- const ret = getObject(arg0);
650
- return addHeapObject(ret);
651
- };
652
-
653
643
  module.exports.__wbindgen_string_get = function(arg0, arg1) {
654
644
  const obj = getObject(arg1);
655
645
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -664,7 +654,7 @@ module.exports.__wbindgen_is_string = function(arg0) {
664
654
  return ret;
665
655
  };
666
656
 
667
- module.exports.__wbg_new_e290c3c041336f87 = function() {
657
+ module.exports.__wbg_new_3a350aed96e43abb = function() {
668
658
  const ret = new Map();
669
659
  return addHeapObject(ret);
670
660
  };
@@ -681,7 +671,17 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
681
671
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
682
672
  };
683
673
 
684
- module.exports.__wbg_constructor_6e18ba778d67e20b = function(arg0) {
674
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
675
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
676
+ return addHeapObject(ret);
677
+ };
678
+
679
+ module.exports.__wbindgen_object_clone_ref = function(arg0) {
680
+ const ret = getObject(arg0);
681
+ return addHeapObject(ret);
682
+ };
683
+
684
+ module.exports.__wbg_constructor_e2f72a91b4e3ce37 = function(arg0) {
685
685
  const ret = new Error(takeObject(arg0));
686
686
  return addHeapObject(ret);
687
687
  };
@@ -798,14 +798,6 @@ module.exports.__wbindgen_is_symbol = function(arg0) {
798
798
  return ret;
799
799
  };
800
800
 
801
- module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
802
- getObject(arg0).getRandomValues(getObject(arg1));
803
- }, arguments) };
804
-
805
- module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
806
- getObject(arg0).randomFillSync(takeObject(arg1));
807
- }, arguments) };
808
-
809
801
  module.exports.__wbg_crypto_c48a774b022d20ac = function(arg0) {
810
802
  const ret = getObject(arg0).crypto;
811
803
  return addHeapObject(ret);
@@ -836,6 +828,14 @@ module.exports.__wbg_require_8f08ceecec0f4fee = function() { return handleError(
836
828
  return addHeapObject(ret);
837
829
  }, arguments) };
838
830
 
831
+ module.exports.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
832
+ getObject(arg0).getRandomValues(getObject(arg1));
833
+ }, arguments) };
834
+
835
+ module.exports.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
836
+ getObject(arg0).randomFillSync(takeObject(arg1));
837
+ }, arguments) };
838
+
839
839
  module.exports.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
840
840
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
841
841
  };
@@ -1189,8 +1189,8 @@ module.exports.__wbindgen_function_table = function() {
1189
1189
  return addHeapObject(ret);
1190
1190
  };
1191
1191
 
1192
- module.exports.__wbindgen_closure_wrapper504 = function(arg0, arg1, arg2) {
1193
- const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_54);
1192
+ module.exports.__wbindgen_closure_wrapper503 = function(arg0, arg1, arg2) {
1193
+ const ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_54);
1194
1194
  return addHeapObject(ret);
1195
1195
  };
1196
1196
 
Binary file
@@ -9,7 +9,6 @@ export function executeCircuit(a: number, b: number, c: number, d: number): numb
9
9
  export function createBlackBoxSolver(): number;
10
10
  export function __wbg_wasmblackboxfunctionsolver_free(a: number): void;
11
11
  export function initLogLevel(a: number): void;
12
- export function buildInfo(): number;
13
12
  export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
14
13
  export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
15
14
  export function keccak256(a: number, b: number, c: number): void;
@@ -19,13 +18,14 @@ export function xor(a: number, b: number): number;
19
18
  export function and(a: number, b: number): number;
20
19
  export function decompressWitness(a: number, b: number, c: number): void;
21
20
  export function compressWitness(a: number, b: number): void;
21
+ export function buildInfo(): number;
22
22
  export function __wbg_trap_free(a: number): void;
23
23
  export function trap___wbgd_downcast_token(): number;
24
24
  export function __wbindgen_malloc(a: number): number;
25
25
  export function __wbindgen_realloc(a: number, b: number, c: number): number;
26
26
  export const __wbindgen_export_2: WebAssembly.Table;
27
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52952476ed423c11(a: number, b: number, c: number): void;
27
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783(a: number, b: number, c: number): void;
28
28
  export function __wbindgen_add_to_stack_pointer(a: number): number;
29
29
  export function __wbindgen_free(a: number, b: number): void;
30
30
  export function __wbindgen_exn_store(a: number): void;
31
- export function wasm_bindgen__convert__closures__invoke2_mut__h59b9f7ecd67d6688(a: number, b: number, c: number, d: number): void;
31
+ export function wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687(a: number, b: number, c: number, d: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noir-lang/acvm_js",
3
- "version": "0.30.0-e89f364.nightly",
3
+ "version": "0.31.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/noir-lang/acvm.git"
package/web/acvm_js.d.ts CHANGED
@@ -63,11 +63,6 @@ export function createBlackBoxSolver(): Promise<WasmBlackBoxFunctionSolver>;
63
63
  */
64
64
  export function initLogLevel(level: LogLevel): void;
65
65
  /**
66
- * Returns the `BuildInfo` object containing information about how the installed package was built.
67
- * @returns {BuildInfo} - Information on how the installed package was built.
68
- */
69
- export function buildInfo(): BuildInfo;
70
- /**
71
66
  * Verifies a ECDSA signature over the secp256r1 curve.
72
67
  * @param {Uint8Array} hashed_msg
73
68
  * @param {Uint8Array} public_key_x_bytes
@@ -132,6 +127,11 @@ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
132
127
  * @returns {WitnessMap} A compressed witness map
133
128
  */
134
129
  export function compressWitness(witness_map: WitnessMap): Uint8Array;
130
+ /**
131
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
132
+ * @returns {BuildInfo} - Information on how the installed package was built.
133
+ */
134
+ export function buildInfo(): BuildInfo;
135
135
 
136
136
  export type ForeignCallInput = string[]
137
137
  export type ForeignCallOutput = string | string[]
@@ -156,6 +156,12 @@ export type WitnessMap = Map<number, string>;
156
156
 
157
157
 
158
158
 
159
+ export type ExecutionError = Error & {
160
+ callStack?: string[];
161
+ };
162
+
163
+
164
+
159
165
  /**
160
166
  * @typedef {Object} BuildInfo - Information about how the installed package was built
161
167
  * @property {string} gitHash - The hash of the git commit from which the package was built.
@@ -169,12 +175,6 @@ export type BuildInfo = {
169
175
  }
170
176
 
171
177
 
172
-
173
- export type ExecutionError = Error & {
174
- callStack?: string[];
175
- };
176
-
177
-
178
178
  /**
179
179
  * A struct representing a Trap
180
180
  */
@@ -203,7 +203,6 @@ export interface InitOutput {
203
203
  readonly createBlackBoxSolver: () => number;
204
204
  readonly __wbg_wasmblackboxfunctionsolver_free: (a: number) => void;
205
205
  readonly initLogLevel: (a: number) => void;
206
- readonly buildInfo: () => number;
207
206
  readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
208
207
  readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
209
208
  readonly keccak256: (a: number, b: number, c: number) => void;
@@ -213,16 +212,17 @@ export interface InitOutput {
213
212
  readonly and: (a: number, b: number) => number;
214
213
  readonly decompressWitness: (a: number, b: number, c: number) => void;
215
214
  readonly compressWitness: (a: number, b: number) => void;
215
+ readonly buildInfo: () => number;
216
216
  readonly __wbg_trap_free: (a: number) => void;
217
217
  readonly trap___wbgd_downcast_token: () => number;
218
218
  readonly __wbindgen_malloc: (a: number) => number;
219
219
  readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
220
220
  readonly __wbindgen_export_2: WebAssembly.Table;
221
- readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52952476ed423c11: (a: number, b: number, c: number) => void;
221
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783: (a: number, b: number, c: number) => void;
222
222
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
223
223
  readonly __wbindgen_free: (a: number, b: number) => void;
224
224
  readonly __wbindgen_exn_store: (a: number) => void;
225
- readonly wasm_bindgen__convert__closures__invoke2_mut__h59b9f7ecd67d6688: (a: number, b: number, c: number, d: number) => void;
225
+ readonly wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687: (a: number, b: number, c: number, d: number) => void;
226
226
  }
227
227
 
228
228
  export type SyncInitInput = BufferSource | WebAssembly.Module;
package/web/acvm_js.js CHANGED
@@ -20,9 +20,7 @@ function takeObject(idx) {
20
20
  return ret;
21
21
  }
22
22
 
23
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
-
25
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
23
+ let WASM_VECTOR_LEN = 0;
26
24
 
27
25
  let cachedUint8Memory0 = null;
28
26
 
@@ -33,22 +31,6 @@ function getUint8Memory0() {
33
31
  return cachedUint8Memory0;
34
32
  }
35
33
 
36
- function getStringFromWasm0(ptr, len) {
37
- ptr = ptr >>> 0;
38
- return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
39
- }
40
-
41
- function addHeapObject(obj) {
42
- if (heap_next === heap.length) heap.push(heap.length + 1);
43
- const idx = heap_next;
44
- heap_next = heap[idx];
45
-
46
- heap[idx] = obj;
47
- return idx;
48
- }
49
-
50
- let WASM_VECTOR_LEN = 0;
51
-
52
34
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
53
35
 
54
36
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -115,6 +97,15 @@ function getInt32Memory0() {
115
97
  return cachedInt32Memory0;
116
98
  }
117
99
 
100
+ function addHeapObject(obj) {
101
+ if (heap_next === heap.length) heap.push(heap.length + 1);
102
+ const idx = heap_next;
103
+ heap_next = heap[idx];
104
+
105
+ heap[idx] = obj;
106
+ return idx;
107
+ }
108
+
118
109
  let cachedFloat64Memory0 = null;
119
110
 
120
111
  function getFloat64Memory0() {
@@ -124,6 +115,15 @@ function getFloat64Memory0() {
124
115
  return cachedFloat64Memory0;
125
116
  }
126
117
 
118
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
119
+
120
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
121
+
122
+ function getStringFromWasm0(ptr, len) {
123
+ ptr = ptr >>> 0;
124
+ return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
125
+ }
126
+
127
127
  let cachedBigInt64Memory0 = null;
128
128
 
129
129
  function getBigInt64Memory0() {
@@ -223,7 +223,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
223
223
  return real;
224
224
  }
225
225
  function __wbg_adapter_54(arg0, arg1, arg2) {
226
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52952476ed423c11(arg0, arg1, addHeapObject(arg2));
226
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783(arg0, arg1, addHeapObject(arg2));
227
227
  }
228
228
 
229
229
  function passArray8ToWasm0(arg, malloc) {
@@ -371,15 +371,6 @@ export function initLogLevel(level) {
371
371
  wasm.initLogLevel(addHeapObject(level));
372
372
  }
373
373
 
374
- /**
375
- * Returns the `BuildInfo` object containing information about how the installed package was built.
376
- * @returns {BuildInfo} - Information on how the installed package was built.
377
- */
378
- export function buildInfo() {
379
- const ret = wasm.buildInfo();
380
- return takeObject(ret);
381
- }
382
-
383
374
  /**
384
375
  * Verifies a ECDSA signature over the secp256r1 curve.
385
376
  * @param {Uint8Array} hashed_msg
@@ -561,6 +552,15 @@ export function compressWitness(witness_map) {
561
552
  }
562
553
  }
563
554
 
555
+ /**
556
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
557
+ * @returns {BuildInfo} - Information on how the installed package was built.
558
+ */
559
+ export function buildInfo() {
560
+ const ret = wasm.buildInfo();
561
+ return takeObject(ret);
562
+ }
563
+
564
564
  function handleError(f, args) {
565
565
  try {
566
566
  return f.apply(this, args);
@@ -569,7 +569,7 @@ function handleError(f, args) {
569
569
  }
570
570
  }
571
571
  function __wbg_adapter_155(arg0, arg1, arg2, arg3) {
572
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h59b9f7ecd67d6688(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
572
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
573
573
  }
574
574
 
575
575
  /**
@@ -666,14 +666,6 @@ function __wbg_get_imports() {
666
666
  const ret = Array.isArray(getObject(arg0));
667
667
  return ret;
668
668
  };
669
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
670
- const ret = new Error(getStringFromWasm0(arg0, arg1));
671
- return addHeapObject(ret);
672
- };
673
- imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
674
- const ret = getObject(arg0);
675
- return addHeapObject(ret);
676
- };
677
669
  imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
678
670
  const obj = getObject(arg1);
679
671
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -686,7 +678,7 @@ function __wbg_get_imports() {
686
678
  const ret = typeof(getObject(arg0)) === 'string';
687
679
  return ret;
688
680
  };
689
- imports.wbg.__wbg_new_e290c3c041336f87 = function() {
681
+ imports.wbg.__wbg_new_3a350aed96e43abb = function() {
690
682
  const ret = new Map();
691
683
  return addHeapObject(ret);
692
684
  };
@@ -700,7 +692,15 @@ function __wbg_get_imports() {
700
692
  getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
701
693
  getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
702
694
  };
703
- imports.wbg.__wbg_constructor_6e18ba778d67e20b = function(arg0) {
695
+ imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
696
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
697
+ return addHeapObject(ret);
698
+ };
699
+ imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
700
+ const ret = getObject(arg0);
701
+ return addHeapObject(ret);
702
+ };
703
+ imports.wbg.__wbg_constructor_e2f72a91b4e3ce37 = function(arg0) {
704
704
  const ret = new Error(takeObject(arg0));
705
705
  return addHeapObject(ret);
706
706
  };
@@ -798,12 +798,6 @@ function __wbg_get_imports() {
798
798
  const ret = typeof(getObject(arg0)) === 'symbol';
799
799
  return ret;
800
800
  };
801
- imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
802
- getObject(arg0).getRandomValues(getObject(arg1));
803
- }, arguments) };
804
- imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
805
- getObject(arg0).randomFillSync(takeObject(arg1));
806
- }, arguments) };
807
801
  imports.wbg.__wbg_crypto_c48a774b022d20ac = function(arg0) {
808
802
  const ret = getObject(arg0).crypto;
809
803
  return addHeapObject(ret);
@@ -828,6 +822,12 @@ function __wbg_get_imports() {
828
822
  const ret = module.require;
829
823
  return addHeapObject(ret);
830
824
  }, arguments) };
825
+ imports.wbg.__wbg_getRandomValues_37fa2ca9e4e07fab = function() { return handleError(function (arg0, arg1) {
826
+ getObject(arg0).getRandomValues(getObject(arg1));
827
+ }, arguments) };
828
+ imports.wbg.__wbg_randomFillSync_dc1e9a60c158336d = function() { return handleError(function (arg0, arg1) {
829
+ getObject(arg0).randomFillSync(takeObject(arg1));
830
+ }, arguments) };
831
831
  imports.wbg.__wbg_debug_efabe4eb183aa5d4 = function(arg0, arg1, arg2, arg3) {
832
832
  console.debug(getObject(arg0), getObject(arg1), getObject(arg2), getObject(arg3));
833
833
  };
@@ -1119,8 +1119,8 @@ function __wbg_get_imports() {
1119
1119
  const ret = wasm.__wbindgen_export_2;
1120
1120
  return addHeapObject(ret);
1121
1121
  };
1122
- imports.wbg.__wbindgen_closure_wrapper504 = function(arg0, arg1, arg2) {
1123
- const ret = makeMutClosure(arg0, arg1, 161, __wbg_adapter_54);
1122
+ imports.wbg.__wbindgen_closure_wrapper503 = function(arg0, arg1, arg2) {
1123
+ const ret = makeMutClosure(arg0, arg1, 160, __wbg_adapter_54);
1124
1124
  return addHeapObject(ret);
1125
1125
  };
1126
1126
 
Binary file
@@ -9,7 +9,6 @@ export function executeCircuit(a: number, b: number, c: number, d: number): numb
9
9
  export function createBlackBoxSolver(): number;
10
10
  export function __wbg_wasmblackboxfunctionsolver_free(a: number): void;
11
11
  export function initLogLevel(a: number): void;
12
- export function buildInfo(): number;
13
12
  export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
14
13
  export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
15
14
  export function keccak256(a: number, b: number, c: number): void;
@@ -19,13 +18,14 @@ export function xor(a: number, b: number): number;
19
18
  export function and(a: number, b: number): number;
20
19
  export function decompressWitness(a: number, b: number, c: number): void;
21
20
  export function compressWitness(a: number, b: number): void;
21
+ export function buildInfo(): number;
22
22
  export function __wbg_trap_free(a: number): void;
23
23
  export function trap___wbgd_downcast_token(): number;
24
24
  export function __wbindgen_malloc(a: number): number;
25
25
  export function __wbindgen_realloc(a: number, b: number, c: number): number;
26
26
  export const __wbindgen_export_2: WebAssembly.Table;
27
- export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h52952476ed423c11(a: number, b: number, c: number): void;
27
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3d2354449e918783(a: number, b: number, c: number): void;
28
28
  export function __wbindgen_add_to_stack_pointer(a: number): number;
29
29
  export function __wbindgen_free(a: number, b: number): void;
30
30
  export function __wbindgen_exn_store(a: number): void;
31
- export function wasm_bindgen__convert__closures__invoke2_mut__h59b9f7ecd67d6688(a: number, b: number, c: number, d: number): void;
31
+ export function wasm_bindgen__convert__closures__invoke2_mut__ha676a05262f43687(a: number, b: number, c: number, d: number): void;