Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
e986a9e
submodule: update proof-systems
querolita Sep 30, 2025
bc35972
backend: overwrite polycomm group and vector structs
querolita Oct 1, 2025
003af6b
submodule: update proof-systems
querolita Sep 30, 2025
06de741
submodule: update proof-systems
querolita Sep 30, 2025
20b5029
submodule: update proof-systems
querolita Sep 30, 2025
211fe4a
proxy for native conversion core (wip)
Trivo25 Oct 8, 2025
b26d273
move prover_to_json
Trivo25 Oct 15, 2025
d33c6b9
add new file to jsoo dune
Trivo25 Oct 15, 2025
f91306f
override names tbd
Trivo25 Oct 15, 2025
3841d23
proof systems commit
Trivo25 Oct 15, 2025
5812a80
start impl of prover index
Trivo25 Oct 15, 2025
5157cb6
bump proof systems
Trivo25 Oct 15, 2025
5178750
fix function name
Trivo25 Oct 15, 2025
4771205
add prover index to jsoo
Trivo25 Oct 15, 2025
0b59ce2
use temp copy for all
Trivo25 Oct 15, 2025
23ad909
bump proof systems
Trivo25 Oct 15, 2025
d3069c6
move caml_pasta_fp_plonk_index_create
Trivo25 Oct 15, 2025
5ed37b6
Update proof-systems
Trivo25 Oct 15, 2025
cdbaa27
jsoo: comment out wasm gate vector bindings and override for native
querolita Oct 16, 2025
d4ff2e9
submodule: update proof-systems
querolita Oct 16, 2025
4bda89e
add caml_pasta_fp_plonk_circuit_serialize incl conversions (wip)
Trivo25 Oct 22, 2025
61f5d8b
bump proof-systems for final prover index code
Trivo25 Oct 22, 2025
ea2f711
Update proof-systems
Trivo25 Oct 22, 2025
f8fe4c8
submodule: update proof-systems
querolita Oct 22, 2025
bfe406f
Merge branch 'native/napi-gatevector' into florian/napi-prover-index
querolita Oct 22, 2025
785e057
submodule: update proof-systems
querolita Oct 23, 2025
677dcd2
submodule: update proof-systems
querolita Oct 23, 2025
6d67e95
jsoo: move prover index read/write to native overrides
querolita Oct 28, 2025
e9fd6d9
jsoo: srs bindings
querolita Oct 29, 2025
81e75cf
submodule: update proof-systems
querolita Oct 29, 2025
7fbfb65
jsoo: use vectorToRust instead of fieldsToRustFlat because it is not …
querolita Oct 31, 2025
38ed463
submodule: update proof-systems
querolita Oct 31, 2025
cc3f830
Merge branch 'native/napi' into native/napi-gatevector
querolita Nov 4, 2025
0ea8175
Merge branch 'native/napi-gatevector' into native/napi-srs
querolita Nov 5, 2025
383e94a
Merge branch 'native/napi-gatevector' into florian/napi-prover-index
querolita Nov 5, 2025
9eab577
Merge branch 'florian/napi-prover-index' into native/napi-srs
querolita Nov 5, 2025
862a8a0
submodule: update proof-systems
querolita Nov 5, 2025
c67721a
Merge branch 'native/napi-gatevector' into florian/napi-prover-index
querolita Nov 5, 2025
85a0fe2
Merge pull request #17993 from MinaProtocol/florian/napi-prover-index
querolita Nov 5, 2025
5af9dc8
Merge branch 'native/napi-gatevector' into native/napi-srs
querolita Nov 5, 2025
9eb965c
Merge pull request #18058 from MinaProtocol/native/napi-srs
querolita Nov 5, 2025
62e8b52
submodule: update proof-systems to include gatevector + prover index …
querolita Nov 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 0 additions & 122 deletions src/lib/crypto/kimchi_bindings/js/bindings/gate-vector.js
Original file line number Diff line number Diff line change
@@ -1,122 +0,0 @@
/* eslint-disable no-unused-vars */
/* global plonk_wasm, caml_string_of_jsstring,
free_on_finalize, tsRustConversion, caml_bytes_of_uint8array
*/

// Provides: caml_pasta_fp_plonk_gate_vector_create
// Requires: plonk_wasm, free_on_finalize
var caml_pasta_fp_plonk_gate_vector_create = function () {
return free_on_finalize(plonk_wasm.caml_pasta_fp_plonk_gate_vector_create());
};

// Provides: caml_pasta_fp_plonk_gate_vector_add
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fp_plonk_gate_vector_add = function (v, x) {
return plonk_wasm.caml_pasta_fp_plonk_gate_vector_add(
v,
tsRustConversion.fp.gateToRust(x)
);
};

// Provides: caml_pasta_fp_plonk_gate_vector_get
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fp_plonk_gate_vector_get = function (v, i) {
return tsRustConversion.fp.gateFromRust(
plonk_wasm.caml_pasta_fp_plonk_gate_vector_get(v, i)
);
};

// Provides: caml_pasta_fp_plonk_gate_vector_len
// Requires: plonk_wasm
var caml_pasta_fp_plonk_gate_vector_len = function (v) {
return plonk_wasm.caml_pasta_fp_plonk_gate_vector_len(v);
};

// Provides: caml_pasta_fp_plonk_gate_vector_wrap
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fp_plonk_gate_vector_wrap = function (v, x, y) {
return plonk_wasm.caml_pasta_fp_plonk_gate_vector_wrap(
v,
tsRustConversion.wireToRust(x),
tsRustConversion.wireToRust(y)
);
};

// Provides: caml_pasta_fp_plonk_gate_vector_digest
// Requires: plonk_wasm, caml_bytes_of_uint8array
var caml_pasta_fp_plonk_gate_vector_digest = function (
public_input_size,
gate_vector
) {
var uint8array = plonk_wasm.caml_pasta_fp_plonk_gate_vector_digest(
public_input_size,
gate_vector
);
return caml_bytes_of_uint8array(uint8array);
};

// Provides: caml_pasta_fp_plonk_circuit_serialize
// Requires: plonk_wasm, caml_string_of_jsstring
var caml_pasta_fp_plonk_circuit_serialize = function (
public_input_size,
gate_vector
) {
return caml_string_of_jsstring(
plonk_wasm.caml_pasta_fp_plonk_circuit_serialize(
public_input_size,
gate_vector
)
);
};

// Provides: caml_pasta_fq_plonk_gate_vector_create
// Requires: plonk_wasm, free_on_finalize
var caml_pasta_fq_plonk_gate_vector_create = function () {
return free_on_finalize(plonk_wasm.caml_pasta_fq_plonk_gate_vector_create());
};

// Provides: caml_pasta_fq_plonk_gate_vector_add
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fq_plonk_gate_vector_add = function (v, x) {
return plonk_wasm.caml_pasta_fq_plonk_gate_vector_add(
v,
tsRustConversion.fq.gateToRust(x)
);
};

// Provides: caml_pasta_fq_plonk_gate_vector_get
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fq_plonk_gate_vector_get = function (v, i) {
return tsRustConversion.fq.gateFromRust(
plonk_wasm.caml_pasta_fq_plonk_gate_vector_get(v, i)
);
};

// Provides: caml_pasta_fq_plonk_gate_vector_len
// Requires: plonk_wasm
var caml_pasta_fq_plonk_gate_vector_len = function (v) {
return plonk_wasm.caml_pasta_fq_plonk_gate_vector_len(v);
};

// Provides: caml_pasta_fq_plonk_gate_vector_wrap
// Requires: plonk_wasm, tsRustConversion
var caml_pasta_fq_plonk_gate_vector_wrap = function (v, x, y) {
return plonk_wasm.caml_pasta_fq_plonk_gate_vector_wrap(
v,
tsRustConversion.wireToRust(x),
tsRustConversion.wireToRust(y)
);
};

// Provides: caml_pasta_fq_plonk_gate_vector_digest
// Requires: plonk_wasm, caml_bytes_of_uint8array
var caml_pasta_fq_plonk_gate_vector_digest = function (
public_input_size,
gate_vector
) {
var uint8array = plonk_wasm.caml_pasta_fq_plonk_gate_vector_digest(
public_input_size,
gate_vector
);
return caml_bytes_of_uint8array(uint8array);
};
230 changes: 0 additions & 230 deletions src/lib/crypto/kimchi_bindings/js/bindings/prover-index.js
Original file line number Diff line number Diff line change
@@ -1,230 +0,0 @@
/* global plonk_wasm, tsRustConversion, caml_string_of_jsstring,
free_on_finalize, caml_jsstring_of_string
*/

// Provides: caml_pasta_fq_plonk_circuit_serialize
// Requires: plonk_wasm, caml_string_of_jsstring
var caml_pasta_fq_plonk_circuit_serialize = function (
public_input_size,
gate_vector
) {
return caml_string_of_jsstring(
plonk_wasm.caml_pasta_fq_plonk_circuit_serialize(
public_input_size,
gate_vector
)
);
};

// Provides: caml_pasta_fp_plonk_index_create
// Requires: plonk_wasm, free_on_finalize, tsRustConversion
var caml_pasta_fp_plonk_index_create = function (
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
) {
var wasm_lookup_tables =
tsRustConversion.fp.lookupTablesToRust(caml_lookup_tables);
var wasm_runtime_table_cfgs = tsRustConversion.fp.runtimeTableCfgsToRust(
caml_runtime_table_cfgs
);

var t = plonk_wasm.caml_pasta_fp_plonk_index_create(
gates,
public_inputs,
wasm_lookup_tables,
wasm_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
);
return free_on_finalize(t);
};

// Provides: caml_pasta_fp_plonk_index_create_bytecode
// Requires: caml_pasta_fp_plonk_index_create
var caml_pasta_fp_plonk_index_create_bytecode = function (
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
) {
return caml_pasta_fp_plonk_index_create(
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
);
};

// Provides: caml_pasta_fp_plonk_index_max_degree
// Requires: plonk_wasm
var caml_pasta_fp_plonk_index_max_degree =
plonk_wasm.caml_pasta_fp_plonk_index_max_degree;

// Provides: caml_pasta_fp_plonk_index_public_inputs
// Requires: plonk_wasm
var caml_pasta_fp_plonk_index_public_inputs =
plonk_wasm.caml_pasta_fp_plonk_index_public_inputs;

// Provides: caml_pasta_fp_plonk_index_domain_d1_size
// Requires: plonk_wasm
var caml_pasta_fp_plonk_index_domain_d1_size =
plonk_wasm.caml_pasta_fp_plonk_index_domain_d1_size;

// Provides: caml_pasta_fp_plonk_index_domain_d4_size
// Requires: plonk_wasm
var caml_pasta_fp_plonk_index_domain_d4_size =
plonk_wasm.caml_pasta_fp_plonk_index_domain_d4_size;

// Provides: caml_pasta_fp_plonk_index_domain_d8_size
// Requires: plonk_wasm
var caml_pasta_fp_plonk_index_domain_d8_size =
plonk_wasm.caml_pasta_fp_plonk_index_domain_d8_size;

// Provides: caml_pasta_fp_plonk_index_read
// Requires: plonk_wasm, caml_jsstring_of_string
var caml_pasta_fp_plonk_index_read = function (offset, urs, path) {
if (offset === 0) {
offset = undefined;
} else {
offset = offset[1];
}
return plonk_wasm.caml_pasta_fp_plonk_index_read(
offset,
urs,
caml_jsstring_of_string(path)
);
};

// Provides: caml_pasta_fp_plonk_index_write
// Requires: plonk_wasm, caml_jsstring_of_string
var caml_pasta_fp_plonk_index_write = function (append, t, path) {
if (append === 0) {
append = undefined;
} else {
append = append[1];
}
return plonk_wasm.caml_pasta_fp_plonk_index_write(
append,
t,
caml_jsstring_of_string(path)
);
};

// Provides: caml_pasta_fq_plonk_index_create
// Requires: plonk_wasm, free_on_finalize, tsRustConversion
var caml_pasta_fq_plonk_index_create = function (
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
) {
var wasm_lookup_tables =
tsRustConversion.fq.lookupTablesToRust(caml_lookup_tables);
var wasm_runtime_table_cfgs = tsRustConversion.fq.runtimeTableCfgsToRust(
caml_runtime_table_cfgs
);

return free_on_finalize(
plonk_wasm.caml_pasta_fq_plonk_index_create(
gates,
public_inputs,
wasm_lookup_tables,
wasm_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
)
);
};

// Provides: caml_pasta_fq_plonk_index_create_bytecode
// Requires: caml_pasta_fq_plonk_index_create
var caml_pasta_fq_plonk_index_create_bytecode = function (
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
) {
return caml_pasta_fq_plonk_index_create(
gates,
public_inputs,
caml_lookup_tables,
caml_runtime_table_cfgs,
prev_challenges,
urs,
lazy_mode
);
};

// Provides: caml_pasta_fq_plonk_index_max_degree
// Requires: plonk_wasm
var caml_pasta_fq_plonk_index_max_degree =
plonk_wasm.caml_pasta_fq_plonk_index_max_degree;

// Provides: caml_pasta_fq_plonk_index_public_inputs
// Requires: plonk_wasm
var caml_pasta_fq_plonk_index_public_inputs =
plonk_wasm.caml_pasta_fq_plonk_index_public_inputs;

// Provides: caml_pasta_fq_plonk_index_domain_d1_size
// Requires: plonk_wasm
var caml_pasta_fq_plonk_index_domain_d1_size =
plonk_wasm.caml_pasta_fq_plonk_index_domain_d1_size;

// Provides: caml_pasta_fq_plonk_index_domain_d4_size
// Requires: plonk_wasm
var caml_pasta_fq_plonk_index_domain_d4_size =
plonk_wasm.caml_pasta_fq_plonk_index_domain_d4_size;

// Provides: caml_pasta_fq_plonk_index_domain_d8_size
// Requires: plonk_wasm
var caml_pasta_fq_plonk_index_domain_d8_size =
plonk_wasm.caml_pasta_fq_plonk_index_domain_d8_size;

// Provides: caml_pasta_fq_plonk_index_read
// Requires: plonk_wasm, caml_jsstring_of_string
var caml_pasta_fq_plonk_index_read = function (offset, urs, path) {
if (offset === 0) {
offset = undefined;
} else {
offset = offset[1];
}
return plonk_wasm.caml_pasta_fq_plonk_index_read(
offset,
urs,
caml_jsstring_of_string(path)
);
};

// Provides: caml_pasta_fq_plonk_index_write
// Requires: plonk_wasm, caml_jsstring_of_string
var caml_pasta_fq_plonk_index_write = function (append, t, path) {
if (append === 0) {
append = undefined;
} else {
append = append[1];
}
return plonk_wasm.caml_pasta_fq_plonk_index_write(
append,
t,
caml_jsstring_of_string(path)
);
};
Loading