@aztec/noir-acvm_js 0.0.1-commit.43597cc1 → 0.0.1-commit.4ad48494d

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.
@@ -117,20 +117,6 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
117
117
  */
118
118
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
119
119
 
120
- export type ForeignCallInput = string[]
121
- export type ForeignCallOutput = string | string[]
122
-
123
- /**
124
- * A callback which performs an foreign call and returns the response.
125
- * @callback ForeignCallHandler
126
- * @param {string} name - The identifier for the type of foreign call being performed.
127
- * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
128
- * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
129
- */
130
- export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
131
-
132
-
133
-
134
120
  /**
135
121
  * @typedef {Object} BuildInfo - Information about how the installed package was built
136
122
  * @property {string} gitHash - The hash of the git commit from which the package was built.
@@ -182,3 +168,17 @@ export type ExecutionError = Error & {
182
168
  };
183
169
 
184
170
 
171
+
172
+ export type ForeignCallInput = string[]
173
+ export type ForeignCallOutput = string | string[]
174
+
175
+ /**
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
+
184
+
package/nodejs/acvm_js.js CHANGED
@@ -531,11 +531,11 @@ function __wbg_adapter_30(arg0, arg1, arg2) {
531
531
  }
532
532
 
533
533
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
534
- wasm.closure921_externref_shim(arg0, arg1, arg2, arg3, arg4);
534
+ wasm.closure924_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
535
  }
536
536
 
537
537
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
538
- wasm.closure925_externref_shim(arg0, arg1, arg2, arg3);
538
+ wasm.closure928_externref_shim(arg0, arg1, arg2, arg3);
539
539
  }
540
540
 
541
541
  module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
@@ -813,7 +813,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
813
813
  return ret;
814
814
  };
815
815
 
816
- module.exports.__wbindgen_closure_wrapper1365 = function(arg0, arg1, arg2) {
816
+ module.exports.__wbindgen_closure_wrapper1364 = function(arg0, arg1, arg2) {
817
817
  const ret = makeMutClosure(arg0, arg1, 446, __wbg_adapter_30);
818
818
  return ret;
819
819
  };
Binary file
@@ -28,6 +28,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
28
28
  export const __wbindgen_export_6: WebAssembly.Table;
29
29
  export const __externref_table_dealloc: (a: number) => void;
30
30
  export const closure445_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure921_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure925_externref_shim: (a: number, b: number, c: any, d: 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.43597cc1",
3
+ "version": "0.0.1-commit.4ad48494d",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/web/acvm_js.d.ts CHANGED
@@ -117,20 +117,6 @@ export function getPublicParametersWitness(program: Uint8Array, solved_witness:
117
117
  */
118
118
  export function getPublicWitness(program: Uint8Array, solved_witness: WitnessMap): WitnessMap;
119
119
 
120
- export type ForeignCallInput = string[]
121
- export type ForeignCallOutput = string | string[]
122
-
123
- /**
124
- * A callback which performs an foreign call and returns the response.
125
- * @callback ForeignCallHandler
126
- * @param {string} name - The identifier for the type of foreign call being performed.
127
- * @param {string[][]} inputs - An array of hex encoded inputs to the foreign call.
128
- * @returns {Promise<string[]>} outputs - An array of hex encoded outputs containing the results of the foreign call.
129
- */
130
- export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => Promise<ForeignCallOutput[]>;
131
-
132
-
133
-
134
120
  /**
135
121
  * @typedef {Object} BuildInfo - Information about how the installed package was built
136
122
  * @property {string} gitHash - The hash of the git commit from which the package was built.
@@ -183,6 +169,20 @@ export type ExecutionError = Error & {
183
169
 
184
170
 
185
171
 
172
+ export type ForeignCallInput = string[]
173
+ export type ForeignCallOutput = string | string[]
174
+
175
+ /**
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
+
184
+
185
+
186
186
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
187
187
 
188
188
  export interface InitOutput {
@@ -214,8 +214,8 @@ export interface InitOutput {
214
214
  readonly __wbindgen_export_6: WebAssembly.Table;
215
215
  readonly __externref_table_dealloc: (a: number) => void;
216
216
  readonly closure445_externref_shim: (a: number, b: number, c: any) => void;
217
- readonly closure921_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
- readonly closure925_externref_shim: (a: number, b: number, c: any, d: 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
@@ -527,11 +527,11 @@ function __wbg_adapter_30(arg0, arg1, arg2) {
527
527
  }
528
528
 
529
529
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
530
- wasm.closure921_externref_shim(arg0, arg1, arg2, arg3, arg4);
530
+ wasm.closure924_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
531
  }
532
532
 
533
533
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
534
- wasm.closure925_externref_shim(arg0, arg1, arg2, arg3);
534
+ wasm.closure928_externref_shim(arg0, arg1, arg2, arg3);
535
535
  }
536
536
 
537
537
  async function __wbg_load(module, imports) {
@@ -797,7 +797,7 @@ function __wbg_get_imports() {
797
797
  const ret = false;
798
798
  return ret;
799
799
  };
800
- imports.wbg.__wbindgen_closure_wrapper1365 = function(arg0, arg1, arg2) {
800
+ imports.wbg.__wbindgen_closure_wrapper1364 = function(arg0, arg1, arg2) {
801
801
  const ret = makeMutClosure(arg0, arg1, 446, __wbg_adapter_30);
802
802
  return ret;
803
803
  };
Binary file
@@ -28,6 +28,6 @@ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) =>
28
28
  export const __wbindgen_export_6: WebAssembly.Table;
29
29
  export const __externref_table_dealloc: (a: number) => void;
30
30
  export const closure445_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure921_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure925_externref_shim: (a: number, b: number, c: any, d: 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;