@noir-lang/acvm_js 0.29.0 → 0.30.0
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.d.ts +9 -9
- package/nodejs/acvm_js.js +37 -37
- package/nodejs/acvm_js_bg.wasm +0 -0
- package/nodejs/acvm_js_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
- package/web/acvm_js.d.ts +10 -10
- package/web/acvm_js.js +35 -35
- package/web/acvm_js_bg.wasm +0 -0
- package/web/acvm_js_bg.wasm.d.ts +1 -1
package/nodejs/acvm_js.d.ts
CHANGED
|
@@ -15,11 +15,6 @@ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
|
|
|
15
15
|
*/
|
|
16
16
|
export function compressWitness(witness_map: WitnessMap): Uint8Array;
|
|
17
17
|
/**
|
|
18
|
-
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
19
|
-
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
20
|
-
*/
|
|
21
|
-
export function buildInfo(): BuildInfo;
|
|
22
|
-
/**
|
|
23
18
|
* Verifies a ECDSA signature over the secp256r1 curve.
|
|
24
19
|
* @param {Uint8Array} hashed_msg
|
|
25
20
|
* @param {Uint8Array} public_key_x_bytes
|
|
@@ -71,6 +66,11 @@ export function xor(lhs: string, rhs: string): string;
|
|
|
71
66
|
*/
|
|
72
67
|
export function and(lhs: string, rhs: string): string;
|
|
73
68
|
/**
|
|
69
|
+
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
70
|
+
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
71
|
+
*/
|
|
72
|
+
export function buildInfo(): BuildInfo;
|
|
73
|
+
/**
|
|
74
74
|
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
75
75
|
*
|
|
76
76
|
* @param {&WasmBlackBoxFunctionSolver} solver - A black box solver.
|
|
@@ -161,13 +161,13 @@ export type BuildInfo = {
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
export type
|
|
165
|
-
callStack?: string[];
|
|
166
|
-
};
|
|
164
|
+
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE";
|
|
167
165
|
|
|
168
166
|
|
|
169
167
|
|
|
170
|
-
export type
|
|
168
|
+
export type ExecutionError = Error & {
|
|
169
|
+
callStack?: string[];
|
|
170
|
+
};
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
package/nodejs/acvm_js.js
CHANGED
|
@@ -11,15 +11,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
11
11
|
|
|
12
12
|
let heap_next = heap.length;
|
|
13
13
|
|
|
14
|
-
function addHeapObject(obj) {
|
|
15
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
16
|
-
const idx = heap_next;
|
|
17
|
-
heap_next = heap[idx];
|
|
18
|
-
|
|
19
|
-
heap[idx] = obj;
|
|
20
|
-
return idx;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
14
|
function dropObject(idx) {
|
|
24
15
|
if (idx < 132) return;
|
|
25
16
|
heap[idx] = heap_next;
|
|
@@ -50,6 +41,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
50
41
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
51
42
|
}
|
|
52
43
|
|
|
44
|
+
function addHeapObject(obj) {
|
|
45
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
46
|
+
const idx = heap_next;
|
|
47
|
+
heap_next = heap[idx];
|
|
48
|
+
|
|
49
|
+
heap[idx] = obj;
|
|
50
|
+
return idx;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
53
|
function isLikeNone(x) {
|
|
54
54
|
return x === undefined || x === null;
|
|
55
55
|
}
|
|
@@ -288,15 +288,6 @@ module.exports.compressWitness = function(witness_map) {
|
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
290
|
|
|
291
|
-
/**
|
|
292
|
-
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
293
|
-
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
294
|
-
*/
|
|
295
|
-
module.exports.buildInfo = function() {
|
|
296
|
-
const ret = wasm.buildInfo();
|
|
297
|
-
return takeObject(ret);
|
|
298
|
-
};
|
|
299
|
-
|
|
300
291
|
/**
|
|
301
292
|
* Verifies a ECDSA signature over the secp256r1 curve.
|
|
302
293
|
* @param {Uint8Array} hashed_msg
|
|
@@ -425,6 +416,15 @@ module.exports.and = function(lhs, rhs) {
|
|
|
425
416
|
return takeObject(ret);
|
|
426
417
|
};
|
|
427
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
421
|
+
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
422
|
+
*/
|
|
423
|
+
module.exports.buildInfo = function() {
|
|
424
|
+
const ret = wasm.buildInfo();
|
|
425
|
+
return takeObject(ret);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
428
|
function _assertClass(instance, klass) {
|
|
429
429
|
if (!(instance instanceof klass)) {
|
|
430
430
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -626,11 +626,6 @@ class WasmBlackBoxFunctionSolver {
|
|
|
626
626
|
}
|
|
627
627
|
module.exports.WasmBlackBoxFunctionSolver = WasmBlackBoxFunctionSolver;
|
|
628
628
|
|
|
629
|
-
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
630
|
-
const ret = getObject(arg0);
|
|
631
|
-
return addHeapObject(ret);
|
|
632
|
-
};
|
|
633
|
-
|
|
634
629
|
module.exports.__wbindgen_object_drop_ref = function(arg0) {
|
|
635
630
|
takeObject(arg0);
|
|
636
631
|
};
|
|
@@ -640,6 +635,11 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
640
635
|
return addHeapObject(ret);
|
|
641
636
|
};
|
|
642
637
|
|
|
638
|
+
module.exports.__wbindgen_object_clone_ref = function(arg0) {
|
|
639
|
+
const ret = getObject(arg0);
|
|
640
|
+
return addHeapObject(ret);
|
|
641
|
+
};
|
|
642
|
+
|
|
643
643
|
module.exports.__wbindgen_is_string = function(arg0) {
|
|
644
644
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
645
645
|
return ret;
|
|
@@ -650,19 +650,14 @@ module.exports.__wbindgen_is_array = function(arg0) {
|
|
|
650
650
|
return ret;
|
|
651
651
|
};
|
|
652
652
|
|
|
653
|
-
module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
|
|
654
|
-
const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
|
|
655
|
-
return addHeapObject(ret);
|
|
656
|
-
};
|
|
657
|
-
|
|
658
653
|
module.exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
659
654
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
660
655
|
return addHeapObject(ret);
|
|
661
656
|
};
|
|
662
657
|
|
|
663
|
-
module.exports.
|
|
664
|
-
const ret =
|
|
665
|
-
return ret;
|
|
658
|
+
module.exports.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
|
|
659
|
+
const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
|
|
660
|
+
return addHeapObject(ret);
|
|
666
661
|
};
|
|
667
662
|
|
|
668
663
|
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
@@ -672,9 +667,9 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
|
672
667
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
673
668
|
};
|
|
674
669
|
|
|
675
|
-
module.exports.
|
|
676
|
-
const ret =
|
|
677
|
-
return
|
|
670
|
+
module.exports.__wbindgen_is_undefined = function(arg0) {
|
|
671
|
+
const ret = getObject(arg0) === undefined;
|
|
672
|
+
return ret;
|
|
678
673
|
};
|
|
679
674
|
|
|
680
675
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
@@ -696,7 +691,7 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
|
696
691
|
return ret;
|
|
697
692
|
};
|
|
698
693
|
|
|
699
|
-
module.exports.
|
|
694
|
+
module.exports.__wbg_new_e290c3c041336f87 = function() {
|
|
700
695
|
const ret = new Map();
|
|
701
696
|
return addHeapObject(ret);
|
|
702
697
|
};
|
|
@@ -706,6 +701,11 @@ module.exports.__wbindgen_number_new = function(arg0) {
|
|
|
706
701
|
return addHeapObject(ret);
|
|
707
702
|
};
|
|
708
703
|
|
|
704
|
+
module.exports.__wbg_constructor_6e18ba778d67e20b = function(arg0) {
|
|
705
|
+
const ret = new Error(takeObject(arg0));
|
|
706
|
+
return addHeapObject(ret);
|
|
707
|
+
};
|
|
708
|
+
|
|
709
709
|
module.exports.__wbg_new_abda76e883ba8a5f = function() {
|
|
710
710
|
const ret = new Error();
|
|
711
711
|
return addHeapObject(ret);
|
|
@@ -1189,8 +1189,8 @@ module.exports.__wbindgen_function_table = function() {
|
|
|
1189
1189
|
return addHeapObject(ret);
|
|
1190
1190
|
};
|
|
1191
1191
|
|
|
1192
|
-
module.exports.
|
|
1193
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1192
|
+
module.exports.__wbindgen_closure_wrapper631 = function(arg0, arg1, arg2) {
|
|
1193
|
+
const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_54);
|
|
1194
1194
|
return addHeapObject(ret);
|
|
1195
1195
|
};
|
|
1196
1196
|
|
package/nodejs/acvm_js_bg.wasm
CHANGED
|
Binary file
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function decompressWitness(a: number, b: number, c: number): void;
|
|
5
5
|
export function compressWitness(a: number, b: number): void;
|
|
6
|
-
export function buildInfo(): number;
|
|
7
6
|
export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
8
7
|
export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
9
8
|
export function keccak256(a: number, b: number, c: number): void;
|
|
@@ -11,6 +10,7 @@ export function blake2s256(a: number, b: number, c: number): void;
|
|
|
11
10
|
export function sha256(a: number, b: number, c: number): void;
|
|
12
11
|
export function xor(a: number, b: number): number;
|
|
13
12
|
export function and(a: number, b: number): number;
|
|
13
|
+
export function buildInfo(): number;
|
|
14
14
|
export function executeCircuitWithBlackBoxSolver(a: number, b: number, c: number, d: number, e: number): number;
|
|
15
15
|
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
16
16
|
export function createBlackBoxSolver(): number;
|
package/package.json
CHANGED
package/web/acvm_js.d.ts
CHANGED
|
@@ -15,11 +15,6 @@ export function decompressWitness(compressed_witness: Uint8Array): WitnessMap;
|
|
|
15
15
|
*/
|
|
16
16
|
export function compressWitness(witness_map: WitnessMap): Uint8Array;
|
|
17
17
|
/**
|
|
18
|
-
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
19
|
-
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
20
|
-
*/
|
|
21
|
-
export function buildInfo(): BuildInfo;
|
|
22
|
-
/**
|
|
23
18
|
* Verifies a ECDSA signature over the secp256r1 curve.
|
|
24
19
|
* @param {Uint8Array} hashed_msg
|
|
25
20
|
* @param {Uint8Array} public_key_x_bytes
|
|
@@ -71,6 +66,11 @@ export function xor(lhs: string, rhs: string): string;
|
|
|
71
66
|
*/
|
|
72
67
|
export function and(lhs: string, rhs: string): string;
|
|
73
68
|
/**
|
|
69
|
+
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
70
|
+
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
71
|
+
*/
|
|
72
|
+
export function buildInfo(): BuildInfo;
|
|
73
|
+
/**
|
|
74
74
|
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
75
75
|
*
|
|
76
76
|
* @param {&WasmBlackBoxFunctionSolver} solver - A black box solver.
|
|
@@ -161,13 +161,13 @@ export type BuildInfo = {
|
|
|
161
161
|
|
|
162
162
|
|
|
163
163
|
|
|
164
|
-
export type
|
|
165
|
-
callStack?: string[];
|
|
166
|
-
};
|
|
164
|
+
export type LogLevel = "OFF" | "ERROR" | "WARN" | "INFO" | "DEBUG" | "TRACE";
|
|
167
165
|
|
|
168
166
|
|
|
169
167
|
|
|
170
|
-
export type
|
|
168
|
+
export type ExecutionError = Error & {
|
|
169
|
+
callStack?: string[];
|
|
170
|
+
};
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
|
@@ -197,7 +197,6 @@ export interface InitOutput {
|
|
|
197
197
|
readonly memory: WebAssembly.Memory;
|
|
198
198
|
readonly decompressWitness: (a: number, b: number, c: number) => void;
|
|
199
199
|
readonly compressWitness: (a: number, b: number) => void;
|
|
200
|
-
readonly buildInfo: () => number;
|
|
201
200
|
readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
202
201
|
readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
203
202
|
readonly keccak256: (a: number, b: number, c: number) => void;
|
|
@@ -205,6 +204,7 @@ export interface InitOutput {
|
|
|
205
204
|
readonly sha256: (a: number, b: number, c: number) => void;
|
|
206
205
|
readonly xor: (a: number, b: number) => number;
|
|
207
206
|
readonly and: (a: number, b: number) => number;
|
|
207
|
+
readonly buildInfo: () => number;
|
|
208
208
|
readonly executeCircuitWithBlackBoxSolver: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
209
209
|
readonly executeCircuit: (a: number, b: number, c: number, d: number) => number;
|
|
210
210
|
readonly createBlackBoxSolver: () => number;
|
package/web/acvm_js.js
CHANGED
|
@@ -8,15 +8,6 @@ function getObject(idx) { return heap[idx]; }
|
|
|
8
8
|
|
|
9
9
|
let heap_next = heap.length;
|
|
10
10
|
|
|
11
|
-
function addHeapObject(obj) {
|
|
12
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
13
|
-
const idx = heap_next;
|
|
14
|
-
heap_next = heap[idx];
|
|
15
|
-
|
|
16
|
-
heap[idx] = obj;
|
|
17
|
-
return idx;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
11
|
function dropObject(idx) {
|
|
21
12
|
if (idx < 132) return;
|
|
22
13
|
heap[idx] = heap_next;
|
|
@@ -47,6 +38,15 @@ function getStringFromWasm0(ptr, len) {
|
|
|
47
38
|
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
48
39
|
}
|
|
49
40
|
|
|
41
|
+
function addHeapObject(obj) {
|
|
42
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
43
|
+
const idx = heap_next;
|
|
44
|
+
heap_next = heap[idx];
|
|
45
|
+
|
|
46
|
+
heap[idx] = obj;
|
|
47
|
+
return idx;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
50
|
function isLikeNone(x) {
|
|
51
51
|
return x === undefined || x === null;
|
|
52
52
|
}
|
|
@@ -285,15 +285,6 @@ export function compressWitness(witness_map) {
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
/**
|
|
289
|
-
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
290
|
-
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
291
|
-
*/
|
|
292
|
-
export function buildInfo() {
|
|
293
|
-
const ret = wasm.buildInfo();
|
|
294
|
-
return takeObject(ret);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
288
|
/**
|
|
298
289
|
* Verifies a ECDSA signature over the secp256r1 curve.
|
|
299
290
|
* @param {Uint8Array} hashed_msg
|
|
@@ -422,6 +413,15 @@ export function and(lhs, rhs) {
|
|
|
422
413
|
return takeObject(ret);
|
|
423
414
|
}
|
|
424
415
|
|
|
416
|
+
/**
|
|
417
|
+
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
418
|
+
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
419
|
+
*/
|
|
420
|
+
export function buildInfo() {
|
|
421
|
+
const ret = wasm.buildInfo();
|
|
422
|
+
return takeObject(ret);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
425
|
function _assertClass(instance, klass) {
|
|
426
426
|
if (!(instance instanceof klass)) {
|
|
427
427
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -655,10 +655,6 @@ async function __wbg_load(module, imports) {
|
|
|
655
655
|
function __wbg_get_imports() {
|
|
656
656
|
const imports = {};
|
|
657
657
|
imports.wbg = {};
|
|
658
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
659
|
-
const ret = getObject(arg0);
|
|
660
|
-
return addHeapObject(ret);
|
|
661
|
-
};
|
|
662
658
|
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
|
|
663
659
|
takeObject(arg0);
|
|
664
660
|
};
|
|
@@ -666,6 +662,10 @@ function __wbg_get_imports() {
|
|
|
666
662
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
667
663
|
return addHeapObject(ret);
|
|
668
664
|
};
|
|
665
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
666
|
+
const ret = getObject(arg0);
|
|
667
|
+
return addHeapObject(ret);
|
|
668
|
+
};
|
|
669
669
|
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
670
670
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
671
671
|
return ret;
|
|
@@ -674,17 +674,13 @@ function __wbg_get_imports() {
|
|
|
674
674
|
const ret = Array.isArray(getObject(arg0));
|
|
675
675
|
return ret;
|
|
676
676
|
};
|
|
677
|
-
imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
|
|
678
|
-
const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
|
|
679
|
-
return addHeapObject(ret);
|
|
680
|
-
};
|
|
681
677
|
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
682
678
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
683
679
|
return addHeapObject(ret);
|
|
684
680
|
};
|
|
685
|
-
imports.wbg.
|
|
686
|
-
const ret =
|
|
687
|
-
return ret;
|
|
681
|
+
imports.wbg.__wbg_wasmblackboxfunctionsolver_new = function(arg0) {
|
|
682
|
+
const ret = WasmBlackBoxFunctionSolver.__wrap(arg0);
|
|
683
|
+
return addHeapObject(ret);
|
|
688
684
|
};
|
|
689
685
|
imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
|
|
690
686
|
const obj = getObject(arg1);
|
|
@@ -692,9 +688,9 @@ function __wbg_get_imports() {
|
|
|
692
688
|
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
693
689
|
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
694
690
|
};
|
|
695
|
-
imports.wbg.
|
|
696
|
-
const ret =
|
|
697
|
-
return
|
|
691
|
+
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
692
|
+
const ret = getObject(arg0) === undefined;
|
|
693
|
+
return ret;
|
|
698
694
|
};
|
|
699
695
|
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
|
|
700
696
|
const obj = getObject(arg1);
|
|
@@ -713,7 +709,7 @@ function __wbg_get_imports() {
|
|
|
713
709
|
const ret = false;
|
|
714
710
|
return ret;
|
|
715
711
|
};
|
|
716
|
-
imports.wbg.
|
|
712
|
+
imports.wbg.__wbg_new_e290c3c041336f87 = function() {
|
|
717
713
|
const ret = new Map();
|
|
718
714
|
return addHeapObject(ret);
|
|
719
715
|
};
|
|
@@ -721,6 +717,10 @@ function __wbg_get_imports() {
|
|
|
721
717
|
const ret = arg0;
|
|
722
718
|
return addHeapObject(ret);
|
|
723
719
|
};
|
|
720
|
+
imports.wbg.__wbg_constructor_6e18ba778d67e20b = function(arg0) {
|
|
721
|
+
const ret = new Error(takeObject(arg0));
|
|
722
|
+
return addHeapObject(ret);
|
|
723
|
+
};
|
|
724
724
|
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
|
|
725
725
|
const ret = new Error();
|
|
726
726
|
return addHeapObject(ret);
|
|
@@ -1119,8 +1119,8 @@ function __wbg_get_imports() {
|
|
|
1119
1119
|
const ret = wasm.__wbindgen_export_2;
|
|
1120
1120
|
return addHeapObject(ret);
|
|
1121
1121
|
};
|
|
1122
|
-
imports.wbg.
|
|
1123
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1122
|
+
imports.wbg.__wbindgen_closure_wrapper631 = function(arg0, arg1, arg2) {
|
|
1123
|
+
const ret = makeMutClosure(arg0, arg1, 201, __wbg_adapter_54);
|
|
1124
1124
|
return addHeapObject(ret);
|
|
1125
1125
|
};
|
|
1126
1126
|
|
package/web/acvm_js_bg.wasm
CHANGED
|
Binary file
|
package/web/acvm_js_bg.wasm.d.ts
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
4
|
export function decompressWitness(a: number, b: number, c: number): void;
|
|
5
5
|
export function compressWitness(a: number, b: number): void;
|
|
6
|
-
export function buildInfo(): number;
|
|
7
6
|
export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
8
7
|
export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
9
8
|
export function keccak256(a: number, b: number, c: number): void;
|
|
@@ -11,6 +10,7 @@ export function blake2s256(a: number, b: number, c: number): void;
|
|
|
11
10
|
export function sha256(a: number, b: number, c: number): void;
|
|
12
11
|
export function xor(a: number, b: number): number;
|
|
13
12
|
export function and(a: number, b: number): number;
|
|
13
|
+
export function buildInfo(): number;
|
|
14
14
|
export function executeCircuitWithBlackBoxSolver(a: number, b: number, c: number, d: number, e: number): number;
|
|
15
15
|
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
16
16
|
export function createBlackBoxSolver(): number;
|