Skip to content

Commit

Permalink
Run npm run bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
dannywillems committed Jul 11, 2023
1 parent 3843756 commit 9f0cb58
Show file tree
Hide file tree
Showing 12 changed files with 18,317 additions and 18,332 deletions.
2 changes: 1 addition & 1 deletion MINA_COMMIT
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
The mina commit used to generate the backends for node and web is
dd0f8fc5115a8be0a88375d8576036aa8e6c3304
68ed164c65b7a743d296c66945a5a3b92468dda7
18 changes: 12 additions & 6 deletions compiled/node_bindings/plonk_wasm.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -564,19 +564,22 @@ function passArray32ToWasm0(arg, malloc) {
/**
* @param {WasmFpGateVector} gates
* @param {number} public_
* @param {Uint32Array} lookup_tables
* @param {Uint32Array} runtime_table_cfgs
* @param {number} prev_challenges
* @param {WasmFpSrs} srs
* @returns {WasmPastaFpPlonkIndex}
*/
module.exports.caml_pasta_fp_plonk_index_create = function(gates, public_, runtime_table_cfgs, prev_challenges, srs) {
module.exports.caml_pasta_fp_plonk_index_create = function(gates, public_, lookup_tables, runtime_table_cfgs, prev_challenges, srs) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertClass(gates, WasmFpGateVector);
const ptr0 = passArray32ToWasm0(runtime_table_cfgs, wasm.__wbindgen_malloc);
const ptr0 = passArray32ToWasm0(lookup_tables, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArray32ToWasm0(runtime_table_cfgs, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
_assertClass(srs, WasmFpSrs);
wasm.caml_pasta_fp_plonk_index_create(retptr, gates.ptr, public_, ptr0, len0, prev_challenges, srs.ptr);
wasm.caml_pasta_fp_plonk_index_create(retptr, gates.ptr, public_, ptr0, len0, ptr1, len1, prev_challenges, srs.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
Expand Down Expand Up @@ -710,19 +713,22 @@ module.exports.caml_pasta_fp_plonk_index_serialize = function(index) {
/**
* @param {WasmFqGateVector} gates
* @param {number} public_
* @param {Uint32Array} lookup_tables
* @param {Uint32Array} runtime_table_cfgs
* @param {number} prev_challenges
* @param {WasmFqSrs} srs
* @returns {WasmPastaFqPlonkIndex}
*/
module.exports.caml_pasta_fq_plonk_index_create = function(gates, public_, runtime_table_cfgs, prev_challenges, srs) {
module.exports.caml_pasta_fq_plonk_index_create = function(gates, public_, lookup_tables, runtime_table_cfgs, prev_challenges, srs) {
try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
_assertClass(gates, WasmFqGateVector);
const ptr0 = passArray32ToWasm0(runtime_table_cfgs, wasm.__wbindgen_malloc);
const ptr0 = passArray32ToWasm0(lookup_tables, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
const ptr1 = passArray32ToWasm0(runtime_table_cfgs, wasm.__wbindgen_malloc);
const len1 = WASM_VECTOR_LEN;
_assertClass(srs, WasmFqSrs);
wasm.caml_pasta_fq_plonk_index_create(retptr, gates.ptr, public_, ptr0, len0, prev_challenges, srs.ptr);
wasm.caml_pasta_fq_plonk_index_create(retptr, gates.ptr, public_, ptr0, len0, ptr1, len1, prev_challenges, srs.ptr);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
var r2 = getInt32Memory0()[retptr / 4 + 2];
Expand Down
6 changes: 4 additions & 2 deletions compiled/node_bindings/plonk_wasm.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,13 @@ export function caml_vesta_affine_deep_copy(x: WasmGVesta): WasmGVesta;
/**
* @param {WasmFpGateVector} gates
* @param {number} public_
* @param {Uint32Array} lookup_tables
* @param {Uint32Array} runtime_table_cfgs
* @param {number} prev_challenges
* @param {WasmFpSrs} srs
* @returns {WasmPastaFpPlonkIndex}
*/
export function caml_pasta_fp_plonk_index_create(gates: WasmFpGateVector, public_: number, runtime_table_cfgs: Uint32Array, prev_challenges: number, srs: WasmFpSrs): WasmPastaFpPlonkIndex;
export function caml_pasta_fp_plonk_index_create(gates: WasmFpGateVector, public_: number, lookup_tables: Uint32Array, runtime_table_cfgs: Uint32Array, prev_challenges: number, srs: WasmFpSrs): WasmPastaFpPlonkIndex;
/**
* @param {WasmPastaFpPlonkIndex} index
* @returns {number}
Expand Down Expand Up @@ -203,12 +204,13 @@ export function caml_pasta_fp_plonk_index_serialize(index: WasmPastaFpPlonkIndex
/**
* @param {WasmFqGateVector} gates
* @param {number} public_
* @param {Uint32Array} lookup_tables
* @param {Uint32Array} runtime_table_cfgs
* @param {number} prev_challenges
* @param {WasmFqSrs} srs
* @returns {WasmPastaFqPlonkIndex}
*/
export function caml_pasta_fq_plonk_index_create(gates: WasmFqGateVector, public_: number, runtime_table_cfgs: Uint32Array, prev_challenges: number, srs: WasmFqSrs): WasmPastaFqPlonkIndex;
export function caml_pasta_fq_plonk_index_create(gates: WasmFqGateVector, public_: number, lookup_tables: Uint32Array, runtime_table_cfgs: Uint32Array, prev_challenges: number, srs: WasmFqSrs): WasmPastaFqPlonkIndex;
/**
* @param {WasmPastaFqPlonkIndex} index
* @returns {number}
Expand Down
Binary file modified compiled/node_bindings/plonk_wasm_bg.wasm
Binary file not shown.
48 changes: 24 additions & 24 deletions compiled/node_bindings/plonk_wasm_bg.wasm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function __wbg_wasmpastafplookuptable_free(a: number): void;
export function wasmpastafplookuptable_new(a: number, b: number): number;
export function __wbg_wasmpastafpruntimetablecfg_free(a: number): void;
export function wasmpastafpruntimetablecfg_new(a: number, b: number, c: number): number;
export function caml_pasta_fp_plonk_index_create(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void;
export function caml_pasta_fp_plonk_index_create(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): void;
export function caml_pasta_fp_plonk_index_max_degree(a: number): number;
export function caml_pasta_fp_plonk_index_public_inputs(a: number): number;
export function caml_pasta_fp_plonk_index_domain_d1_size(a: number): number;
Expand All @@ -60,7 +60,7 @@ export function caml_pasta_fp_plonk_index_write(a: number, b: number, c: number,
export function caml_pasta_fp_plonk_index_serialize(a: number, b: number): void;
export function __wbg_wasmpastafqplonkindex_free(a: number): void;
export function wasmpastafqruntimetablecfg_new(a: number, b: number, c: number): number;
export function caml_pasta_fq_plonk_index_create(a: number, b: number, c: number, d: number, e: number, f: number, g: number): void;
export function caml_pasta_fq_plonk_index_create(a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number): void;
export function caml_pasta_fq_plonk_index_read(a: number, b: number, c: number, d: number, e: number, f: number): void;
export function caml_pasta_fq_plonk_index_write(a: number, b: number, c: number, d: number, e: number): void;
export function caml_pasta_fq_plonk_index_serialize(a: number, b: number): void;
Expand Down Expand Up @@ -328,48 +328,31 @@ export function wasmfqoracles_new(a: number, b: number, c: number, d: number, e:
export function wasmfqoracles_opening_prechallenges(a: number, b: number): void;
export function wasmfqoracles_set_opening_prechallenges(a: number, b: number, c: number): void;
export function fq_oracles_create(a: number, b: number, c: number, d: number, e: number): void;
export function wasmfppolycomm_new(a: number, b: number, c: number): number;
export function wasmfppolycomm_unshifted(a: number, b: number): void;
export function wasmfppolycomm_set_unshifted(a: number, b: number, c: number): void;
export function __wbg_wasmfppolycomm_free(a: number): void;
export function __wbg_get_wasmfppolycomm_shifted(a: number): number;
export function __wbg_set_wasmfppolycomm_shifted(a: number, b: number): void;
export function wasmfqpolycomm_new(a: number, b: number, c: number): number;
export function wasmfqpolycomm_unshifted(a: number, b: number): void;
export function wasmfqpolycomm_set_unshifted(a: number, b: number, c: number): void;
export function __wbg_get_wasmfqdomain_log_size_of_group(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_max_poly_size(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_public_(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_prev_challenges(a: number): number;
export function wasmfqplonkverificationevals_psm_comm(a: number): number;
export function wasmfqplonkverificationevals_complete_add_comm(a: number): number;
export function wasmfqplonkverificationevals_mul_comm(a: number): number;
export function wasmfqplonkverificationevals_emul_comm(a: number): number;
export function wasmfqplonkverificationevals_endomul_scalar_comm(a: number): number;
export function __wbg_wasmvestagprojective_free(a: number): void;
export function __wbg_wasmfqdomain_free(a: number): void;
export function __wbg_wasmfqshifts_free(a: number): void;
export function __wbg_wasmfqrandomoracles_free(a: number): void;
export function __wbg_get_wasmfqplonkverifierindex_domain(a: number): number;
export function __wbg_get_wasmfqplonkverifierindex_shifts(a: number): number;
export function __wbg_get_wasmfqoracles_o(a: number): number;
export function fq_oracles_dummy(): number;
export function wasmfqplonkverifierindex_srs(a: number): number;
export function __wbg_wasmfqoracles_free(a: number): void;
export function wasmfqplonkverificationevals_set_generic_comm(a: number, b: number): void;
export function __wbg_wasmvecvecfq_free(a: number): void;
export function __wbg_set_wasmfpshifts_s0(a: number, b: number, c: number): void;
export function __wbg_set_wasmfqshifts_s0(a: number, b: number, c: number): void;
export function wasmfqplonkverificationevals_generic_comm(a: number): number;
export function wasmfqplonkverifierindex_srs(a: number): number;
export function __wbg_get_wasmfpshifts_s0(a: number, b: number): void;
export function __wbg_get_wasmfqshifts_s0(a: number, b: number): void;
export function wasmfqplonkverifierindex_set_evals(a: number, b: number): void;
export function __wbg_get_wasmfqpolycomm_shifted(a: number): number;
export function __wbg_set_wasmfqpolycomm_shifted(a: number, b: number): void;
export function __wbg_wasmfqpolycomm_free(a: number): void;
export function wasmfqplonkverificationevals_generic_comm(a: number): number;
export function __wbg_set_wasmfqplonkverifierindex_domain(a: number, b: number): void;
export function __wbg_set_wasmfqplonkverifierindex_shifts(a: number, b: number): void;
export function __wbg_set_wasmfqoracles_o(a: number, b: number): void;
export function fq_oracles_dummy(): number;
export function fq_oracles_deep_copy(a: number): number;
export function wasmfqplonkverificationevals_set_psm_comm(a: number, b: number): void;
export function wasmfqplonkverificationevals_set_complete_add_comm(a: number, b: number): void;
Expand All @@ -381,6 +364,11 @@ export function __wbg_set_wasmfqplonkverifierindex_max_poly_size(a: number, b: n
export function __wbg_set_wasmfqplonkverifierindex_public_(a: number, b: number): void;
export function __wbg_set_wasmfqplonkverifierindex_prev_challenges(a: number, b: number): void;
export function wasmvecvecfq_create(a: number): number;
export function wasmfqplonkverificationevals_psm_comm(a: number): number;
export function wasmfqplonkverificationevals_complete_add_comm(a: number): number;
export function wasmfqplonkverificationevals_mul_comm(a: number): number;
export function wasmfqplonkverificationevals_emul_comm(a: number): number;
export function wasmfqplonkverificationevals_endomul_scalar_comm(a: number): number;
export function __wbg_wasmfqplonkverificationevals_free(a: number): void;
export function caml_bigint_256_of_numeral(a: number, b: number, c: number, d: number, e: number): void;
export function caml_bigint_256_of_decimal_string(a: number, b: number, c: number): void;
Expand Down Expand Up @@ -473,6 +461,16 @@ export function caml_pasta_fq_plonk_proof_verify(a: number, b: number): number;
export function wasmvecvecfqpolycomm_push(a: number, b: number, c: number): void;
export function caml_pasta_fq_plonk_proof_batch_verify(a: number, b: number, c: number, d: number): number;
export function caml_pasta_fq_plonk_proof_dummy(): number;
export function wasmfppolycomm_new(a: number, b: number, c: number): number;
export function wasmfppolycomm_unshifted(a: number, b: number): void;
export function wasmfppolycomm_set_unshifted(a: number, b: number, c: number): void;
export function __wbg_wasmfppolycomm_free(a: number): void;
export function __wbg_get_wasmfppolycomm_shifted(a: number): number;
export function __wbg_set_wasmfppolycomm_shifted(a: number, b: number): void;
export function wasmfqpolycomm_new(a: number, b: number, c: number): number;
export function wasmfqpolycomm_unshifted(a: number, b: number): void;
export function wasmfqpolycomm_set_unshifted(a: number, b: number, c: number): void;
export function wasmfqprovercommitments_t_comm(a: number): number;
export function wasmfqopeningproof_sg(a: number): number;
export function wasmfqproverproof_set_prev_challenges_scalars(a: number, b: number): void;
export function __wbg_wasmfqruntimetable_free(a: number): void;
Expand All @@ -481,16 +479,18 @@ export function __wbg_wasmfqprovercommitments_free(a: number): void;
export function wasmfqopeningproof_set_delta(a: number, b: number): void;
export function wasmfqproverproof_set_commitments(a: number, b: number): void;
export function wasmfqproverproof_set_proof(a: number, b: number): void;
export function wasmfqprovercommitments_z_comm(a: number): number;
export function caml_pasta_fq_plonk_proof_deep_copy(a: number): number;
export function __wbg_wasmvecvecfqpolycomm_free(a: number): void;
export function wasmfqprovercommitments_z_comm(a: number): number;
export function wasmfqopeningproof_set_sg(a: number, b: number): void;
export function __wbg_get_wasmfqpolycomm_shifted(a: number): number;
export function __wbg_set_wasmfqpolycomm_shifted(a: number, b: number): void;
export function __wbg_wasmfqpolycomm_free(a: number): void;
export function __wbg_wasmfqopeningproof_free(a: number): void;
export function wasmfqprovercommitments_set_t_comm(a: number, b: number): void;
export function wasmfqopeningproof_delta(a: number): number;
export function wasmvecvecfqpolycomm_create(a: number): number;
export function wasmfqproverproof_proof(a: number): number;
export function wasmfqprovercommitments_t_comm(a: number): number;
export function __wbg_wasmfqproverproof_free(a: number): void;
export function greet(a: number, b: number): void;
export function console_log(a: number, b: number): void;
Expand Down
Loading

0 comments on commit 9f0cb58

Please sign in to comment.