@noir-lang/acvm_js 1.0.0-beta.1-c8d5ce5.nightly → 1.0.0-beta.1-29d2d8a.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.
- package/nodejs/acvm_js.d.ts +34 -34
- package/nodejs/acvm_js.js +83 -83
- package/nodejs/acvm_js_bg.wasm +0 -0
- package/nodejs/acvm_js_bg.wasm.d.ts +7 -7
- package/package.json +1 -1
- package/web/acvm_js.d.ts +41 -41
- package/web/acvm_js.js +82 -82
- package/web/acvm_js_bg.wasm +0 -0
- package/web/acvm_js_bg.wasm.d.ts +7 -7
package/nodejs/acvm_js.d.ts
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
5
|
+
*
|
|
6
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
7
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
8
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
9
|
+
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
10
|
+
*/
|
|
11
|
+
export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
|
|
12
|
+
/**
|
|
13
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
14
|
+
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
15
|
+
*
|
|
16
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
17
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
18
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
19
|
+
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
20
|
+
*/
|
|
21
|
+
export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
|
|
22
|
+
/**
|
|
23
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
24
|
+
*
|
|
25
|
+
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
26
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
27
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
28
|
+
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
29
|
+
*/
|
|
30
|
+
export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the package's logging level.
|
|
33
|
+
*
|
|
34
|
+
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
35
|
+
*/
|
|
36
|
+
export function initLogLevel(filter: string): void;
|
|
37
|
+
/**
|
|
4
38
|
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
5
39
|
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
6
40
|
*/
|
|
@@ -112,40 +146,6 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
|
|
|
112
146
|
* @returns {boolean}
|
|
113
147
|
*/
|
|
114
148
|
export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
117
|
-
*
|
|
118
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
119
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
120
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
121
|
-
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
122
|
-
*/
|
|
123
|
-
export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
|
|
124
|
-
/**
|
|
125
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
126
|
-
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
127
|
-
*
|
|
128
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
129
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
130
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
131
|
-
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
132
|
-
*/
|
|
133
|
-
export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
|
|
134
|
-
/**
|
|
135
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
136
|
-
*
|
|
137
|
-
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
138
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
139
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
140
|
-
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
141
|
-
*/
|
|
142
|
-
export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
|
|
143
|
-
/**
|
|
144
|
-
* Sets the package's logging level.
|
|
145
|
-
*
|
|
146
|
-
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
147
|
-
*/
|
|
148
|
-
export function initLogLevel(filter: string): void;
|
|
149
149
|
|
|
150
150
|
// Map from witness index to hex string value of witness.
|
|
151
151
|
export type WitnessMap = Map<number, string>;
|
package/nodejs/acvm_js.js
CHANGED
|
@@ -217,9 +217,82 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
217
217
|
return real;
|
|
218
218
|
}
|
|
219
219
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
220
|
-
wasm.
|
|
220
|
+
wasm.wasm_bindgen__convert__closures__invoke1_mut__h88a56384c96b757b(arg0, arg1, addHeapObject(arg2));
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
224
|
+
const ptr = malloc(arg.length * 1) >>> 0;
|
|
225
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
226
|
+
WASM_VECTOR_LEN = arg.length;
|
|
227
|
+
return ptr;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
231
|
+
*
|
|
232
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
233
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
234
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
235
|
+
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
236
|
+
*/
|
|
237
|
+
module.exports.executeCircuit = function(program, initial_witness, foreign_call_handler) {
|
|
238
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
239
|
+
const len0 = WASM_VECTOR_LEN;
|
|
240
|
+
const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
241
|
+
return takeObject(ret);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
246
|
+
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
247
|
+
*
|
|
248
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
249
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
250
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
251
|
+
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
252
|
+
*/
|
|
253
|
+
module.exports.executeCircuitWithReturnWitness = function(program, initial_witness, foreign_call_handler) {
|
|
254
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
255
|
+
const len0 = WASM_VECTOR_LEN;
|
|
256
|
+
const ret = wasm.executeCircuitWithReturnWitness(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
257
|
+
return takeObject(ret);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
262
|
+
*
|
|
263
|
+
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
264
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
265
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
266
|
+
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
267
|
+
*/
|
|
268
|
+
module.exports.executeProgram = function(program, initial_witness, foreign_call_handler) {
|
|
269
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
270
|
+
const len0 = WASM_VECTOR_LEN;
|
|
271
|
+
const ret = wasm.executeProgram(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
272
|
+
return takeObject(ret);
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Sets the package's logging level.
|
|
277
|
+
*
|
|
278
|
+
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
279
|
+
*/
|
|
280
|
+
module.exports.initLogLevel = function(filter) {
|
|
281
|
+
try {
|
|
282
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
283
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
284
|
+
const len0 = WASM_VECTOR_LEN;
|
|
285
|
+
wasm.initLogLevel(retptr, ptr0, len0);
|
|
286
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
287
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
288
|
+
if (r1) {
|
|
289
|
+
throw takeObject(r0);
|
|
290
|
+
}
|
|
291
|
+
} finally {
|
|
292
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
|
|
223
296
|
/**
|
|
224
297
|
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
225
298
|
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
@@ -229,12 +302,6 @@ module.exports.buildInfo = function() {
|
|
|
229
302
|
return takeObject(ret);
|
|
230
303
|
};
|
|
231
304
|
|
|
232
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
233
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
234
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
235
|
-
WASM_VECTOR_LEN = arg.length;
|
|
236
|
-
return ptr;
|
|
237
|
-
}
|
|
238
305
|
/**
|
|
239
306
|
* Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
|
|
240
307
|
*
|
|
@@ -551,75 +618,8 @@ module.exports.ecdsa_secp256r1_verify = function(hashed_msg, public_key_x_bytes,
|
|
|
551
618
|
return ret !== 0;
|
|
552
619
|
};
|
|
553
620
|
|
|
554
|
-
/**
|
|
555
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
556
|
-
*
|
|
557
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
558
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
559
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
560
|
-
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
561
|
-
*/
|
|
562
|
-
module.exports.executeCircuit = function(program, initial_witness, foreign_call_handler) {
|
|
563
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
564
|
-
const len0 = WASM_VECTOR_LEN;
|
|
565
|
-
const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
566
|
-
return takeObject(ret);
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
571
|
-
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
572
|
-
*
|
|
573
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
574
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
575
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
576
|
-
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
577
|
-
*/
|
|
578
|
-
module.exports.executeCircuitWithReturnWitness = function(program, initial_witness, foreign_call_handler) {
|
|
579
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
580
|
-
const len0 = WASM_VECTOR_LEN;
|
|
581
|
-
const ret = wasm.executeCircuitWithReturnWitness(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
582
|
-
return takeObject(ret);
|
|
583
|
-
};
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
587
|
-
*
|
|
588
|
-
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
589
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
590
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
591
|
-
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
592
|
-
*/
|
|
593
|
-
module.exports.executeProgram = function(program, initial_witness, foreign_call_handler) {
|
|
594
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
595
|
-
const len0 = WASM_VECTOR_LEN;
|
|
596
|
-
const ret = wasm.executeProgram(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
597
|
-
return takeObject(ret);
|
|
598
|
-
};
|
|
599
|
-
|
|
600
|
-
/**
|
|
601
|
-
* Sets the package's logging level.
|
|
602
|
-
*
|
|
603
|
-
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
604
|
-
*/
|
|
605
|
-
module.exports.initLogLevel = function(filter) {
|
|
606
|
-
try {
|
|
607
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
608
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
609
|
-
const len0 = WASM_VECTOR_LEN;
|
|
610
|
-
wasm.initLogLevel(retptr, ptr0, len0);
|
|
611
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
612
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
613
|
-
if (r1) {
|
|
614
|
-
throw takeObject(r0);
|
|
615
|
-
}
|
|
616
|
-
} finally {
|
|
617
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
618
|
-
}
|
|
619
|
-
};
|
|
620
|
-
|
|
621
621
|
function __wbg_adapter_75(arg0, arg1, arg2, arg3, arg4) {
|
|
622
|
-
wasm.
|
|
622
|
+
wasm.wasm_bindgen__convert__closures__invoke3_mut__h24d1dd0bd469df82(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
function handleError(f, args) {
|
|
@@ -630,7 +630,7 @@ function handleError(f, args) {
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
function __wbg_adapter_92(arg0, arg1, arg2, arg3) {
|
|
633
|
-
wasm.
|
|
633
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h57a2220e5f1e0a1e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
634
634
|
}
|
|
635
635
|
|
|
636
636
|
module.exports.__wbindgen_cb_drop = function(arg0) {
|
|
@@ -657,6 +657,11 @@ module.exports.__wbindgen_is_array = function(arg0) {
|
|
|
657
657
|
return ret;
|
|
658
658
|
};
|
|
659
659
|
|
|
660
|
+
module.exports.__wbg_constructor_a10f2b77c63b8d5e = function(arg0) {
|
|
661
|
+
const ret = new Error(takeObject(arg0));
|
|
662
|
+
return addHeapObject(ret);
|
|
663
|
+
};
|
|
664
|
+
|
|
660
665
|
module.exports.__wbg_new_d86d15722f6b14a4 = function() {
|
|
661
666
|
const ret = new Map();
|
|
662
667
|
return addHeapObject(ret);
|
|
@@ -681,11 +686,6 @@ module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
|
681
686
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
682
687
|
};
|
|
683
688
|
|
|
684
|
-
module.exports.__wbg_constructor_a10f2b77c63b8d5e = function(arg0) {
|
|
685
|
-
const ret = new Error(takeObject(arg0));
|
|
686
|
-
return addHeapObject(ret);
|
|
687
|
-
};
|
|
688
|
-
|
|
689
689
|
module.exports.__wbg_new_a16954212d33afab = function() {
|
|
690
690
|
const ret = new Array();
|
|
691
691
|
return addHeapObject(ret);
|
|
@@ -916,8 +916,8 @@ module.exports.__wbindgen_throw = function(arg0, arg1) {
|
|
|
916
916
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
917
917
|
};
|
|
918
918
|
|
|
919
|
-
module.exports.
|
|
920
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
919
|
+
module.exports.__wbindgen_closure_wrapper765 = function(arg0, arg1, arg2) {
|
|
920
|
+
const ret = makeMutClosure(arg0, arg1, 299, __wbg_adapter_22);
|
|
921
921
|
return addHeapObject(ret);
|
|
922
922
|
};
|
|
923
923
|
|
package/nodejs/acvm_js_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
5
|
+
export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
|
|
6
|
+
export function executeProgram(a: number, b: number, c: number, d: number): number;
|
|
7
|
+
export function initLogLevel(a: number, b: number, c: number): void;
|
|
4
8
|
export function buildInfo(): number;
|
|
5
9
|
export function getReturnWitness(a: number, b: number, c: number, d: number): void;
|
|
6
10
|
export function getPublicParametersWitness(a: number, b: number, c: number, d: number): void;
|
|
@@ -15,16 +19,12 @@ export function sha256_compression(a: number, b: number, c: number, d: number, e
|
|
|
15
19
|
export function blake2s256(a: number, b: number, c: number): void;
|
|
16
20
|
export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
17
21
|
export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
18
|
-
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
19
|
-
export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
|
|
20
|
-
export function executeProgram(a: number, b: number, c: number, d: number): number;
|
|
21
|
-
export function initLogLevel(a: number, b: number, c: number): void;
|
|
22
22
|
export function __wbindgen_malloc(a: number): number;
|
|
23
23
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
24
24
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
25
|
-
export function
|
|
25
|
+
export function wasm_bindgen__convert__closures__invoke1_mut__h88a56384c96b757b(a: number, b: number, c: number): void;
|
|
26
26
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
27
27
|
export function __wbindgen_free(a: number, b: number): void;
|
|
28
|
-
export function
|
|
28
|
+
export function wasm_bindgen__convert__closures__invoke3_mut__h24d1dd0bd469df82(a: number, b: number, c: number, d: number, e: number): void;
|
|
29
29
|
export function __wbindgen_exn_store(a: number): void;
|
|
30
|
-
export function
|
|
30
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h57a2220e5f1e0a1e(a: number, b: number, c: number, d: number): void;
|
package/package.json
CHANGED
package/web/acvm_js.d.ts
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
5
|
+
*
|
|
6
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
7
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
8
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
9
|
+
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
10
|
+
*/
|
|
11
|
+
export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
|
|
12
|
+
/**
|
|
13
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
14
|
+
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
15
|
+
*
|
|
16
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
17
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
18
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
19
|
+
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
20
|
+
*/
|
|
21
|
+
export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
|
|
22
|
+
/**
|
|
23
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
24
|
+
*
|
|
25
|
+
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
26
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
27
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
28
|
+
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
29
|
+
*/
|
|
30
|
+
export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
|
|
31
|
+
/**
|
|
32
|
+
* Sets the package's logging level.
|
|
33
|
+
*
|
|
34
|
+
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
35
|
+
*/
|
|
36
|
+
export function initLogLevel(filter: string): void;
|
|
37
|
+
/**
|
|
4
38
|
* Returns the `BuildInfo` object containing information about how the installed package was built.
|
|
5
39
|
* @returns {BuildInfo} - Information on how the installed package was built.
|
|
6
40
|
*/
|
|
@@ -112,40 +146,6 @@ export function ecdsa_secp256k1_verify(hashed_msg: Uint8Array, public_key_x_byte
|
|
|
112
146
|
* @returns {boolean}
|
|
113
147
|
*/
|
|
114
148
|
export function ecdsa_secp256r1_verify(hashed_msg: Uint8Array, public_key_x_bytes: Uint8Array, public_key_y_bytes: Uint8Array, signature: Uint8Array): boolean;
|
|
115
|
-
/**
|
|
116
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
117
|
-
*
|
|
118
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
119
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
120
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
121
|
-
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
122
|
-
*/
|
|
123
|
-
export function executeCircuit(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessMap>;
|
|
124
|
-
/**
|
|
125
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
126
|
-
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
127
|
-
*
|
|
128
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
129
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
130
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
131
|
-
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
132
|
-
*/
|
|
133
|
-
export function executeCircuitWithReturnWitness(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<SolvedAndReturnWitness>;
|
|
134
|
-
/**
|
|
135
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
136
|
-
*
|
|
137
|
-
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
138
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
139
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
140
|
-
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
141
|
-
*/
|
|
142
|
-
export function executeProgram(program: Uint8Array, initial_witness: WitnessMap, foreign_call_handler: ForeignCallHandler): Promise<WitnessStack>;
|
|
143
|
-
/**
|
|
144
|
-
* Sets the package's logging level.
|
|
145
|
-
*
|
|
146
|
-
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
147
|
-
*/
|
|
148
|
-
export function initLogLevel(filter: string): void;
|
|
149
149
|
|
|
150
150
|
// Map from witness index to hex string value of witness.
|
|
151
151
|
export type WitnessMap = Map<number, string>;
|
|
@@ -216,6 +216,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
216
216
|
|
|
217
217
|
export interface InitOutput {
|
|
218
218
|
readonly memory: WebAssembly.Memory;
|
|
219
|
+
readonly executeCircuit: (a: number, b: number, c: number, d: number) => number;
|
|
220
|
+
readonly executeCircuitWithReturnWitness: (a: number, b: number, c: number, d: number) => number;
|
|
221
|
+
readonly executeProgram: (a: number, b: number, c: number, d: number) => number;
|
|
222
|
+
readonly initLogLevel: (a: number, b: number, c: number) => void;
|
|
219
223
|
readonly buildInfo: () => number;
|
|
220
224
|
readonly getReturnWitness: (a: number, b: number, c: number, d: number) => void;
|
|
221
225
|
readonly getPublicParametersWitness: (a: number, b: number, c: number, d: number) => void;
|
|
@@ -230,19 +234,15 @@ export interface InitOutput {
|
|
|
230
234
|
readonly blake2s256: (a: number, b: number, c: number) => void;
|
|
231
235
|
readonly ecdsa_secp256k1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
232
236
|
readonly ecdsa_secp256r1_verify: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
233
|
-
readonly executeCircuit: (a: number, b: number, c: number, d: number) => number;
|
|
234
|
-
readonly executeCircuitWithReturnWitness: (a: number, b: number, c: number, d: number) => number;
|
|
235
|
-
readonly executeProgram: (a: number, b: number, c: number, d: number) => number;
|
|
236
|
-
readonly initLogLevel: (a: number, b: number, c: number) => void;
|
|
237
237
|
readonly __wbindgen_malloc: (a: number) => number;
|
|
238
238
|
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
|
|
239
239
|
readonly __wbindgen_export_2: WebAssembly.Table;
|
|
240
|
-
readonly
|
|
240
|
+
readonly wasm_bindgen__convert__closures__invoke1_mut__h88a56384c96b757b: (a: number, b: number, c: number) => void;
|
|
241
241
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
242
242
|
readonly __wbindgen_free: (a: number, b: number) => void;
|
|
243
|
-
readonly
|
|
243
|
+
readonly wasm_bindgen__convert__closures__invoke3_mut__h24d1dd0bd469df82: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
244
244
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
245
|
-
readonly
|
|
245
|
+
readonly wasm_bindgen__convert__closures__invoke2_mut__h57a2220e5f1e0a1e: (a: number, b: number, c: number, d: number) => void;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
package/web/acvm_js.js
CHANGED
|
@@ -214,7 +214,80 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
214
214
|
return real;
|
|
215
215
|
}
|
|
216
216
|
function __wbg_adapter_22(arg0, arg1, arg2) {
|
|
217
|
-
wasm.
|
|
217
|
+
wasm.wasm_bindgen__convert__closures__invoke1_mut__h88a56384c96b757b(arg0, arg1, addHeapObject(arg2));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
221
|
+
const ptr = malloc(arg.length * 1) >>> 0;
|
|
222
|
+
getUint8Memory0().set(arg, ptr / 1);
|
|
223
|
+
WASM_VECTOR_LEN = arg.length;
|
|
224
|
+
return ptr;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
228
|
+
*
|
|
229
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
230
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
231
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
232
|
+
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
233
|
+
*/
|
|
234
|
+
export function executeCircuit(program, initial_witness, foreign_call_handler) {
|
|
235
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
238
|
+
return takeObject(ret);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
243
|
+
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
244
|
+
*
|
|
245
|
+
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
246
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
247
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
248
|
+
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
249
|
+
*/
|
|
250
|
+
export function executeCircuitWithReturnWitness(program, initial_witness, foreign_call_handler) {
|
|
251
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
252
|
+
const len0 = WASM_VECTOR_LEN;
|
|
253
|
+
const ret = wasm.executeCircuitWithReturnWitness(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
254
|
+
return takeObject(ret);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
259
|
+
*
|
|
260
|
+
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
261
|
+
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
262
|
+
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
263
|
+
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
264
|
+
*/
|
|
265
|
+
export function executeProgram(program, initial_witness, foreign_call_handler) {
|
|
266
|
+
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
267
|
+
const len0 = WASM_VECTOR_LEN;
|
|
268
|
+
const ret = wasm.executeProgram(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
269
|
+
return takeObject(ret);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Sets the package's logging level.
|
|
274
|
+
*
|
|
275
|
+
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
276
|
+
*/
|
|
277
|
+
export function initLogLevel(filter) {
|
|
278
|
+
try {
|
|
279
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
280
|
+
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
281
|
+
const len0 = WASM_VECTOR_LEN;
|
|
282
|
+
wasm.initLogLevel(retptr, ptr0, len0);
|
|
283
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
284
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
285
|
+
if (r1) {
|
|
286
|
+
throw takeObject(r0);
|
|
287
|
+
}
|
|
288
|
+
} finally {
|
|
289
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
290
|
+
}
|
|
218
291
|
}
|
|
219
292
|
|
|
220
293
|
/**
|
|
@@ -226,12 +299,6 @@ export function buildInfo() {
|
|
|
226
299
|
return takeObject(ret);
|
|
227
300
|
}
|
|
228
301
|
|
|
229
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
230
|
-
const ptr = malloc(arg.length * 1) >>> 0;
|
|
231
|
-
getUint8Memory0().set(arg, ptr / 1);
|
|
232
|
-
WASM_VECTOR_LEN = arg.length;
|
|
233
|
-
return ptr;
|
|
234
|
-
}
|
|
235
302
|
/**
|
|
236
303
|
* Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
|
|
237
304
|
*
|
|
@@ -548,75 +615,8 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
|
|
|
548
615
|
return ret !== 0;
|
|
549
616
|
}
|
|
550
617
|
|
|
551
|
-
/**
|
|
552
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
553
|
-
*
|
|
554
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
555
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
556
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
557
|
-
* @returns {WitnessMap} The solved witness calculated by executing the circuit on the provided inputs.
|
|
558
|
-
*/
|
|
559
|
-
export function executeCircuit(program, initial_witness, foreign_call_handler) {
|
|
560
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
561
|
-
const len0 = WASM_VECTOR_LEN;
|
|
562
|
-
const ret = wasm.executeCircuit(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
563
|
-
return takeObject(ret);
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/**
|
|
567
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
568
|
-
* This method also extracts the public return values from the solved witness into its own return witness.
|
|
569
|
-
*
|
|
570
|
-
* @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
|
|
571
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `circuit`..
|
|
572
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the circuit.
|
|
573
|
-
* @returns {SolvedAndReturnWitness} The solved witness calculated by executing the circuit on the provided inputs, as well as the return witness indices as specified by the circuit.
|
|
574
|
-
*/
|
|
575
|
-
export function executeCircuitWithReturnWitness(program, initial_witness, foreign_call_handler) {
|
|
576
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
577
|
-
const len0 = WASM_VECTOR_LEN;
|
|
578
|
-
const ret = wasm.executeCircuitWithReturnWitness(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
579
|
-
return takeObject(ret);
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
/**
|
|
583
|
-
* Executes an ACIR circuit to generate the solved witness from the initial witness.
|
|
584
|
-
*
|
|
585
|
-
* @param {Uint8Array} program - A serialized representation of an ACIR program
|
|
586
|
-
* @param {WitnessMap} initial_witness - The initial witness map defining all of the inputs to `program`.
|
|
587
|
-
* @param {ForeignCallHandler} foreign_call_handler - A callback to process any foreign calls from the program.
|
|
588
|
-
* @returns {WitnessStack} The solved witness calculated by executing the program on the provided inputs.
|
|
589
|
-
*/
|
|
590
|
-
export function executeProgram(program, initial_witness, foreign_call_handler) {
|
|
591
|
-
const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
|
|
592
|
-
const len0 = WASM_VECTOR_LEN;
|
|
593
|
-
const ret = wasm.executeProgram(ptr0, len0, addHeapObject(initial_witness), addHeapObject(foreign_call_handler));
|
|
594
|
-
return takeObject(ret);
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
/**
|
|
598
|
-
* Sets the package's logging level.
|
|
599
|
-
*
|
|
600
|
-
* @param {LogLevel} level - The maximum level of logging to be emitted.
|
|
601
|
-
*/
|
|
602
|
-
export function initLogLevel(filter) {
|
|
603
|
-
try {
|
|
604
|
-
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
605
|
-
const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
606
|
-
const len0 = WASM_VECTOR_LEN;
|
|
607
|
-
wasm.initLogLevel(retptr, ptr0, len0);
|
|
608
|
-
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
609
|
-
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
610
|
-
if (r1) {
|
|
611
|
-
throw takeObject(r0);
|
|
612
|
-
}
|
|
613
|
-
} finally {
|
|
614
|
-
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
|
|
618
618
|
function __wbg_adapter_75(arg0, arg1, arg2, arg3, arg4) {
|
|
619
|
-
wasm.
|
|
619
|
+
wasm.wasm_bindgen__convert__closures__invoke3_mut__h24d1dd0bd469df82(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
function handleError(f, args) {
|
|
@@ -627,7 +627,7 @@ function handleError(f, args) {
|
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
function __wbg_adapter_92(arg0, arg1, arg2, arg3) {
|
|
630
|
-
wasm.
|
|
630
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h57a2220e5f1e0a1e(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
async function __wbg_load(module, imports) {
|
|
@@ -684,6 +684,10 @@ function __wbg_get_imports() {
|
|
|
684
684
|
const ret = Array.isArray(getObject(arg0));
|
|
685
685
|
return ret;
|
|
686
686
|
};
|
|
687
|
+
imports.wbg.__wbg_constructor_a10f2b77c63b8d5e = function(arg0) {
|
|
688
|
+
const ret = new Error(takeObject(arg0));
|
|
689
|
+
return addHeapObject(ret);
|
|
690
|
+
};
|
|
687
691
|
imports.wbg.__wbg_new_d86d15722f6b14a4 = function() {
|
|
688
692
|
const ret = new Map();
|
|
689
693
|
return addHeapObject(ret);
|
|
@@ -704,10 +708,6 @@ function __wbg_get_imports() {
|
|
|
704
708
|
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
705
709
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
706
710
|
};
|
|
707
|
-
imports.wbg.__wbg_constructor_a10f2b77c63b8d5e = function(arg0) {
|
|
708
|
-
const ret = new Error(takeObject(arg0));
|
|
709
|
-
return addHeapObject(ret);
|
|
710
|
-
};
|
|
711
711
|
imports.wbg.__wbg_new_a16954212d33afab = function() {
|
|
712
712
|
const ret = new Array();
|
|
713
713
|
return addHeapObject(ret);
|
|
@@ -901,8 +901,8 @@ function __wbg_get_imports() {
|
|
|
901
901
|
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
|
|
902
902
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
903
903
|
};
|
|
904
|
-
imports.wbg.
|
|
905
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
904
|
+
imports.wbg.__wbindgen_closure_wrapper765 = function(arg0, arg1, arg2) {
|
|
905
|
+
const ret = makeMutClosure(arg0, arg1, 299, __wbg_adapter_22);
|
|
906
906
|
return addHeapObject(ret);
|
|
907
907
|
};
|
|
908
908
|
|
package/web/acvm_js_bg.wasm
CHANGED
|
Binary file
|
package/web/acvm_js_bg.wasm.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export const memory: WebAssembly.Memory;
|
|
4
|
+
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
5
|
+
export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
|
|
6
|
+
export function executeProgram(a: number, b: number, c: number, d: number): number;
|
|
7
|
+
export function initLogLevel(a: number, b: number, c: number): void;
|
|
4
8
|
export function buildInfo(): number;
|
|
5
9
|
export function getReturnWitness(a: number, b: number, c: number, d: number): void;
|
|
6
10
|
export function getPublicParametersWitness(a: number, b: number, c: number, d: number): void;
|
|
@@ -15,16 +19,12 @@ export function sha256_compression(a: number, b: number, c: number, d: number, e
|
|
|
15
19
|
export function blake2s256(a: number, b: number, c: number): void;
|
|
16
20
|
export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
17
21
|
export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
|
|
18
|
-
export function executeCircuit(a: number, b: number, c: number, d: number): number;
|
|
19
|
-
export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
|
|
20
|
-
export function executeProgram(a: number, b: number, c: number, d: number): number;
|
|
21
|
-
export function initLogLevel(a: number, b: number, c: number): void;
|
|
22
22
|
export function __wbindgen_malloc(a: number): number;
|
|
23
23
|
export function __wbindgen_realloc(a: number, b: number, c: number): number;
|
|
24
24
|
export const __wbindgen_export_2: WebAssembly.Table;
|
|
25
|
-
export function
|
|
25
|
+
export function wasm_bindgen__convert__closures__invoke1_mut__h88a56384c96b757b(a: number, b: number, c: number): void;
|
|
26
26
|
export function __wbindgen_add_to_stack_pointer(a: number): number;
|
|
27
27
|
export function __wbindgen_free(a: number, b: number): void;
|
|
28
|
-
export function
|
|
28
|
+
export function wasm_bindgen__convert__closures__invoke3_mut__h24d1dd0bd469df82(a: number, b: number, c: number, d: number, e: number): void;
|
|
29
29
|
export function __wbindgen_exn_store(a: number): void;
|
|
30
|
-
export function
|
|
30
|
+
export function wasm_bindgen__convert__closures__invoke2_mut__h57a2220e5f1e0a1e(a: number, b: number, c: number, d: number): void;
|