@noir-lang/acvm_js 1.0.0-beta.10 → 1.0.0-beta.10-e54057d.nightly

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.
@@ -86,12 +86,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
86
86
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
87
87
  */
88
88
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
89
- /**
90
- * Sets the package's logging level.
91
- *
92
- * @param {LogLevel} level - The maximum level of logging to be emitted.
93
- */
94
- export function initLogLevel(filter: string): void;
95
89
  /**
96
90
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
97
91
  *
@@ -116,6 +110,12 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
116
110
  * @returns {WitnessMap} A witness map containing the circuit's public inputs.
117
111
  */
118
112
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
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 StackItem = {
121
121
  index: number;
@@ -140,20 +140,6 @@ export type BuildInfo = {
140
140
 
141
141
 
142
142
 
143
- export type RawAssertionPayload = {
144
- selector: string;
145
- data: string[];
146
- };
147
-
148
- export type ExecutionError = Error & {
149
- callStack?: string[];
150
- rawAssertionPayload?: RawAssertionPayload;
151
- acirFunctionId?: number;
152
- brilligFunctionId?: number;
153
- };
154
-
155
-
156
-
157
143
  export type ForeignCallInput = string[]
158
144
  export type ForeignCallOutput = string | string[]
159
145
 
@@ -182,3 +168,17 @@ export type SolvedAndReturnWitness = {
182
168
  }
183
169
 
184
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
+ };
183
+
184
+
package/nodejs/acvm_js.js CHANGED
@@ -452,20 +452,6 @@ module.exports.executeProgram = function(program, initial_witness, foreign_call_
452
452
  return ret;
453
453
  };
454
454
 
455
- /**
456
- * Sets the package's logging level.
457
- *
458
- * @param {LogLevel} level - The maximum level of logging to be emitted.
459
- */
460
- module.exports.initLogLevel = function(filter) {
461
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
462
- const len0 = WASM_VECTOR_LEN;
463
- const ret = wasm.initLogLevel(ptr0, len0);
464
- if (ret[1]) {
465
- throw takeFromExternrefTable0(ret[0]);
466
- }
467
- };
468
-
469
455
  /**
470
456
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
471
457
  *
@@ -526,16 +512,30 @@ module.exports.getPublicWitness = function(program, solved_witness) {
526
512
  return takeFromExternrefTable0(ret[0]);
527
513
  };
528
514
 
515
+ /**
516
+ * Sets the package's logging level.
517
+ *
518
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
519
+ */
520
+ module.exports.initLogLevel = function(filter) {
521
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
522
+ const len0 = WASM_VECTOR_LEN;
523
+ const ret = wasm.initLogLevel(ptr0, len0);
524
+ if (ret[1]) {
525
+ throw takeFromExternrefTable0(ret[0]);
526
+ }
527
+ };
528
+
529
529
  function __wbg_adapter_30(arg0, arg1, arg2) {
530
- wasm.closure644_externref_shim(arg0, arg1, arg2);
530
+ wasm.closure645_externref_shim(arg0, arg1, arg2);
531
531
  }
532
532
 
533
533
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
534
- wasm.closure1309_externref_shim(arg0, arg1, arg2, arg3, arg4);
534
+ wasm.closure1317_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
535
  }
536
536
 
537
537
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
538
- wasm.closure1313_externref_shim(arg0, arg1, arg2, arg3);
538
+ wasm.closure1321_externref_shim(arg0, arg1, arg2, arg3);
539
539
  }
540
540
 
541
541
  module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
@@ -813,8 +813,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
813
813
  return ret;
814
814
  };
815
815
 
816
- module.exports.__wbindgen_closure_wrapper2142 = function(arg0, arg1, arg2) {
817
- const ret = makeMutClosure(arg0, arg1, 645, __wbg_adapter_30);
816
+ module.exports.__wbindgen_closure_wrapper2145 = function(arg0, arg1, arg2) {
817
+ const ret = makeMutClosure(arg0, arg1, 646, __wbg_adapter_30);
818
818
  return ret;
819
819
  };
820
820
 
Binary file
@@ -15,10 +15,10 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
15
15
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
16
16
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
17
17
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
18
- export const initLogLevel: (a: number, b: number) => [number, number];
19
18
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
20
19
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
21
20
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
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 closure644_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1309_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1313_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure645_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure1317_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1321_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": "@noir-lang/acvm_js",
3
- "version": "1.0.0-beta.10",
3
+ "version": "1.0.0-beta.10-e54057d.nightly",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/web/acvm_js.d.ts CHANGED
@@ -86,12 +86,6 @@ export function executeCircuitWithReturnWitness(program: Uint8Array, initial_wit
86
86
  * @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
87
87
  */
88
88
  export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
89
- /**
90
- * Sets the package's logging level.
91
- *
92
- * @param {LogLevel} level - The maximum level of logging to be emitted.
93
- */
94
- export function initLogLevel(filter: string): void;
95
89
  /**
96
90
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
97
91
  *
@@ -116,6 +110,12 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
116
110
  * @returns {WitnessMap} A witness map containing the circuit's public inputs.
117
111
  */
118
112
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
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 StackItem = {
121
121
  index: number;
@@ -140,20 +140,6 @@ export type BuildInfo = {
140
140
 
141
141
 
142
142
 
143
- export type RawAssertionPayload = {
144
- selector: string;
145
- data: string[];
146
- };
147
-
148
- export type ExecutionError = Error & {
149
- callStack?: string[];
150
- rawAssertionPayload?: RawAssertionPayload;
151
- acirFunctionId?: number;
152
- brilligFunctionId?: number;
153
- };
154
-
155
-
156
-
157
143
  export type ForeignCallInput = string[]
158
144
  export type ForeignCallOutput = string | string[]
159
145
 
@@ -183,6 +169,20 @@ export type SolvedAndReturnWitness = {
183
169
 
184
170
 
185
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
+ };
183
+
184
+
185
+
186
186
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
187
187
 
188
188
  export interface InitOutput {
@@ -201,10 +201,10 @@ export interface InitOutput {
201
201
  readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
202
202
  readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
203
203
  readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
204
- readonly initLogLevel: (a: number, b: number) => [number, number];
205
204
  readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
206
205
  readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
207
206
  readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
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 closure644_externref_shim: (a: number, b: number, c: any) => void;
217
- readonly closure1309_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
- readonly closure1313_externref_shim: (a: number, b: number, c: any, d: any) => void;
216
+ readonly closure645_externref_shim: (a: number, b: number, c: any) => void;
217
+ readonly closure1317_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
+ readonly closure1321_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
@@ -448,20 +448,6 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
448
448
  return ret;
449
449
  }
450
450
 
451
- /**
452
- * Sets the package's logging level.
453
- *
454
- * @param {LogLevel} level - The maximum level of logging to be emitted.
455
- */
456
- export function initLogLevel(filter) {
457
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
458
- const len0 = WASM_VECTOR_LEN;
459
- const ret = wasm.initLogLevel(ptr0, len0);
460
- if (ret[1]) {
461
- throw takeFromExternrefTable0(ret[0]);
462
- }
463
- }
464
-
465
451
  /**
466
452
  * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
467
453
  *
@@ -522,16 +508,30 @@ export function getPublicWitness(program, solved_witness) {
522
508
  return takeFromExternrefTable0(ret[0]);
523
509
  }
524
510
 
511
+ /**
512
+ * Sets the package's logging level.
513
+ *
514
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
515
+ */
516
+ export function initLogLevel(filter) {
517
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
518
+ const len0 = WASM_VECTOR_LEN;
519
+ const ret = wasm.initLogLevel(ptr0, len0);
520
+ if (ret[1]) {
521
+ throw takeFromExternrefTable0(ret[0]);
522
+ }
523
+ }
524
+
525
525
  function __wbg_adapter_30(arg0, arg1, arg2) {
526
- wasm.closure644_externref_shim(arg0, arg1, arg2);
526
+ wasm.closure645_externref_shim(arg0, arg1, arg2);
527
527
  }
528
528
 
529
529
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
530
- wasm.closure1309_externref_shim(arg0, arg1, arg2, arg3, arg4);
530
+ wasm.closure1317_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
531
  }
532
532
 
533
533
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
534
- wasm.closure1313_externref_shim(arg0, arg1, arg2, arg3);
534
+ wasm.closure1321_externref_shim(arg0, arg1, arg2, arg3);
535
535
  }
536
536
 
537
537
  async function __wbg_load(module, imports) {
@@ -797,8 +797,8 @@ function __wbg_get_imports() {
797
797
  const ret = false;
798
798
  return ret;
799
799
  };
800
- imports.wbg.__wbindgen_closure_wrapper2142 = function(arg0, arg1, arg2) {
801
- const ret = makeMutClosure(arg0, arg1, 645, __wbg_adapter_30);
800
+ imports.wbg.__wbindgen_closure_wrapper2145 = function(arg0, arg1, arg2) {
801
+ const ret = makeMutClosure(arg0, arg1, 646, __wbg_adapter_30);
802
802
  return ret;
803
803
  };
804
804
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -15,10 +15,10 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
15
15
  export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
16
16
  export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
17
17
  export const executeProgram: (a: number, b: number, c: any, d: any) => any;
18
- export const initLogLevel: (a: number, b: number) => [number, number];
19
18
  export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
20
19
  export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
21
20
  export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
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 closure644_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1309_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1313_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure645_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure1317_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1321_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
33
  export const __wbindgen_start: () => void;