@noir-lang/acvm_js 0.53.0 → 0.54.0-0fc0c53.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/web/acvm_js.js CHANGED
@@ -20,6 +20,28 @@ function takeObject(idx) {
20
20
  return ret;
21
21
  }
22
22
 
23
+ function isLikeNone(x) {
24
+ return x === undefined || x === null;
25
+ }
26
+
27
+ let cachedFloat64Memory0 = null;
28
+
29
+ function getFloat64Memory0() {
30
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
31
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
32
+ }
33
+ return cachedFloat64Memory0;
34
+ }
35
+
36
+ let cachedInt32Memory0 = null;
37
+
38
+ function getInt32Memory0() {
39
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
40
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
41
+ }
42
+ return cachedInt32Memory0;
43
+ }
44
+
23
45
  const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
24
46
 
25
47
  if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
@@ -47,28 +69,6 @@ function addHeapObject(obj) {
47
69
  return idx;
48
70
  }
49
71
 
50
- function isLikeNone(x) {
51
- return x === undefined || x === null;
52
- }
53
-
54
- let cachedFloat64Memory0 = null;
55
-
56
- function getFloat64Memory0() {
57
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
58
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
59
- }
60
- return cachedFloat64Memory0;
61
- }
62
-
63
- let cachedInt32Memory0 = null;
64
-
65
- function getInt32Memory0() {
66
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
67
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
68
- }
69
- return cachedInt32Memory0;
70
- }
71
-
72
72
  let WASM_VECTOR_LEN = 0;
73
73
 
74
74
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
@@ -214,25 +214,33 @@ function makeMutClosure(arg0, arg1, dtor, f) {
214
214
  return real;
215
215
  }
216
216
  function __wbg_adapter_22(arg0, arg1, arg2) {
217
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21c8ca3eb6ab9385(arg0, arg1, addHeapObject(arg2));
217
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h624a3dfbf78ca22a(arg0, arg1, addHeapObject(arg2));
218
218
  }
219
219
 
220
+ function getArrayU8FromWasm0(ptr, len) {
221
+ ptr = ptr >>> 0;
222
+ return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
223
+ }
220
224
  /**
221
- * Sets the package's logging level.
225
+ * Compresses a `WitnessMap` into the binary format outputted by Nargo.
222
226
  *
223
- * @param {LogLevel} level - The maximum level of logging to be emitted.
227
+ * @param {WitnessMap} witness_map - A witness map.
228
+ * @returns {Uint8Array} A compressed witness map
224
229
  */
225
- export function initLogLevel(filter) {
230
+ export function compressWitness(witness_map) {
226
231
  try {
227
232
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
228
- const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
229
- const len0 = WASM_VECTOR_LEN;
230
- wasm.initLogLevel(retptr, ptr0, len0);
233
+ wasm.compressWitness(retptr, addHeapObject(witness_map));
231
234
  var r0 = getInt32Memory0()[retptr / 4 + 0];
232
235
  var r1 = getInt32Memory0()[retptr / 4 + 1];
233
- if (r1) {
234
- throw takeObject(r0);
236
+ var r2 = getInt32Memory0()[retptr / 4 + 2];
237
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
238
+ if (r3) {
239
+ throw takeObject(r2);
235
240
  }
241
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
242
+ wasm.__wbindgen_free(r0, r1 * 1);
243
+ return v1;
236
244
  } finally {
237
245
  wasm.__wbindgen_add_to_stack_pointer(16);
238
246
  }
@@ -245,21 +253,18 @@ function passArray8ToWasm0(arg, malloc) {
245
253
  return ptr;
246
254
  }
247
255
  /**
248
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
256
+ * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
257
+ * This should be used to only fetch the witness map for the main function.
249
258
  *
250
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
251
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
252
- * @returns {WitnessMap} A witness map containing the circuit's return values.
253
- * @param {Uint8Array} program
254
- * @param {WitnessMap} witness_map
255
- * @returns {WitnessMap}
259
+ * @param {Uint8Array} compressed_witness - A compressed witness.
260
+ * @returns {WitnessMap} The decompressed witness map.
256
261
  */
257
- export function getReturnWitness(program, witness_map) {
262
+ export function decompressWitness(compressed_witness) {
258
263
  try {
259
264
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
260
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
265
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
261
266
  const len0 = WASM_VECTOR_LEN;
262
- wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
267
+ wasm.decompressWitness(retptr, ptr0, len0);
263
268
  var r0 = getInt32Memory0()[retptr / 4 + 0];
264
269
  var r1 = getInt32Memory0()[retptr / 4 + 1];
265
270
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -273,49 +278,42 @@ export function getReturnWitness(program, witness_map) {
273
278
  }
274
279
 
275
280
  /**
276
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
281
+ * Compresses a `WitnessStack` into the binary format outputted by Nargo.
277
282
  *
278
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
279
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
280
- * @returns {WitnessMap} A witness map containing the circuit's public parameters.
281
- * @param {Uint8Array} program
282
- * @param {WitnessMap} solved_witness
283
- * @returns {WitnessMap}
283
+ * @param {WitnessStack} witness_stack - A witness stack.
284
+ * @returns {Uint8Array} A compressed witness stack
284
285
  */
285
- export function getPublicParametersWitness(program, solved_witness) {
286
+ export function compressWitnessStack(witness_stack) {
286
287
  try {
287
288
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
288
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
289
- const len0 = WASM_VECTOR_LEN;
290
- wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
289
+ wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
291
290
  var r0 = getInt32Memory0()[retptr / 4 + 0];
292
291
  var r1 = getInt32Memory0()[retptr / 4 + 1];
293
292
  var r2 = getInt32Memory0()[retptr / 4 + 2];
294
- if (r2) {
295
- throw takeObject(r1);
293
+ var r3 = getInt32Memory0()[retptr / 4 + 3];
294
+ if (r3) {
295
+ throw takeObject(r2);
296
296
  }
297
- return takeObject(r0);
297
+ var v1 = getArrayU8FromWasm0(r0, r1).slice();
298
+ wasm.__wbindgen_free(r0, r1 * 1);
299
+ return v1;
298
300
  } finally {
299
301
  wasm.__wbindgen_add_to_stack_pointer(16);
300
302
  }
301
303
  }
302
304
 
303
305
  /**
304
- * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
306
+ * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
305
307
  *
306
- * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
307
- * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
308
- * @returns {WitnessMap} A witness map containing the circuit's public inputs.
309
- * @param {Uint8Array} program
310
- * @param {WitnessMap} solved_witness
311
- * @returns {WitnessMap}
308
+ * @param {Uint8Array} compressed_witness - A compressed witness.
309
+ * @returns {WitnessStack} The decompressed witness stack.
312
310
  */
313
- export function getPublicWitness(program, solved_witness) {
311
+ export function decompressWitnessStack(compressed_witness) {
314
312
  try {
315
313
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
316
- const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
314
+ const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
317
315
  const len0 = WASM_VECTOR_LEN;
318
- wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
316
+ wasm.decompressWitnessStack(retptr, ptr0, len0);
319
317
  var r0 = getInt32Memory0()[retptr / 4 + 0];
320
318
  var r1 = getInt32Memory0()[retptr / 4 + 1];
321
319
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -328,6 +326,15 @@ export function getPublicWitness(program, solved_witness) {
328
326
  }
329
327
  }
330
328
 
329
+ /**
330
+ * Returns the `BuildInfo` object containing information about how the installed package was built.
331
+ * @returns {BuildInfo} - Information on how the installed package was built.
332
+ */
333
+ export function buildInfo() {
334
+ const ret = wasm.buildInfo();
335
+ return takeObject(ret);
336
+ }
337
+
331
338
  /**
332
339
  * Performs a bitwise AND operation between `lhs` and `rhs`
333
340
  * @param {string} lhs
@@ -394,10 +401,6 @@ export function sha256_compression(inputs, state) {
394
401
  }
395
402
  }
396
403
 
397
- function getArrayU8FromWasm0(ptr, len) {
398
- ptr = ptr >>> 0;
399
- return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
400
- }
401
404
  /**
402
405
  * Calculates the Blake2s256 hash of the input bytes
403
406
  * @param {Uint8Array} inputs
@@ -462,52 +465,42 @@ export function ecdsa_secp256r1_verify(hashed_msg, public_key_x_bytes, public_ke
462
465
  }
463
466
 
464
467
  /**
465
- * Returns the `BuildInfo` object containing information about how the installed package was built.
466
- * @returns {BuildInfo} - Information on how the installed package was built.
467
- */
468
- export function buildInfo() {
469
- const ret = wasm.buildInfo();
470
- return takeObject(ret);
471
- }
472
-
473
- /**
474
- * Compresses a `WitnessMap` into the binary format outputted by Nargo.
468
+ * Sets the package's logging level.
475
469
  *
476
- * @param {WitnessMap} witness_map - A witness map.
477
- * @returns {Uint8Array} A compressed witness map
470
+ * @param {LogLevel} level - The maximum level of logging to be emitted.
478
471
  */
479
- export function compressWitness(witness_map) {
472
+ export function initLogLevel(filter) {
480
473
  try {
481
474
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
482
- wasm.compressWitness(retptr, addHeapObject(witness_map));
475
+ const ptr0 = passStringToWasm0(filter, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
476
+ const len0 = WASM_VECTOR_LEN;
477
+ wasm.initLogLevel(retptr, ptr0, len0);
483
478
  var r0 = getInt32Memory0()[retptr / 4 + 0];
484
479
  var r1 = getInt32Memory0()[retptr / 4 + 1];
485
- var r2 = getInt32Memory0()[retptr / 4 + 2];
486
- var r3 = getInt32Memory0()[retptr / 4 + 3];
487
- if (r3) {
488
- throw takeObject(r2);
480
+ if (r1) {
481
+ throw takeObject(r0);
489
482
  }
490
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
491
- wasm.__wbindgen_free(r0, r1 * 1);
492
- return v1;
493
483
  } finally {
494
484
  wasm.__wbindgen_add_to_stack_pointer(16);
495
485
  }
496
486
  }
497
487
 
498
488
  /**
499
- * Decompresses a compressed witness as outputted by Nargo into a `WitnessMap`.
500
- * This should be used to only fetch the witness map for the main function.
489
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's return values.
501
490
  *
502
- * @param {Uint8Array} compressed_witness - A compressed witness.
503
- * @returns {WitnessMap} The decompressed witness map.
491
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
492
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
493
+ * @returns {WitnessMap} A witness map containing the circuit's return values.
494
+ * @param {Uint8Array} program
495
+ * @param {WitnessMap} witness_map
496
+ * @returns {WitnessMap}
504
497
  */
505
- export function decompressWitness(compressed_witness) {
498
+ export function getReturnWitness(program, witness_map) {
506
499
  try {
507
500
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
508
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
501
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
509
502
  const len0 = WASM_VECTOR_LEN;
510
- wasm.decompressWitness(retptr, ptr0, len0);
503
+ wasm.getReturnWitness(retptr, ptr0, len0, addHeapObject(witness_map));
511
504
  var r0 = getInt32Memory0()[retptr / 4 + 0];
512
505
  var r1 = getInt32Memory0()[retptr / 4 + 1];
513
506
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -521,42 +514,49 @@ export function decompressWitness(compressed_witness) {
521
514
  }
522
515
 
523
516
  /**
524
- * Compresses a `WitnessStack` into the binary format outputted by Nargo.
517
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public parameters.
525
518
  *
526
- * @param {WitnessStack} witness_stack - A witness stack.
527
- * @returns {Uint8Array} A compressed witness stack
519
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
520
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
521
+ * @returns {WitnessMap} A witness map containing the circuit's public parameters.
522
+ * @param {Uint8Array} program
523
+ * @param {WitnessMap} solved_witness
524
+ * @returns {WitnessMap}
528
525
  */
529
- export function compressWitnessStack(witness_stack) {
526
+ export function getPublicParametersWitness(program, solved_witness) {
530
527
  try {
531
528
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
532
- wasm.compressWitnessStack(retptr, addHeapObject(witness_stack));
529
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
530
+ const len0 = WASM_VECTOR_LEN;
531
+ wasm.getPublicParametersWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
533
532
  var r0 = getInt32Memory0()[retptr / 4 + 0];
534
533
  var r1 = getInt32Memory0()[retptr / 4 + 1];
535
534
  var r2 = getInt32Memory0()[retptr / 4 + 2];
536
- var r3 = getInt32Memory0()[retptr / 4 + 3];
537
- if (r3) {
538
- throw takeObject(r2);
535
+ if (r2) {
536
+ throw takeObject(r1);
539
537
  }
540
- var v1 = getArrayU8FromWasm0(r0, r1).slice();
541
- wasm.__wbindgen_free(r0, r1 * 1);
542
- return v1;
538
+ return takeObject(r0);
543
539
  } finally {
544
540
  wasm.__wbindgen_add_to_stack_pointer(16);
545
541
  }
546
542
  }
547
543
 
548
544
  /**
549
- * Decompresses a compressed witness stack as outputted by Nargo into a `WitnessStack`.
545
+ * Extracts a `WitnessMap` containing the witness indices corresponding to the circuit's public inputs.
550
546
  *
551
- * @param {Uint8Array} compressed_witness - A compressed witness.
552
- * @returns {WitnessStack} The decompressed witness stack.
547
+ * @param {Uint8Array} circuit - A serialized representation of an ACIR circuit
548
+ * @param {WitnessMap} witness_map - The completed witness map after executing the circuit.
549
+ * @returns {WitnessMap} A witness map containing the circuit's public inputs.
550
+ * @param {Uint8Array} program
551
+ * @param {WitnessMap} solved_witness
552
+ * @returns {WitnessMap}
553
553
  */
554
- export function decompressWitnessStack(compressed_witness) {
554
+ export function getPublicWitness(program, solved_witness) {
555
555
  try {
556
556
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
557
- const ptr0 = passArray8ToWasm0(compressed_witness, wasm.__wbindgen_malloc);
557
+ const ptr0 = passArray8ToWasm0(program, wasm.__wbindgen_malloc);
558
558
  const len0 = WASM_VECTOR_LEN;
559
- wasm.decompressWitnessStack(retptr, ptr0, len0);
559
+ wasm.getPublicWitness(retptr, ptr0, len0, addHeapObject(solved_witness));
560
560
  var r0 = getInt32Memory0()[retptr / 4 + 0];
561
561
  var r1 = getInt32Memory0()[retptr / 4 + 1];
562
562
  var r2 = getInt32Memory0()[retptr / 4 + 2];
@@ -616,7 +616,7 @@ export function executeProgram(program, initial_witness, foreign_call_handler) {
616
616
  }
617
617
 
618
618
  function __wbg_adapter_75(arg0, arg1, arg2, arg3, arg4) {
619
- wasm.wasm_bindgen__convert__closures__invoke3_mut__h17fc532521b46256(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
619
+ wasm.wasm_bindgen__convert__closures__invoke3_mut__h45040feada3ebb25(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.wasm_bindgen__convert__closures__invoke2_mut__h0d187b0f08495587(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
630
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h3f07259b3eb55784(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
631
631
  }
632
632
 
633
633
  async function __wbg_load(module, imports) {
@@ -667,6 +667,20 @@ function __wbg_get_imports() {
667
667
  imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
668
668
  takeObject(arg0);
669
669
  };
670
+ imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
671
+ const obj = getObject(arg1);
672
+ const ret = typeof(obj) === 'number' ? obj : undefined;
673
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
674
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
675
+ };
676
+ imports.wbg.__wbindgen_is_string = function(arg0) {
677
+ const ret = typeof(getObject(arg0)) === 'string';
678
+ return ret;
679
+ };
680
+ imports.wbg.__wbindgen_is_array = function(arg0) {
681
+ const ret = Array.isArray(getObject(arg0));
682
+ return ret;
683
+ };
670
684
  imports.wbg.__wbindgen_cb_drop = function(arg0) {
671
685
  const obj = takeObject(arg0).original;
672
686
  if (obj.cnt-- == 1) {
@@ -676,7 +690,7 @@ function __wbg_get_imports() {
676
690
  const ret = false;
677
691
  return ret;
678
692
  };
679
- imports.wbg.__wbg_constructor_01cf62506201187d = function(arg0) {
693
+ imports.wbg.__wbg_constructor_79bab16c42849d1b = function(arg0) {
680
694
  const ret = new Error(takeObject(arg0));
681
695
  return addHeapObject(ret);
682
696
  };
@@ -684,7 +698,7 @@ function __wbg_get_imports() {
684
698
  const ret = getStringFromWasm0(arg0, arg1);
685
699
  return addHeapObject(ret);
686
700
  };
687
- imports.wbg.__wbg_new_0d58cd3f85c51a07 = function() {
701
+ imports.wbg.__wbg_new_610492d70b2d4e55 = function() {
688
702
  const ret = new Array();
689
703
  return addHeapObject(ret);
690
704
  };
@@ -692,21 +706,7 @@ function __wbg_get_imports() {
692
706
  const ret = arg0;
693
707
  return addHeapObject(ret);
694
708
  };
695
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
696
- const obj = getObject(arg1);
697
- const ret = typeof(obj) === 'number' ? obj : undefined;
698
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
699
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
700
- };
701
- imports.wbg.__wbindgen_is_string = function(arg0) {
702
- const ret = typeof(getObject(arg0)) === 'string';
703
- return ret;
704
- };
705
- imports.wbg.__wbindgen_is_array = function(arg0) {
706
- const ret = Array.isArray(getObject(arg0));
707
- return ret;
708
- };
709
- imports.wbg.__wbg_new_ced18ca7e58573af = function() {
709
+ imports.wbg.__wbg_new_7b5514a697f386eb = function() {
710
710
  const ret = new Map();
711
711
  return addHeapObject(ret);
712
712
  };
@@ -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.__wbindgen_closure_wrapper736 = function(arg0, arg1, arg2) {
905
- const ret = makeMutClosure(arg0, arg1, 269, __wbg_adapter_22);
904
+ imports.wbg.__wbindgen_closure_wrapper737 = function(arg0, arg1, arg2) {
905
+ const ret = makeMutClosure(arg0, arg1, 265, __wbg_adapter_22);
906
906
  return addHeapObject(ret);
907
907
  };
908
908
 
Binary file
@@ -1,30 +1,30 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export const memory: WebAssembly.Memory;
4
- export function initLogLevel(a: number, b: number, c: number): void;
5
- export function getReturnWitness(a: number, b: number, c: number, d: number): void;
6
- export function getPublicParametersWitness(a: number, b: number, c: number, d: number): void;
7
- export function getPublicWitness(a: number, b: number, c: number, d: number): void;
4
+ export function compressWitness(a: number, b: number): void;
5
+ export function decompressWitness(a: number, b: number, c: number): void;
6
+ export function compressWitnessStack(a: number, b: number): void;
7
+ export function decompressWitnessStack(a: number, b: number, c: number): void;
8
+ export function buildInfo(): number;
8
9
  export function and(a: number, b: number): number;
9
10
  export function xor(a: number, b: number): number;
10
11
  export function sha256_compression(a: number, b: number, c: number, d: number, e: number): void;
11
12
  export function blake2s256(a: number, b: number, c: number): void;
12
13
  export function ecdsa_secp256k1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
13
14
  export function ecdsa_secp256r1_verify(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number): number;
14
- export function buildInfo(): number;
15
- export function compressWitness(a: number, b: number): void;
16
- export function decompressWitness(a: number, b: number, c: number): void;
17
- export function compressWitnessStack(a: number, b: number): void;
18
- export function decompressWitnessStack(a: number, b: number, c: number): void;
15
+ export function initLogLevel(a: number, b: number, c: number): void;
16
+ export function getReturnWitness(a: number, b: number, c: number, d: number): void;
17
+ export function getPublicParametersWitness(a: number, b: number, c: number, d: number): void;
18
+ export function getPublicWitness(a: number, b: number, c: number, d: number): void;
19
19
  export function executeCircuit(a: number, b: number, c: number, d: number): number;
20
20
  export function executeCircuitWithReturnWitness(a: number, b: number, c: number, d: number): number;
21
21
  export function executeProgram(a: number, b: number, c: number, d: number): number;
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 _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h21c8ca3eb6ab9385(a: number, b: number, c: number): void;
25
+ export function _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h624a3dfbf78ca22a(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 wasm_bindgen__convert__closures__invoke3_mut__h17fc532521b46256(a: number, b: number, c: number, d: number, e: number): void;
28
+ export function wasm_bindgen__convert__closures__invoke3_mut__h45040feada3ebb25(a: number, b: number, c: number, d: number, e: number): void;
29
29
  export function __wbindgen_exn_store(a: number): void;
30
- export function wasm_bindgen__convert__closures__invoke2_mut__h0d187b0f08495587(a: number, b: number, c: number, d: number): void;
30
+ export function wasm_bindgen__convert__closures__invoke2_mut__h3f07259b3eb55784(a: number, b: number, c: number, d: number): void;