@aztec/noir-acvm_js 0.0.1-commit.24de95ac → 0.0.1-commit.27d773e65

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.
@@ -57,12 +57,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
57
57
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
58
58
  */
59
59
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
60
- /**
61
- * Sets the package's logging level.
62
- *
63
- * @param {LogLevel} level - The maximum level of logging to be emitted.
64
- */
65
- export function initLogLevel(filter: string): void;
66
60
  /**
67
61
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
68
62
  *
@@ -87,11 +81,6 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
87
81
  * @returns {WitnessMap} A witness map containing the circuit's public inputs.
88
82
  */
89
83
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
90
- /**
91
- * Returns the `BuildInfo` object containing information about how the installed package was built.
92
- * @returns {BuildInfo} - Information on how the installed package was built.
93
- */
94
- export function buildInfo(): BuildInfo;
95
84
  /**
96
85
  * Performs a bitwise AND operation between `lhs` and `rhs`
97
86
  */
@@ -116,6 +105,17 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
116
105
  * Verifies a ECDSA signature over the secp256r1 curve.
117
106
  */
118
107
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
108
+ /**
109
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
110
+ * @returns {BuildInfo} - Information on how the installed package was built.
111
+ */
112
+ export function buildInfo(): BuildInfo;
113
+ /**
114
+ * Sets the package's logging level.
115
+ *
116
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
117
+ */
118
+ export function initLogLevel(filter: string): void;
119
119
 
120
120
  export type RawAssertionPayload = {
121
121
  selector: string;
@@ -131,17 +131,26 @@ export type ExecutionError = Error & {
131
131
 
132
132
 
133
133
 
134
- export type ForeignCallInput = string[]
135
- export type ForeignCallOutput = string | string[]
134
+ export type StackItem = {
135
+ index: number;
136
+ witness: WitnessMap;
137
+ }
138
+
139
+ export type WitnessStack = Array<StackItem>;
140
+
141
+
136
142
 
137
143
  /**
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[]>;
144
+ * @typedef {Object} BuildInfo - Information about how the installed package was built
145
+ * @property {string} gitHash - The hash of the git commit from which the package was built.
146
+ * @property {string} version - The version of the package at the built git commit.
147
+ * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
148
+ */
149
+ export type BuildInfo = {
150
+ gitHash: string;
151
+ version: string;
152
+ dirty: string;
153
+ }
145
154
 
146
155
 
147
156
 
@@ -160,25 +169,16 @@ export type SolvedAndReturnWitness = {
160
169
 
161
170
 
162
171
 
163
- export type StackItem = {
164
- index: number;
165
- witness: WitnessMap;
166
- }
167
-
168
- export type WitnessStack = Array<StackItem>;
169
-
170
-
172
+ export type ForeignCallInput = string[]
173
+ export type ForeignCallOutput = string | string[]
171
174
 
172
175
  /**
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
- }
176
+ * A callback which performs an foreign call and returns the response.
177
+ * @callback ForeignCallHandler
178
+ * @param {string} name - The identifier for the type of foreign call being performed.
179
+ * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
180
+ * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
181
+ */
182
+ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
183
183
 
184
184
 
package/nodejs/acvm_js.js CHANGED
@@ -329,20 +329,6 @@ module.exports.executeProgram = function(program, initial_witness, foreign_call_
329
329
  return ret;
330
330
  };
331
331
 
332
- /**
333
- * Sets the package's logging level.
334
- *
335
- * @param {LogLevel} level - The maximum level of logging to be emitted.
336
- */
337
- module.exports.initLogLevel = function(filter) {
338
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
339
- const len0 = WASM_VECTOR_LEN;
340
- const ret = wasm.initLogLevel(ptr0, len0);
341
- if (ret[1]) {
342
- throw takeFromExternrefTable0(ret[0]);
343
- }
344
- };
345
-
346
332
  /**
347
333
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
348
334
  *
@@ -403,15 +389,6 @@ module.exports.getPublicWitness = function(program, solved_witness) {
403
389
  return takeFromExternrefTable0(ret[0]);
404
390
  };
405
391
 
406
- /**
407
- * Returns the `BuildInfo` object containing information about how the installed package was built.
408
- * @returns {BuildInfo} - Information on how the installed package was built.
409
- */
410
- module.exports.buildInfo = function() {
411
- const ret = wasm.buildInfo();
412
- return ret;
413
- };
414
-
415
392
  /**
416
393
  * Performs a bitwise AND operation between `lhs` and `rhs`
417
394
  * @param {string} lhs
@@ -527,16 +504,39 @@ module.exports.ecdsa_secp256r1_verify = function(hashed_msg, public_key_x_bytes,
527
504
  return ret !== 0;
528
505
  };
529
506
 
507
+ /**
508
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
509
+ * @returns {BuildInfo} - Information on how the installed package was built.
510
+ */
511
+ module.exports.buildInfo = function() {
512
+ const ret = wasm.buildInfo();
513
+ return ret;
514
+ };
515
+
516
+ /**
517
+ * Sets the package's logging level.
518
+ *
519
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
520
+ */
521
+ module.exports.initLogLevel = function(filter) {
522
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
523
+ const len0 = WASM_VECTOR_LEN;
524
+ const ret = wasm.initLogLevel(ptr0, len0);
525
+ if (ret[1]) {
526
+ throw takeFromExternrefTable0(ret[0]);
527
+ }
528
+ };
529
+
530
530
  function __wbg_adapter_30(arg0, arg1, arg2) {
531
- wasm.closure584_externref_shim(arg0, arg1, arg2);
531
+ wasm.closure445_externref_shim(arg0, arg1, arg2);
532
532
  }
533
533
 
534
534
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
535
- wasm.closure1179_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
+ wasm.closure924_externref_shim(arg0, arg1, arg2, arg3, arg4);
536
536
  }
537
537
 
538
538
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
539
- wasm.closure1183_externref_shim(arg0, arg1, arg2, arg3);
539
+ wasm.closure928_externref_shim(arg0, arg1, arg2, arg3);
540
540
  }
541
541
 
542
542
  module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
@@ -554,12 +554,12 @@ module.exports.__wbg_call_833bed5770ea2041 = function() { return handleError(fun
554
554
  return ret;
555
555
  }, arguments) };
556
556
 
557
- module.exports.__wbg_constructor_590e27d4519f5f72 = function(arg0) {
557
+ module.exports.__wbg_constructor_2b49e4454d172081 = function(arg0) {
558
558
  const ret = new Error(arg0);
559
559
  return ret;
560
560
  };
561
561
 
562
- module.exports.__wbg_constructor_6f86ae2adbcd1779 = function(arg0) {
562
+ module.exports.__wbg_constructor_dddf0209b25406fd = function(arg0) {
563
563
  const ret = new Error(arg0);
564
564
  return ret;
565
565
  };
@@ -675,6 +675,11 @@ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
675
675
  }
676
676
  };
677
677
 
678
+ module.exports.__wbg_new_2812f5f6a6bd8bcf = function() {
679
+ const ret = new Array();
680
+ return ret;
681
+ };
682
+
678
683
  module.exports.__wbg_new_5e0be73521bc8c17 = function() {
679
684
  const ret = new Map();
680
685
  return ret;
@@ -690,8 +695,8 @@ module.exports.__wbg_new_8a6f238a6ece86ea = function() {
690
695
  return ret;
691
696
  };
692
697
 
693
- module.exports.__wbg_new_af7b60fde1e58f1b = function() {
694
- const ret = new Array();
698
+ module.exports.__wbg_new_b110592360513189 = function() {
699
+ const ret = new Map();
695
700
  return ret;
696
701
  };
697
702
 
@@ -700,11 +705,6 @@ module.exports.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
700
705
  return ret;
701
706
  };
702
707
 
703
- module.exports.__wbg_new_e2884e6fab20df40 = function() {
704
- const ret = new Map();
705
- return ret;
706
- };
707
-
708
708
  module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
709
709
  const ret = new Function(getStringFromWasm0(arg0, arg1));
710
710
  return ret;
@@ -814,8 +814,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
814
814
  return ret;
815
815
  };
816
816
 
817
- module.exports.__wbindgen_closure_wrapper1979 = function(arg0, arg1, arg2) {
818
- const ret = makeMutClosure(arg0, arg1, 585, __wbg_adapter_30);
817
+ module.exports.__wbindgen_closure_wrapper1366 = function(arg0, arg1, arg2) {
818
+ const ret = makeMutClosure(arg0, arg1, 446, __wbg_adapter_30);
819
819
  return ret;
820
820
  };
821
821
 
Binary file
@@ -8,17 +8,17 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
8
8
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
9
9
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
10
10
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
11
- export const initLogLevel: (a: number, b: number) => [number, number];
12
11
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
13
12
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
14
13
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
15
- export const buildInfo: () => any;
16
14
  export const and: (a: any, b: any) => any;
17
15
  export const xor: (a: any, b: any) => any;
18
16
  export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
19
17
  export const blake2s256: (a: number, b: number) => [number, number];
20
18
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
21
19
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
20
+ export const buildInfo: () => any;
21
+ export const initLogLevel: (a: number, b: number) => [number, number];
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 closure584_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1179_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1183_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure445_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure924_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure928_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": "0.0.1-commit.24de95ac",
3
+ "version": "0.0.1-commit.27d773e65",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@esm-bundle/chai": "^4.3.4-fix.0",
41
- "@web/dev-server-esbuild": "^1.0.4",
41
+ "@web/dev-server-esbuild": "^1.0.5",
42
42
  "@web/test-runner": "^0.20.2",
43
43
  "@web/test-runner-playwright": "^0.11.1",
44
- "chai": "^4.4.1",
45
- "eslint": "^9.28.0",
46
- "eslint-plugin-prettier": "^5.4.1",
47
- "mocha": "^11.5.0",
48
- "prettier": "3.5.3",
44
+ "chai": "^6.2.2",
45
+ "eslint": "^10.0.0",
46
+ "eslint-plugin-prettier": "^5.5.5",
47
+ "mocha": "^11.7.5",
48
+ "prettier": "3.8.1",
49
49
  "ts-node": "^10.9.2",
50
50
  "typescript": "^5.8.3"
51
51
  }
package/web/acvm_js.d.ts CHANGED
@@ -57,12 +57,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
57
57
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
58
58
  */
59
59
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
60
- /**
61
- * Sets the package's logging level.
62
- *
63
- * @param {LogLevel} level - The maximum level of logging to be emitted.
64
- */
65
- export function initLogLevel(filter: string): void;
66
60
  /**
67
61
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
68
62
  *
@@ -87,11 +81,6 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
87
81
  * @returns {WitnessMap} A witness map containing the circuit's public inputs.
88
82
  */
89
83
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
90
- /**
91
- * Returns the `BuildInfo` object containing information about how the installed package was built.
92
- * @returns {BuildInfo} - Information on how the installed package was built.
93
- */
94
- export function buildInfo(): BuildInfo;
95
84
  /**
96
85
  * Performs a bitwise AND operation between `lhs` and `rhs`
97
86
  */
@@ -116,6 +105,17 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
116
105
  * Verifies a ECDSA signature over the secp256r1 curve.
117
106
  */
118
107
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
108
+ /**
109
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
110
+ * @returns {BuildInfo} - Information on how the installed package was built.
111
+ */
112
+ export function buildInfo(): BuildInfo;
113
+ /**
114
+ * Sets the package's logging level.
115
+ *
116
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
117
+ */
118
+ export function initLogLevel(filter: string): void;
119
119
 
120
120
  export type RawAssertionPayload = {
121
121
  selector: string;
@@ -131,17 +131,26 @@ export type ExecutionError = Error & {
131
131
 
132
132
 
133
133
 
134
- export type ForeignCallInput = string[]
135
- export type ForeignCallOutput = string | string[]
134
+ export type StackItem = {
135
+ index: number;
136
+ witness: WitnessMap;
137
+ }
138
+
139
+ export type WitnessStack = Array<StackItem>;
140
+
141
+
136
142
 
137
143
  /**
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[]>;
144
+ * @typedef {Object} BuildInfo - Information about how the installed package was built
145
+ * @property {string} gitHash - The hash of the git commit from which the package was built.
146
+ * @property {string} version - The version of the package at the built git commit.
147
+ * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
148
+ */
149
+ export type BuildInfo = {
150
+ gitHash: string;
151
+ version: string;
152
+ dirty: string;
153
+ }
145
154
 
146
155
 
147
156
 
@@ -160,26 +169,17 @@ export type SolvedAndReturnWitness = {
160
169
 
161
170
 
162
171
 
163
- export type StackItem = {
164
- index: number;
165
- witness: WitnessMap;
166
- }
167
-
168
- export type WitnessStack = Array<StackItem>;
169
-
170
-
172
+ export type ForeignCallInput = string[]
173
+ export type ForeignCallOutput = string | string[]
171
174
 
172
175
  /**
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
- }
176
+ * A callback which performs an foreign call and returns the response.
177
+ * @callback ForeignCallHandler
178
+ * @param {string} name - The identifier for the type of foreign call being performed.
179
+ * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
180
+ * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
181
+ */
182
+ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
183
183
 
184
184
 
185
185
 
@@ -194,17 +194,17 @@ export interface InitOutput {
194
194
  readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
195
195
  readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
196
196
  readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
197
- readonly initLogLevel: (a: number, b: number) => [number, number];
198
197
  readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
199
198
  readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
200
199
  readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
201
- readonly buildInfo: () => any;
202
200
  readonly and: (a: any, b: any) => any;
203
201
  readonly xor: (a: any, b: any) => any;
204
202
  readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
205
203
  readonly blake2s256: (a: number, b: number) => [number, number];
206
204
  readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
207
205
  readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
206
+ readonly buildInfo: () => any;
207
+ readonly initLogLevel: (a: number, b: number) => [number, number];
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 closure584_externref_shim: (a: number, b: number, c: any) => void;
217
- readonly closure1179_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
- readonly closure1183_externref_shim: (a: number, b: number, c: any, d: any) => void;
216
+ readonly closure445_externref_shim: (a: number, b: number, c: any) => void;
217
+ readonly closure924_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
+ readonly closure928_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
@@ -325,20 +325,6 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
325
325
  return ret;
326
326
  }
327
327
 
328
- /**
329
- * Sets the package's logging level.
330
- *
331
- * @param {LogLevel} level - The maximum level of logging to be emitted.
332
- */
333
- export function initLogLevel(filter) {
334
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
335
- const len0 = WASM_VECTOR_LEN;
336
- const ret = wasm.initLogLevel(ptr0, len0);
337
- if (ret[1]) {
338
- throw takeFromExternrefTable0(ret[0]);
339
- }
340
- }
341
-
342
328
  /**
343
329
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
344
330
  *
@@ -399,15 +385,6 @@ export function getPublicWitness(program, solved_witness) {
399
385
  return takeFromExternrefTable0(ret[0]);
400
386
  }
401
387
 
402
- /**
403
- * Returns the `BuildInfo` object containing information about how the installed package was built.
404
- * @returns {BuildInfo} - Information on how the installed package was built.
405
- */
406
- export function buildInfo() {
407
- const ret = wasm.buildInfo();
408
- return ret;
409
- }
410
-
411
388
  /**
412
389
  * Performs a bitwise AND operation between `lhs` and `rhs`
413
390
  * @param {string} lhs
@@ -523,16 +500,39 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
523
500
  return ret !== 0;
524
501
  }
525
502
 
503
+ /**
504
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
505
+ * @returns {BuildInfo} - Information on how the installed package was built.
506
+ */
507
+ export function buildInfo() {
508
+ const ret = wasm.buildInfo();
509
+ return ret;
510
+ }
511
+
512
+ /**
513
+ * Sets the package's logging level.
514
+ *
515
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
516
+ */
517
+ export function initLogLevel(filter) {
518
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
519
+ const len0 = WASM_VECTOR_LEN;
520
+ const ret = wasm.initLogLevel(ptr0, len0);
521
+ if (ret[1]) {
522
+ throw takeFromExternrefTable0(ret[0]);
523
+ }
524
+ }
525
+
526
526
  function __wbg_adapter_30(arg0, arg1, arg2) {
527
- wasm.closure584_externref_shim(arg0, arg1, arg2);
527
+ wasm.closure445_externref_shim(arg0, arg1, arg2);
528
528
  }
529
529
 
530
530
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
531
- wasm.closure1179_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
+ wasm.closure924_externref_shim(arg0, arg1, arg2, arg3, arg4);
532
532
  }
533
533
 
534
534
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
535
- wasm.closure1183_externref_shim(arg0, arg1, arg2, arg3);
535
+ wasm.closure928_externref_shim(arg0, arg1, arg2, arg3);
536
536
  }
537
537
 
538
538
  async function __wbg_load(module, imports) {
@@ -581,11 +581,11 @@ function __wbg_get_imports() {
581
581
  const ret = arg0.call(arg1, arg2, arg3);
582
582
  return ret;
583
583
  }, arguments) };
584
- imports.wbg.__wbg_constructor_590e27d4519f5f72 = function(arg0) {
584
+ imports.wbg.__wbg_constructor_2b49e4454d172081 = function(arg0) {
585
585
  const ret = new Error(arg0);
586
586
  return ret;
587
587
  };
588
- imports.wbg.__wbg_constructor_6f86ae2adbcd1779 = function(arg0) {
588
+ imports.wbg.__wbg_constructor_dddf0209b25406fd = function(arg0) {
589
589
  const ret = new Error(arg0);
590
590
  return ret;
591
591
  };
@@ -686,6 +686,10 @@ function __wbg_get_imports() {
686
686
  state0.a = state0.b = 0;
687
687
  }
688
688
  };
689
+ imports.wbg.__wbg_new_2812f5f6a6bd8bcf = function() {
690
+ const ret = new Array();
691
+ return ret;
692
+ };
689
693
  imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
690
694
  const ret = new Map();
691
695
  return ret;
@@ -698,18 +702,14 @@ function __wbg_get_imports() {
698
702
  const ret = new Error();
699
703
  return ret;
700
704
  };
701
- imports.wbg.__wbg_new_af7b60fde1e58f1b = function() {
702
- const ret = new Array();
705
+ imports.wbg.__wbg_new_b110592360513189 = function() {
706
+ const ret = new Map();
703
707
  return ret;
704
708
  };
705
709
  imports.wbg.__wbg_new_c68d7209be747379 = function(arg0, arg1) {
706
710
  const ret = new Error(getStringFromWasm0(arg0, arg1));
707
711
  return ret;
708
712
  };
709
- imports.wbg.__wbg_new_e2884e6fab20df40 = function() {
710
- const ret = new Map();
711
- return ret;
712
- };
713
713
  imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
714
714
  const ret = new Function(getStringFromWasm0(arg0, arg1));
715
715
  return ret;
@@ -798,8 +798,8 @@ function __wbg_get_imports() {
798
798
  const ret = false;
799
799
  return ret;
800
800
  };
801
- imports.wbg.__wbindgen_closure_wrapper1979 = function(arg0, arg1, arg2) {
802
- const ret = makeMutClosure(arg0, arg1, 585, __wbg_adapter_30);
801
+ imports.wbg.__wbindgen_closure_wrapper1366 = function(arg0, arg1, arg2) {
802
+ const ret = makeMutClosure(arg0, arg1, 446, __wbg_adapter_30);
803
803
  return ret;
804
804
  };
805
805
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -8,17 +8,17 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
8
8
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
9
9
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
10
10
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
11
- export const initLogLevel: (a: number, b: number) => [number, number];
12
11
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
13
12
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
14
13
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
15
- export const buildInfo: () => any;
16
14
  export const and: (a: any, b: any) => any;
17
15
  export const xor: (a: any, b: any) => any;
18
16
  export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
19
17
  export const blake2s256: (a: number, b: number) => [number, number];
20
18
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
21
19
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
20
+ export const buildInfo: () => any;
21
+ export const initLogLevel: (a: number, b: number) => [number, number];
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 closure584_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1179_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1183_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure445_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure924_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure928_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
33
  export const __wbindgen_start: () => void;