@aztec/noir-acvm_js 0.0.1-commit.d117d021b → 0.0.1-commit.d1da697d6
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 +12 -12
- package/package.json +5 -5
- package/web/acvm_js.d.ts +12 -12
- package/web/acvm_js.js +13 -13
- package/web/acvm_js_bg.wasm +0 -0
- package/web/acvm_js_bg.wasm.d.ts +12 -12
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__h7270c8092a2ce551(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__h0454a7f4f6db42b3(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__h7270c8092a2ce551_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__h6ca9a03bbf21d1b5, wasm_bindgen__convert__closures_____invoke__hecae831177a731ce);
|
|
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__hecae831177a731ce(arg0, arg1, arg2) {
|
|
604
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hecae831177a731ce(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__h7270c8092a2ce551(arg0, arg1, arg2, arg3) {
|
|
611
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551(arg0, arg1, arg2, arg3);
|
|
612
612
|
}
|
|
613
613
|
|
|
614
|
-
function
|
|
615
|
-
wasm.
|
|
614
|
+
function wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_21(arg0, arg1, arg2, arg3) {
|
|
615
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_21(arg0, arg1, arg2, arg3);
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
function
|
|
619
|
-
wasm.
|
|
618
|
+
function wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3(arg0, arg1, arg2, arg3, arg4) {
|
|
619
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3(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,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const and: (a: any, b: any) => any;
|
|
5
|
+
export const xor: (a: any, b: any) => any;
|
|
6
|
+
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
7
|
+
export const blake2s256: (a: number, b: number) => [number, number];
|
|
8
|
+
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
9
|
+
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
10
|
+
export const initLogLevel: (a: number, b: number) => [number, number];
|
|
4
11
|
export const compressWitness: (a: any) => [number, number, number, number];
|
|
5
12
|
export const decompressWitness: (a: number, b: number) => [number, number, number];
|
|
6
13
|
export const compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -8,22 +15,15 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
|
|
|
8
15
|
export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
9
16
|
export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
10
17
|
export const executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
11
|
-
export const and: (a: any, b: any) => any;
|
|
12
|
-
export const xor: (a: any, b: any) => any;
|
|
13
|
-
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
14
|
-
export const blake2s256: (a: number, b: number) => [number, number];
|
|
15
|
-
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
16
|
-
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
17
18
|
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
18
19
|
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
19
20
|
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
20
21
|
export const buildInfo: () => any;
|
|
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__h6ca9a03bbf21d1b5: (a: number, b: number) => void;
|
|
23
|
+
export const wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__hecae831177a731ce: (a: number, b: number, c: any) => [number, number];
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551: (a: number, b: number, c: any, d: any) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_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.d1da697d6",
|
|
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,13 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
205
205
|
|
|
206
206
|
export interface InitOutput {
|
|
207
207
|
readonly memory: WebAssembly.Memory;
|
|
208
|
+
readonly and: (a: any, b: any) => any;
|
|
209
|
+
readonly xor: (a: any, b: any) => any;
|
|
210
|
+
readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
211
|
+
readonly blake2s256: (a: number, b: number) => [number, number];
|
|
212
|
+
readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
213
|
+
readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
214
|
+
readonly initLogLevel: (a: number, b: number) => [number, number];
|
|
208
215
|
readonly compressWitness: (a: any) => [number, number, number, number];
|
|
209
216
|
readonly decompressWitness: (a: number, b: number) => [number, number, number];
|
|
210
217
|
readonly compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -212,22 +219,15 @@ export interface InitOutput {
|
|
|
212
219
|
readonly executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
213
220
|
readonly executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
214
221
|
readonly executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
215
|
-
readonly and: (a: any, b: any) => any;
|
|
216
|
-
readonly xor: (a: any, b: any) => any;
|
|
217
|
-
readonly sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
218
|
-
readonly blake2s256: (a: number, b: number) => [number, number];
|
|
219
|
-
readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
220
|
-
readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
221
222
|
readonly getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
222
223
|
readonly getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
223
224
|
readonly getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
224
225
|
readonly buildInfo: () => any;
|
|
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__h6ca9a03bbf21d1b5: (a: number, b: number) => void;
|
|
227
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
228
|
+
readonly wasm_bindgen__convert__closures_____invoke__hecae831177a731ce: (a: number, b: number, c: any) => [number, number];
|
|
229
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551: (a: number, b: number, c: any, d: any) => void;
|
|
230
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_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__h7270c8092a2ce551(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__h0454a7f4f6db42b3(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__h7270c8092a2ce551_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__h6ca9a03bbf21d1b5, wasm_bindgen__convert__closures_____invoke__hecae831177a731ce);
|
|
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__hecae831177a731ce(arg0, arg1, arg2) {
|
|
586
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hecae831177a731ce(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__h7270c8092a2ce551(arg0, arg1, arg2, arg3) {
|
|
593
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551(arg0, arg1, arg2, arg3);
|
|
594
594
|
}
|
|
595
595
|
|
|
596
|
-
function
|
|
597
|
-
wasm.
|
|
596
|
+
function wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_21(arg0, arg1, arg2, arg3) {
|
|
597
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_21(arg0, arg1, arg2, arg3);
|
|
598
598
|
}
|
|
599
599
|
|
|
600
|
-
function
|
|
601
|
-
wasm.
|
|
600
|
+
function wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3(arg0, arg1, arg2, arg3, arg4) {
|
|
601
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3(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,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const and: (a: any, b: any) => any;
|
|
5
|
+
export const xor: (a: any, b: any) => any;
|
|
6
|
+
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
7
|
+
export const blake2s256: (a: number, b: number) => [number, number];
|
|
8
|
+
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
9
|
+
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
10
|
+
export const initLogLevel: (a: number, b: number) => [number, number];
|
|
4
11
|
export const compressWitness: (a: any) => [number, number, number, number];
|
|
5
12
|
export const decompressWitness: (a: number, b: number) => [number, number, number];
|
|
6
13
|
export const compressWitnessStack: (a: any) => [number, number, number, number];
|
|
@@ -8,22 +15,15 @@ export const decompressWitnessStack: (a: number, b: number) => [number, number,
|
|
|
8
15
|
export const executeCircuit: (a: number, b: number, c: any, d: any) => any;
|
|
9
16
|
export const executeCircuitWithReturnWitness: (a: number, b: number, c: any, d: any) => any;
|
|
10
17
|
export const executeProgram: (a: number, b: number, c: any, d: any) => any;
|
|
11
|
-
export const and: (a: any, b: any) => any;
|
|
12
|
-
export const xor: (a: any, b: any) => any;
|
|
13
|
-
export const sha256_compression: (a: number, b: number, c: number, d: number) => [number, number];
|
|
14
|
-
export const blake2s256: (a: number, b: number) => [number, number];
|
|
15
|
-
export const ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
16
|
-
export const ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
17
18
|
export const getReturnWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
18
19
|
export const getPublicParametersWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
19
20
|
export const getPublicWitness: (a: number, b: number, c: any) => [number, number, number];
|
|
20
21
|
export const buildInfo: () => any;
|
|
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__h6ca9a03bbf21d1b5: (a: number, b: number) => void;
|
|
23
|
+
export const wasm_bindgen__convert__closures_____invoke__h0454a7f4f6db42b3: (a: number, b: number, c: any, d: number, e: any) => void;
|
|
24
|
+
export const wasm_bindgen__convert__closures_____invoke__hecae831177a731ce: (a: number, b: number, c: any) => [number, number];
|
|
25
|
+
export const wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551: (a: number, b: number, c: any, d: any) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h7270c8092a2ce551_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;
|