@noir-lang/noir_wasm 0.4.1-3d2233d → 0.4.1-dc3fb48

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # Noir Lang WASM JavaScript Package
2
2
 
3
3
  ## Tracks
4
- Noir lang Repository [noir-lang/noir@3d2233d](https://github.com/noir-lang/noir/tree/3d2233de810ab6d4a0f4f83007232133c88a49fe)
4
+ Noir lang Repository [noir-lang/noir@dc3fb48](https://github.com/noir-lang/noir/tree/dc3fb4806564acb6fd6ec46fcdc68dc336da96ba)
@@ -9,16 +9,6 @@ export function compile(args: any): any;
9
9
  * @param {Uint8Array} bytes
10
10
  * @returns {any}
11
11
  */
12
- export function acir_from_bytes(bytes: Uint8Array): any;
13
- /**
14
- * @param {any} acir
15
- * @returns {Uint8Array}
16
- */
17
- export function acir_to_bytes(acir: any): Uint8Array;
18
- /**
19
- * @param {Uint8Array} bytes
20
- * @returns {any}
21
- */
22
12
  export function acir_read_bytes(bytes: Uint8Array): any;
23
13
  /**
24
14
  * @param {any} acir
@@ -136,45 +136,16 @@ function passArray8ToWasm0(arg, malloc) {
136
136
  * @param {Uint8Array} bytes
137
137
  * @returns {any}
138
138
  */
139
- module.exports.acir_from_bytes = function(bytes) {
139
+ module.exports.acir_read_bytes = function(bytes) {
140
140
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
141
141
  const len0 = WASM_VECTOR_LEN;
142
- const ret = wasm.acir_from_bytes(ptr0, len0);
142
+ const ret = wasm.acir_read_bytes(ptr0, len0);
143
143
  return takeObject(ret);
144
144
  };
145
145
 
146
146
  function getArrayU8FromWasm0(ptr, len) {
147
147
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
148
148
  }
149
- /**
150
- * @param {any} acir
151
- * @returns {Uint8Array}
152
- */
153
- module.exports.acir_to_bytes = function(acir) {
154
- try {
155
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
156
- wasm.acir_to_bytes(retptr, addHeapObject(acir));
157
- var r0 = getInt32Memory0()[retptr / 4 + 0];
158
- var r1 = getInt32Memory0()[retptr / 4 + 1];
159
- var v0 = getArrayU8FromWasm0(r0, r1).slice();
160
- wasm.__wbindgen_export_2(r0, r1 * 1);
161
- return v0;
162
- } finally {
163
- wasm.__wbindgen_add_to_stack_pointer(16);
164
- }
165
- };
166
-
167
- /**
168
- * @param {Uint8Array} bytes
169
- * @returns {any}
170
- */
171
- module.exports.acir_read_bytes = function(bytes) {
172
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
173
- const len0 = WASM_VECTOR_LEN;
174
- const ret = wasm.acir_read_bytes(ptr0, len0);
175
- return takeObject(ret);
176
- };
177
-
178
149
  /**
179
150
  * @param {any} acir
180
151
  * @returns {Uint8Array}
Binary file
@@ -2,8 +2,6 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function compile(a: number): number;
5
- export function acir_from_bytes(a: number, b: number): number;
6
- export function acir_to_bytes(a: number, b: number): void;
7
5
  export function acir_read_bytes(a: number, b: number): number;
8
6
  export function acir_write_bytes(a: number, b: number): void;
9
7
  export function init_log_level(a: number, b: number): void;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "The Noir Team <team@noir-lang.org>"
5
5
  ],
6
- "version": "0.4.1-3d2233d",
6
+ "version": "0.4.1-dc3fb48",
7
7
  "files": [
8
8
  "nodejs",
9
9
  "web",
@@ -21,6 +21,6 @@
21
21
  "url": "https://github.com/noir-lang/noir_wasm.git"
22
22
  },
23
23
  "compiler": {
24
- "versionHash": "3d2233de810ab6d4a0f4f83007232133c88a49fe"
24
+ "versionHash": "dc3fb4806564acb6fd6ec46fcdc68dc336da96ba"
25
25
  }
26
26
  }
@@ -9,16 +9,6 @@ export function compile(args: any): any;
9
9
  * @param {Uint8Array} bytes
10
10
  * @returns {any}
11
11
  */
12
- export function acir_from_bytes(bytes: Uint8Array): any;
13
- /**
14
- * @param {any} acir
15
- * @returns {Uint8Array}
16
- */
17
- export function acir_to_bytes(acir: any): Uint8Array;
18
- /**
19
- * @param {Uint8Array} bytes
20
- * @returns {any}
21
- */
22
12
  export function acir_read_bytes(bytes: Uint8Array): any;
23
13
  /**
24
14
  * @param {any} acir
@@ -39,8 +29,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
39
29
  export interface InitOutput {
40
30
  readonly memory: WebAssembly.Memory;
41
31
  readonly compile: (a: number) => number;
42
- readonly acir_from_bytes: (a: number, b: number) => number;
43
- readonly acir_to_bytes: (a: number, b: number) => void;
44
32
  readonly acir_read_bytes: (a: number, b: number) => number;
45
33
  readonly acir_write_bytes: (a: number, b: number) => void;
46
34
  readonly init_log_level: (a: number, b: number) => void;
package/web/noir_wasm.js CHANGED
@@ -134,45 +134,16 @@ function passArray8ToWasm0(arg, malloc) {
134
134
  * @param {Uint8Array} bytes
135
135
  * @returns {any}
136
136
  */
137
- export function acir_from_bytes(bytes) {
137
+ export function acir_read_bytes(bytes) {
138
138
  const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
139
139
  const len0 = WASM_VECTOR_LEN;
140
- const ret = wasm.acir_from_bytes(ptr0, len0);
140
+ const ret = wasm.acir_read_bytes(ptr0, len0);
141
141
  return takeObject(ret);
142
142
  }
143
143
 
144
144
  function getArrayU8FromWasm0(ptr, len) {
145
145
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
146
146
  }
147
- /**
148
- * @param {any} acir
149
- * @returns {Uint8Array}
150
- */
151
- export function acir_to_bytes(acir) {
152
- try {
153
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
154
- wasm.acir_to_bytes(retptr, addHeapObject(acir));
155
- var r0 = getInt32Memory0()[retptr / 4 + 0];
156
- var r1 = getInt32Memory0()[retptr / 4 + 1];
157
- var v0 = getArrayU8FromWasm0(r0, r1).slice();
158
- wasm.__wbindgen_export_2(r0, r1 * 1);
159
- return v0;
160
- } finally {
161
- wasm.__wbindgen_add_to_stack_pointer(16);
162
- }
163
- }
164
-
165
- /**
166
- * @param {Uint8Array} bytes
167
- * @returns {any}
168
- */
169
- export function acir_read_bytes(bytes) {
170
- const ptr0 = passArray8ToWasm0(bytes, wasm.__wbindgen_export_0);
171
- const len0 = WASM_VECTOR_LEN;
172
- const ret = wasm.acir_read_bytes(ptr0, len0);
173
- return takeObject(ret);
174
- }
175
-
176
147
  /**
177
148
  * @param {any} acir
178
149
  * @returns {Uint8Array}
Binary file
@@ -2,8 +2,6 @@
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
4
  export function compile(a: number): number;
5
- export function acir_from_bytes(a: number, b: number): number;
6
- export function acir_to_bytes(a: number, b: number): void;
7
5
  export function acir_read_bytes(a: number, b: number): number;
8
6
  export function acir_write_bytes(a: number, b: number): void;
9
7
  export function init_log_level(a: number, b: number): void;