Skip to content

Commit 8e63d6c

Browse files
authored
Merge pull request #3341 from o1-labs/native/napi-gatevector
2 parents 9e739fe + 4f80d3c commit 8e63d6c

23 files changed

+2418
-301
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plonk-napi/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ ark-serialize.workspace = true
2323
arkworks.workspace = true
2424

2525
# proof-systems
26-
kimchi.workspace = true
2726
mina-curves = { path = "../curves" }
2827
mina-poseidon = { path = "../poseidon" }
2928
o1-utils = { path = "../utils" }
3029
poly-commitment = { path = "../poly-commitment" }
30+
plonk_wasm.workspace = true
3131

3232
getrandom.workspace = true
33+
kimchi.workspace = true
3334
libc.workspace = true
3435
num-bigint.workspace = true
3536
once_cell.workspace = true

plonk-napi/src/circuit.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
use crate::{build_info::report_native_call, pasta_fp_plonk_index::NapiPastaFpPlonkIndex};
12
use ark_ff::PrimeField;
23
use kimchi::circuits::{constraints::ConstraintSystem, gate::CircuitGate};
34
use mina_curves::pasta::Fp;
45
use napi::bindgen_prelude::*;
56
use napi_derive::napi;
67
use serde::Serialize;
78

8-
use crate::{build_info::report_native_call, types::WasmPastaFpPlonkIndex};
9-
109
#[derive(Serialize)]
1110
struct Circuit<F>
1211
where
@@ -30,7 +29,7 @@ where
3029
}
3130

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

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

0 commit comments

Comments
 (0)