@aztec/noir-acvm_js 0.0.1-commit.f504929 → 0.0.1-commit.f5d02921e
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/nodejs/acvm_js.js +13 -13
- package/nodejs/acvm_js_bg.wasm +0 -0
- package/nodejs/acvm_js_bg.wasm.d.ts +9 -9
- package/package.json +5 -5
- package/web/acvm_js.d.ts +9 -9
- package/web/acvm_js.js +13 -13
- package/web/acvm_js_bg.wasm +0 -0
- package/web/acvm_js_bg.wasm.d.ts +9 -9
package/nodejs/acvm_js.js
CHANGED
|
@@ -395,7 +395,7 @@ function __wbg_get_imports() {
|
|
|
395
395
|
const a = state0.a;
|
|
396
396
|
state0.a = 0;
|
|
397
397
|
try {
|
|
398
|
-
return
|
|
398
|
+
return wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(a, state0.b, arg0, arg1);
|
|
399
399
|
} finally {
|
|
400
400
|
state0.a = a;
|
|
401
401
|
}
|
|
@@ -412,7 +412,7 @@ function __wbg_get_imports() {
|
|
|
412
412
|
const a = state0.a;
|
|
413
413
|
state0.a = 0;
|
|
414
414
|
try {
|
|
415
|
-
return
|
|
415
|
+
return wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(a, state0.b, arg0, arg1, arg2);
|
|
416
416
|
} finally {
|
|
417
417
|
state0.a = a;
|
|
418
418
|
}
|
|
@@ -483,7 +483,7 @@ function __wbg_get_imports() {
|
|
|
483
483
|
const a = state0.a;
|
|
484
484
|
state0.a = 0;
|
|
485
485
|
try {
|
|
486
|
-
return
|
|
486
|
+
return wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(a, state0.b, arg0, arg1);
|
|
487
487
|
} finally {
|
|
488
488
|
state0.a = a;
|
|
489
489
|
}
|
|
@@ -570,8 +570,8 @@ function __wbg_get_imports() {
|
|
|
570
570
|
console.warn(arg0);
|
|
571
571
|
},
|
|
572
572
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
573
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
574
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
573
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 461, function: Function { arguments: [Externref], shim_idx: 462, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
574
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8b48c6150aee1942, wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2);
|
|
575
575
|
return ret;
|
|
576
576
|
},
|
|
577
577
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -600,23 +600,23 @@ function __wbg_get_imports() {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
|
|
603
|
-
function
|
|
604
|
-
const ret = wasm.
|
|
603
|
+
function wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2(arg0, arg1, arg2) {
|
|
604
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2(arg0, arg1, arg2);
|
|
605
605
|
if (ret[1]) {
|
|
606
606
|
throw takeFromExternrefTable0(ret[0]);
|
|
607
607
|
}
|
|
608
608
|
}
|
|
609
609
|
|
|
610
|
-
function
|
|
611
|
-
wasm.
|
|
610
|
+
function wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(arg0, arg1, arg2, arg3) {
|
|
611
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(arg0, arg1, arg2, arg3);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
function
|
|
615
|
-
wasm.
|
|
614
|
+
function wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(arg0, arg1, arg2, arg3) {
|
|
615
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(arg0, arg1, arg2, arg3);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
function
|
|
619
|
-
wasm.
|
|
618
|
+
function wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(arg0, arg1, arg2, arg3, arg4) {
|
|
619
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(arg0, arg1, arg2, arg3, arg4);
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
function addToExternrefTable0(obj) {
|
package/nodejs/acvm_js_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const buildInfo: () => any;
|
|
4
5
|
export const compressWitness: (a: any) => [number, number, number, number];
|
|
5
6
|
export const decompressWitness: (a: number, b: number) => [number, number, number];
|
|
6
7
|
export const compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -8,22 +9,21 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
|
|
|
8
9
|
export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
9
10
|
export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
10
11
|
export const executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
12
|
+
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
13
|
+
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
14
|
+
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
11
15
|
export const and: (a: any, b: any) => any;
|
|
12
16
|
export const xor: (a: any, b: any) => any;
|
|
13
17
|
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
14
18
|
export const blake2s256: (a: number, b: number) => [number, number];
|
|
15
19
|
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
16
20
|
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
17
|
-
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
18
|
-
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
19
|
-
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
20
21
|
export const initLogLevel: (a: number, b: number) => [number, number];
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2_21: (a: number, b: number, c: any, d: any) => void;
|
|
22
|
+
export const wasm_bindgen__closure__destroy__h8b48c6150aee1942: (a: number, b: number) => void;
|
|
23
|
+
export const wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2: (a: number, b: number, c: any) => [number, number];
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e: (a: number, b: number, c: any, d: any) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21: (a: number, b: number, c: any, d: any) => void;
|
|
27
27
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
28
28
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
29
29
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/noir-acvm_js",
|
|
3
|
-
"version": "0.0.1-commit.
|
|
3
|
+
"version": "0.0.1-commit.f5d02921e",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"packageManager": "yarn@4.5.2",
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "bash ./build.sh",
|
|
32
|
-
"test": "
|
|
32
|
+
"test": "mocha",
|
|
33
33
|
"test:browser": "web-test-runner",
|
|
34
34
|
"lint": "NODE_NO_WARNINGS=1 eslint . --max-warnings 0",
|
|
35
35
|
"publish": "echo 📡 publishing `$npm_package_name` && yarn npm publish",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"@web/test-runner": "^0.20.2",
|
|
43
43
|
"@web/test-runner-playwright": "^0.11.1",
|
|
44
44
|
"chai": "^6.2.2",
|
|
45
|
-
"eslint": "^10.0
|
|
45
|
+
"eslint": "^10.1.0",
|
|
46
46
|
"eslint-plugin-prettier": "^5.5.5",
|
|
47
47
|
"mocha": "^11.7.5",
|
|
48
48
|
"prettier": "3.8.1",
|
|
49
|
-
"
|
|
50
|
-
"typescript": "^
|
|
49
|
+
"tsx": "^4.21.0",
|
|
50
|
+
"typescript": "^6.0.2"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/web/acvm_js.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
205
205
|
|
|
206
206
|
export interface InitOutput {
|
|
207
207
|
readonly memory: WebAssembly.Memory;
|
|
208
|
+
readonly buildInfo: () => any;
|
|
208
209
|
readonly compressWitness: (a: any) => [number, number, number, number];
|
|
209
210
|
readonly decompressWitness: (a: number, b: number) => [number, number, number];
|
|
210
211
|
readonly compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -212,22 +213,21 @@ export interface InitOutput {
|
|
|
212
213
|
readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
213
214
|
readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
214
215
|
readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
216
|
+
readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
217
|
+
readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
218
|
+
readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
215
219
|
readonly and: (a: any, b: any) => any;
|
|
216
220
|
readonly xor: (a: any, b: any) => any;
|
|
217
221
|
readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
218
222
|
readonly blake2s256: (a: number, b: number) => [number, number];
|
|
219
223
|
readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
220
224
|
readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
221
|
-
readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
222
|
-
readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
223
|
-
readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
224
225
|
readonly initLogLevel: (a: number, b: number) => [number, number];
|
|
225
|
-
readonly
|
|
226
|
-
readonly
|
|
227
|
-
readonly
|
|
228
|
-
readonly
|
|
229
|
-
readonly
|
|
230
|
-
readonly wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2_21: (a: number, b: number, c: any, d: any) => void;
|
|
226
|
+
readonly wasm_bindgen__closure__destroy__h8b48c6150aee1942: (a: number, b: number) => void;
|
|
227
|
+
readonly wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
228
|
+
readonly wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2: (a: number, b: number, c: any) => [number, number];
|
|
229
|
+
readonly wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e: (a: number, b: number, c: any, d: any) => void;
|
|
230
|
+
readonly wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21: (a: number, b: number, c: any, d: any) => void;
|
|
231
231
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
232
232
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
233
233
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/web/acvm_js.js
CHANGED
|
@@ -377,7 +377,7 @@ function __wbg_get_imports() {
|
|
|
377
377
|
const a = state0.a;
|
|
378
378
|
state0.a = 0;
|
|
379
379
|
try {
|
|
380
|
-
return
|
|
380
|
+
return wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(a, state0.b, arg0, arg1);
|
|
381
381
|
} finally {
|
|
382
382
|
state0.a = a;
|
|
383
383
|
}
|
|
@@ -394,7 +394,7 @@ function __wbg_get_imports() {
|
|
|
394
394
|
const a = state0.a;
|
|
395
395
|
state0.a = 0;
|
|
396
396
|
try {
|
|
397
|
-
return
|
|
397
|
+
return wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(a, state0.b, arg0, arg1, arg2);
|
|
398
398
|
} finally {
|
|
399
399
|
state0.a = a;
|
|
400
400
|
}
|
|
@@ -465,7 +465,7 @@ function __wbg_get_imports() {
|
|
|
465
465
|
const a = state0.a;
|
|
466
466
|
state0.a = 0;
|
|
467
467
|
try {
|
|
468
|
-
return
|
|
468
|
+
return wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(a, state0.b, arg0, arg1);
|
|
469
469
|
} finally {
|
|
470
470
|
state0.a = a;
|
|
471
471
|
}
|
|
@@ -552,8 +552,8 @@ function __wbg_get_imports() {
|
|
|
552
552
|
console.warn(arg0);
|
|
553
553
|
},
|
|
554
554
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
555
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
556
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
555
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 461, function: Function { arguments: [Externref], shim_idx: 462, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
556
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8b48c6150aee1942, wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2);
|
|
557
557
|
return ret;
|
|
558
558
|
},
|
|
559
559
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -582,23 +582,23 @@ function __wbg_get_imports() {
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
|
|
585
|
-
function
|
|
586
|
-
const ret = wasm.
|
|
585
|
+
function wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2(arg0, arg1, arg2) {
|
|
586
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2(arg0, arg1, arg2);
|
|
587
587
|
if (ret[1]) {
|
|
588
588
|
throw takeFromExternrefTable0(ret[0]);
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
|
|
592
|
-
function
|
|
593
|
-
wasm.
|
|
592
|
+
function wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(arg0, arg1, arg2, arg3) {
|
|
593
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e(arg0, arg1, arg2, arg3);
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function
|
|
597
|
-
wasm.
|
|
596
|
+
function wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(arg0, arg1, arg2, arg3) {
|
|
597
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21(arg0, arg1, arg2, arg3);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
-
function
|
|
601
|
-
wasm.
|
|
600
|
+
function wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(arg0, arg1, arg2, arg3, arg4) {
|
|
601
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9(arg0, arg1, arg2, arg3, arg4);
|
|
602
602
|
}
|
|
603
603
|
|
|
604
604
|
function addToExternrefTable0(obj) {
|
package/web/acvm_js_bg.wasm
CHANGED
|
Binary file
|
package/web/acvm_js_bg.wasm.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const buildInfo: () => any;
|
|
4
5
|
export const compressWitness: (a: any) => [number, number, number, number];
|
|
5
6
|
export const decompressWitness: (a: number, b: number) => [number, number, number];
|
|
6
7
|
export const compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -8,22 +9,21 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
|
|
|
8
9
|
export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
9
10
|
export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
10
11
|
export const executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
12
|
+
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
13
|
+
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
14
|
+
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
11
15
|
export const and: (a: any, b: any) => any;
|
|
12
16
|
export const xor: (a: any, b: any) => any;
|
|
13
17
|
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
14
18
|
export const blake2s256: (a: number, b: number) => [number, number];
|
|
15
19
|
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
16
20
|
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
17
|
-
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
18
|
-
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
19
|
-
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
20
21
|
export const initLogLevel: (a: number, b: number) => [number, number];
|
|
21
|
-
export const
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const wasm_bindgen__convert__closures_____invoke__h5a259cce50f322a2_21: (a: number, b: number, c: any, d: any) => void;
|
|
22
|
+
export const wasm_bindgen__closure__destroy__h8b48c6150aee1942: (a: number, b: number) => void;
|
|
23
|
+
export const wasm_bindgen__convert__closures_____invoke__h84f218f81c040df9: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__h9fb3c42a8d0e48c2: (a: number, b: number, c: any) => [number, number];
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e: (a: number, b: number, c: any, d: any) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h329d47fe035cec3e_21: (a: number, b: number, c: any, d: any) => void;
|
|
27
27
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
28
28
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
29
29
|
export const __wbindgen_exn_store: (a: number) => void;
|