@noir-lang/acvm_js 1.0.0-beta.7-077bb6d.nightly → 1.0.0-beta.7-441f39a.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.
@@ -1,10 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Returns the `BuildInfo` object containing information about how the installed package was built.
5
- * @returns {BuildInfo} - Information on how the installed package was built.
6
- */
7
- export function buildInfo(): BuildInfo;
8
3
  /**
9
4
  * Sets the package's logging level.
10
5
  *
@@ -35,6 +30,11 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
35
30
  * Verifies a ECDSA signature over the secp256r1 curve.
36
31
  */
37
32
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
33
+ /**
34
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
35
+ * @returns {BuildInfo} - Information on how the installed package was built.
36
+ */
37
+ export function buildInfo(): BuildInfo;
38
38
  /**
39
39
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
40
40
  *
@@ -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
- /**
121
- * @typedef {Object} BuildInfo - Information about how the installed package was built
122
- * @property {string} gitHash - The hash of the git commit from which the package was built.
123
- * @property {string} version - The version of the package at the built git commit.
124
- * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
125
- */
126
- export type BuildInfo = {
127
- gitHash: string;
128
- version: string;
129
- dirty: string;
130
- }
131
-
132
-
133
-
134
120
  export type RawAssertionPayload = {
135
121
  selector: string;
136
122
  data: string[];
@@ -145,17 +131,25 @@ export type ExecutionError = Error & {
145
131
 
146
132
 
147
133
 
148
- // Map from witness index to hex string value of witness.
149
- export type WitnessMap = Map<number, string>;
134
+ export type StackItem = {
135
+ index: number;
136
+ witness: WitnessMap;
137
+ }
138
+
139
+ export type WitnessStack = Array<StackItem>;
140
+
141
+
150
142
 
151
143
  /**
152
- * An execution result containing two witnesses.
153
- * 1. The full solved witness of the execution.
154
- * 2. The return witness which contains the given public return values within the full witness.
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.
155
148
  */
156
- export type SolvedAndReturnWitness = {
157
- solvedWitness: WitnessMap;
158
- returnWitness: WitnessMap;
149
+ export type BuildInfo = {
150
+ gitHash: string;
151
+ version: string;
152
+ dirty: string;
159
153
  }
160
154
 
161
155
 
@@ -174,11 +168,17 @@ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => P
174
168
 
175
169
 
176
170
 
177
- export type StackItem = {
178
- index: number;
179
- witness: WitnessMap;
180
- }
171
+ // Map from witness index to hex string value of witness.
172
+ export type WitnessMap = Map<number, string>;
181
173
 
182
- export type WitnessStack = Array<StackItem>;
174
+ /**
175
+ * An execution result containing two witnesses.
176
+ * 1. The full solved witness of the execution.
177
+ * 2. The return witness which contains the given public return values within the full witness.
178
+ */
179
+ export type SolvedAndReturnWitness = {
180
+ solvedWitness: WitnessMap;
181
+ returnWitness: WitnessMap;
182
+ }
183
183
 
184
184
 
package/nodejs/acvm_js.js CHANGED
@@ -201,14 +201,6 @@ function debugString(val) {
201
201
  // TODO we could test for more things here, like `Set`s and `Map`s.
202
202
  return className;
203
203
  }
204
- /**
205
- * Returns the `BuildInfo` object containing information about how the installed package was built.
206
- * @returns {BuildInfo} - Information on how the installed package was built.
207
- */
208
- module.exports.buildInfo = function() {
209
- const ret = wasm.buildInfo();
210
- return ret;
211
- };
212
204
 
213
205
  function takeFromExternrefTable0(idx) {
214
206
  const value = wasm.__wbindgen_export_2.get(idx);
@@ -355,6 +347,15 @@ module.exports.ecdsa_secp256r1_verify = function(hashed_msg, public_key_x_bytes,
355
347
  return ret !== 0;
356
348
  };
357
349
 
350
+ /**
351
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
352
+ * @returns {BuildInfo} - Information on how the installed package was built.
353
+ */
354
+ module.exports.buildInfo = function() {
355
+ const ret = wasm.buildInfo();
356
+ return ret;
357
+ };
358
+
358
359
  /**
359
360
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
360
361
  *
@@ -527,15 +528,15 @@ module.exports.getPublicWitness = function(program, solved_witness) {
527
528
  };
528
529
 
529
530
  function __wbg_adapter_30(arg0, arg1, arg2) {
530
- wasm.closure611_externref_shim(arg0, arg1, arg2);
531
+ wasm.closure647_externref_shim(arg0, arg1, arg2);
531
532
  }
532
533
 
533
534
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
534
- wasm.closure1254_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
+ wasm.closure1312_externref_shim(arg0, arg1, arg2, arg3, arg4);
535
536
  }
536
537
 
537
538
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
538
- wasm.closure1258_externref_shim(arg0, arg1, arg2, arg3);
539
+ wasm.closure1316_externref_shim(arg0, arg1, arg2, arg3);
539
540
  }
540
541
 
541
542
  module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
@@ -813,8 +814,8 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
813
814
  return ret;
814
815
  };
815
816
 
816
- module.exports.__wbindgen_closure_wrapper2103 = function(arg0, arg1, arg2) {
817
- const ret = makeMutClosure(arg0, arg1, 612, __wbg_adapter_30);
817
+ module.exports.__wbindgen_closure_wrapper2146 = function(arg0, arg1, arg2) {
818
+ const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_30);
818
819
  return ret;
819
820
  };
820
821
 
Binary file
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const buildInfo: () => any;
5
4
  export const initLogLevel: (a: number, b: number) => [number, number];
6
5
  export const and: (a: any, b: any) => any;
7
6
  export const xor: (a: any, b: any) => any;
@@ -9,6 +8,7 @@ export const sha256_compression: (a: number, b: number, c: number, d: number) =>
9
8
  export const blake2s256: (a: number, b: number) => [number, number];
10
9
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
11
10
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
11
+ export const buildInfo: () => any;
12
12
  export const compressWitness: (a: any) => [number, number, number, number];
13
13
  export const decompressWitness: (a: number, b: number) => [number, number, number];
14
14
  export const compressWitnessStack: (a: any) => [number, number, number, number];
@@ -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 closure611_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1254_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1258_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure647_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure1312_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1316_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.7-077bb6d.nightly",
3
+ "version": "1.0.0-beta.7-441f39a.nightly",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/web/acvm_js.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Returns the `BuildInfo` object containing information about how the installed package was built.
5
- * @returns {BuildInfo} - Information on how the installed package was built.
6
- */
7
- export function buildInfo(): BuildInfo;
8
3
  /**
9
4
  * Sets the package's logging level.
10
5
  *
@@ -35,6 +30,11 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
35
30
  * Verifies a ECDSA signature over the secp256r1 curve.
36
31
  */
37
32
  export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
33
+ /**
34
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
35
+ * @returns {BuildInfo} - Information on how the installed package was built.
36
+ */
37
+ export function buildInfo(): BuildInfo;
38
38
  /**
39
39
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
40
40
  *
@@ -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
- /**
121
- * @typedef {Object} BuildInfo - Information about how the installed package was built
122
- * @property {string} gitHash - The hash of the git commit from which the package was built.
123
- * @property {string} version - The version of the package at the built git commit.
124
- * @property {boolean} dirty - Whether the package contained uncommitted changes when built.
125
- */
126
- export type BuildInfo = {
127
- gitHash: string;
128
- version: string;
129
- dirty: string;
130
- }
131
-
132
-
133
-
134
120
  export type RawAssertionPayload = {
135
121
  selector: string;
136
122
  data: string[];
@@ -145,17 +131,25 @@ export type ExecutionError = Error & {
145
131
 
146
132
 
147
133
 
148
- // Map from witness index to hex string value of witness.
149
- export type WitnessMap = Map<number, string>;
134
+ export type StackItem = {
135
+ index: number;
136
+ witness: WitnessMap;
137
+ }
138
+
139
+ export type WitnessStack = Array<StackItem>;
140
+
141
+
150
142
 
151
143
  /**
152
- * An execution result containing two witnesses.
153
- * 1. The full solved witness of the execution.
154
- * 2. The return witness which contains the given public return values within the full witness.
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.
155
148
  */
156
- export type SolvedAndReturnWitness = {
157
- solvedWitness: WitnessMap;
158
- returnWitness: WitnessMap;
149
+ export type BuildInfo = {
150
+ gitHash: string;
151
+ version: string;
152
+ dirty: string;
159
153
  }
160
154
 
161
155
 
@@ -174,12 +168,18 @@ export type ForeignCallHandler = (name: string, inputs: ForeignCallInput[]) => P
174
168
 
175
169
 
176
170
 
177
- export type StackItem = {
178
- index: number;
179
- witness: WitnessMap;
180
- }
171
+ // Map from witness index to hex string value of witness.
172
+ export type WitnessMap = Map<number, string>;
181
173
 
182
- export type WitnessStack = Array<StackItem>;
174
+ /**
175
+ * An execution result containing two witnesses.
176
+ * 1. The full solved witness of the execution.
177
+ * 2. The return witness which contains the given public return values within the full witness.
178
+ */
179
+ export type SolvedAndReturnWitness = {
180
+ solvedWitness: WitnessMap;
181
+ returnWitness: WitnessMap;
182
+ }
183
183
 
184
184
 
185
185
 
@@ -187,7 +187,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
187
187
 
188
188
  export interface InitOutput {
189
189
  readonly memory: WebAssembly.Memory;
190
- readonly buildInfo: () => any;
191
190
  readonly initLogLevel: (a: number, b: number) => [number, number];
192
191
  readonly and: (a: any, b: any) => any;
193
192
  readonly xor: (a: any, b: any) => any;
@@ -195,6 +194,7 @@ export interface InitOutput {
195
194
  readonly blake2s256: (a: number, b: number) => [number, number];
196
195
  readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
197
196
  readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
197
+ readonly buildInfo: () => any;
198
198
  readonly compressWitness: (a: any) => [number, number, number, number];
199
199
  readonly decompressWitness: (a: number, b: number) => [number, number, number];
200
200
  readonly compressWitnessStack: (a: any) => [number, number, number, number];
@@ -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 closure611_externref_shim: (a: number, b: number, c: any) => void;
217
- readonly closure1254_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
- readonly closure1258_externref_shim: (a: number, b: number, c: any, d: any) => void;
216
+ readonly closure647_externref_shim: (a: number, b: number, c: any) => void;
217
+ readonly closure1312_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
218
+ readonly closure1316_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
@@ -197,14 +197,6 @@ function debugString(val) {
197
197
  // TODO we could test for more things here, like `Set`s and `Map`s.
198
198
  return className;
199
199
  }
200
- /**
201
- * Returns the `BuildInfo` object containing information about how the installed package was built.
202
- * @returns {BuildInfo} - Information on how the installed package was built.
203
- */
204
- export function buildInfo() {
205
- const ret = wasm.buildInfo();
206
- return ret;
207
- }
208
200
 
209
201
  function takeFromExternrefTable0(idx) {
210
202
  const value = wasm.__wbindgen_export_2.get(idx);
@@ -351,6 +343,15 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
351
343
  return ret !== 0;
352
344
  }
353
345
 
346
+ /**
347
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
348
+ * @returns {BuildInfo} - Information on how the installed package was built.
349
+ */
350
+ export function buildInfo() {
351
+ const ret = wasm.buildInfo();
352
+ return ret;
353
+ }
354
+
354
355
  /**
355
356
  * Compresses a `WitnessMap` into the binary format outputted by Nargo.
356
357
  *
@@ -523,15 +524,15 @@ export function getPublicWitness(program, solved_witness) {
523
524
  }
524
525
 
525
526
  function __wbg_adapter_30(arg0, arg1, arg2) {
526
- wasm.closure611_externref_shim(arg0, arg1, arg2);
527
+ wasm.closure647_externref_shim(arg0, arg1, arg2);
527
528
  }
528
529
 
529
530
  function __wbg_adapter_89(arg0, arg1, arg2, arg3, arg4) {
530
- wasm.closure1254_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
+ wasm.closure1312_externref_shim(arg0, arg1, arg2, arg3, arg4);
531
532
  }
532
533
 
533
534
  function __wbg_adapter_110(arg0, arg1, arg2, arg3) {
534
- wasm.closure1258_externref_shim(arg0, arg1, arg2, arg3);
535
+ wasm.closure1316_externref_shim(arg0, arg1, arg2, arg3);
535
536
  }
536
537
 
537
538
  async function __wbg_load(module, imports) {
@@ -797,8 +798,8 @@ function __wbg_get_imports() {
797
798
  const ret = false;
798
799
  return ret;
799
800
  };
800
- imports.wbg.__wbindgen_closure_wrapper2103 = function(arg0, arg1, arg2) {
801
- const ret = makeMutClosure(arg0, arg1, 612, __wbg_adapter_30);
801
+ imports.wbg.__wbindgen_closure_wrapper2146 = function(arg0, arg1, arg2) {
802
+ const ret = makeMutClosure(arg0, arg1, 648, __wbg_adapter_30);
802
803
  return ret;
803
804
  };
804
805
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
Binary file
@@ -1,7 +1,6 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export const buildInfo: () => any;
5
4
  export const initLogLevel: (a: number, b: number) => [number, number];
6
5
  export const and: (a: any, b: any) => any;
7
6
  export const xor: (a: any, b: any) => any;
@@ -9,6 +8,7 @@ export const sha256_compression: (a: number, b: number, c: number, d: number) =>
9
8
  export const blake2s256: (a: number, b: number) => [number, number];
10
9
  export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
11
10
  export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
11
+ export const buildInfo: () => any;
12
12
  export const compressWitness: (a: any) => [number, number, number, number];
13
13
  export const decompressWitness: (a: number, b: number) => [number, number, number];
14
14
  export const compressWitnessStack: (a: any) => [number, number, number, number];
@@ -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 closure611_externref_shim: (a: number, b: number, c: any) => void;
31
- export const closure1254_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
- export const closure1258_externref_shim: (a: number, b: number, c: any, d: any) => void;
30
+ export const closure647_externref_shim: (a: number, b: number, c: any) => void;
31
+ export const closure1312_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
32
+ export const closure1316_externref_shim: (a: number, b: number, c: any, d: any) => void;
33
33
  export const __wbindgen_start: () => void;