Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
b7c84ab
napi: wrapper for wires
querolita Oct 2, 2025
8318af0
deps: use kimchi in plonk-napi
querolita Oct 2, 2025
89e829f
napi: wrapper for feature flags
querolita Oct 2, 2025
83ee190
napi: wrapper for lookups
querolita Oct 2, 2025
d4e8169
napi: ffi for gate vector
querolita Oct 2, 2025
02e15b8
minor: add new line at eof
querolita Oct 3, 2025
357d735
napi: inline functions for GateVector struct
querolita Oct 15, 2025
a9e249b
napi: export contents of gate_vector module
querolita Oct 15, 2025
923133e
napi: replace self occurances to vector in gate_vector
querolita Oct 15, 2025
31db09d
napi: fix compilation of gate_vector
querolita Oct 15, 2025
2bb4a8e
napi: improve naming in gate_vector
querolita Oct 15, 2025
4824308
napi: comment out poseidon, and include comments for gatevector
querolita Oct 16, 2025
bc98785
remove _plonk_index_serialize
Trivo25 Oct 15, 2025
25be75a
impl. prover index degrees for fq
Trivo25 Oct 15, 2025
e728d24
impl. prover index for fp
Trivo25 Oct 15, 2025
0159d40
get rid of told types file
Trivo25 Oct 15, 2025
c74e69a
explose and rename modules
Trivo25 Oct 15, 2025
4b887e9
fix proper types
Trivo25 Oct 15, 2025
5151b2a
WasmPastaFqPlonkIndex seri impl (wip)
Trivo25 Oct 15, 2025
906d083
remove debug logs
Trivo25 Oct 15, 2025
81e860b
testtest
Trivo25 Oct 15, 2025
a3b92df
impl some types
Trivo25 Oct 15, 2025
e88ac1b
finish up prover index
Trivo25 Oct 22, 2025
5604cfb
impl caml_pasta_fp_plonk_index_read
Trivo25 Oct 22, 2025
75f1339
get rid of gate vectors for now
Trivo25 Oct 22, 2025
3ac952e
make plonk-napi compile by reusing gate_vector types
Trivo25 Oct 22, 2025
0907e20
merge
Trivo25 Oct 22, 2025
d7f7afc
napi: get rid of gate vector to use external from plonk-wasm
querolita Oct 23, 2025
0925ce3
napi: ffi and types for srs
querolita Oct 7, 2025
b90542c
napi: use macro params closer to plonk-wasms names
querolita Oct 20, 2025
adaf261
napi: pass to srs impls
querolita Oct 27, 2025
db8bdd1
napi: implement FromNapiValue for polycomm
querolita Oct 27, 2025
5c19d07
napi: finish compilation of srs
querolita Oct 27, 2025
4e998c5
napi: replicate format in plonk-wasm and export
querolita Oct 28, 2025
cdf3022
napi: use napi::bindgen_prelude::Result instead of NapiResult for typ…
querolita Oct 28, 2025
a04edae
napi: fix naming of srs functions inside macro
querolita Oct 28, 2025
d205c85
napi: reintroduce gate vector
querolita Oct 28, 2025
1b93772
napi: remove prints for gate vector
querolita Oct 29, 2025
570a29a
napi: add prints for srs
querolita Oct 29, 2025
e7aff41
napi: refactor gate vector
querolita Oct 31, 2025
bf6ae6f
napi: serde napi srs type
querolita Oct 31, 2025
1cfe540
Merge branch 'native/napi-polycomm' into native/napi-gatevector
querolita Nov 4, 2025
bb874bc
napi: fix merge conflicts and reuse lookups types
querolita Nov 4, 2025
fb3f233
napi: use existing polycomm in verifier index
querolita Nov 4, 2025
c69393e
Merge branch 'native/napi-gatevector' into native/napi-srs
querolita Nov 5, 2025
37e96a3
napi: external by reference
querolita Nov 5, 2025
9701ac4
Merge branch 'native/napi-gatevector' into florian/napi-prover-index
querolita Nov 5, 2025
0e2a66e
Merge branch 'florian/napi-prover-index' into native/napi-srs
querolita Nov 5, 2025
9e9154c
napi: delete js_name for one-words
querolita Nov 5, 2025
e7a3178
napi: annotate js_name for srs
querolita Nov 5, 2025
cf6cf90
Merge pull request #3342 from o1-labs/native/napi-srs
querolita Nov 5, 2025
145cb88
napi: annotate js_name for prover index
querolita Nov 5, 2025
ac02943
Merge pull request #3351 from o1-labs/florian/napi-prover-index
querolita Nov 5, 2025
23dc5b7
Merge branch 'native/napi' into native/napi-gatevector
querolita Nov 5, 2025
9929eb5
napi: annotate js_name for verifier index
querolita Nov 5, 2025
b092588
napi: annotate js_name for feature flags
querolita Nov 5, 2025
214a69c
napi: annotate js_name for lookups and fix naming of structs
querolita Nov 5, 2025
4f80d3c
napi: annotate js_name for gate vector
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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion plonk-napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ ark-serialize.workspace = true
arkworks.workspace = true

# proof-systems
kimchi.workspace = true
mina-curves = { path = "../curves" }
mina-poseidon = { path = "../poseidon" }
o1-utils = { path = "../utils" }
poly-commitment = { path = "../poly-commitment" }
plonk_wasm.workspace = true

getrandom.workspace = true
kimchi.workspace = true
libc.workspace = true
num-bigint.workspace = true
once_cell.workspace = true
Expand Down
5 changes: 2 additions & 3 deletions plonk-napi/src/circuit.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use crate::{build_info::report_native_call, pasta_fp_plonk_index::NapiPastaFpPlonkIndex};
use ark_ff::PrimeField;
use kimchi::circuits::{constraints::ConstraintSystem, gate::CircuitGate};
use mina_curves::pasta::Fp;
use napi::bindgen_prelude::*;
use napi_derive::napi;
use serde::Serialize;

use crate::{build_info::report_native_call, types::WasmPastaFpPlonkIndex};

#[derive(Serialize)]
struct Circuit<F>
where
Expand All @@ -30,7 +29,7 @@ where
}

#[napi(js_name = "prover_to_json")]
pub fn prover_to_json(prover_index: &External<WasmPastaFpPlonkIndex>) -> String {
pub fn prover_to_json(prover_index: &External<NapiPastaFpPlonkIndex>) -> String {
report_native_call();

let circuit: Circuit<Fp> = prover_index.0.cs.as_ref().into();
Expand Down
Loading
Loading