Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
winderica committed Oct 14, 2024
1 parent f34ed26 commit a8f3449
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 20 deletions.
13 changes: 8 additions & 5 deletions examples/circom_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ use std::time::Instant;

use folding_schemes::{
commitment::{kzg::KZG, pedersen::Pedersen},
folding::nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
folding::{
nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
},
traits::CommittedInstanceOps,
},
frontend::{circom::CircomFCircuit, FCircuit},
transcript::poseidon::poseidon_canonical_config,
Expand Down Expand Up @@ -117,8 +120,8 @@ fn main() {
nova.i,
nova.z_0.clone(),
nova.z_i.clone(),
&(),
&(),
&nova.U_i.get_commitments(),
&nova.u_i.get_commitments(),
&proof,
)
.unwrap();
Expand Down
13 changes: 8 additions & 5 deletions examples/full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ use std::time::Instant;

use folding_schemes::{
commitment::{kzg::KZG, pedersen::Pedersen},
folding::nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
folding::{
nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
},
traits::CommittedInstanceOps,
},
frontend::FCircuit,
transcript::poseidon::poseidon_canonical_config,
Expand Down Expand Up @@ -124,8 +127,8 @@ fn main() {
nova.i,
nova.z_0.clone(),
nova.z_i.clone(),
&(),
&(),
&nova.U_i.get_commitments(),
&nova.u_i.get_commitments(),
&proof,
)
.unwrap();
Expand Down
13 changes: 8 additions & 5 deletions examples/noir_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ use ark_grumpkin::{constraints::GVar as GVar2, Projective as G2};

use folding_schemes::{
commitment::{kzg::KZG, pedersen::Pedersen},
folding::nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
folding::{
nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
},
traits::CommittedInstanceOps,
},
frontend::{
noir::{load_noir_circuit, NoirFCircuit},
Expand Down Expand Up @@ -105,8 +108,8 @@ fn main() {
nova.i,
nova.z_0.clone(),
nova.z_i.clone(),
&(),
&(),
&nova.U_i.get_commitments(),
&nova.u_i.get_commitments(),
&proof,
)
.unwrap();
Expand Down
13 changes: 8 additions & 5 deletions examples/noname_full_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ use ark_grumpkin::{constraints::GVar as GVar2, Projective as G2};

use folding_schemes::{
commitment::{kzg::KZG, pedersen::Pedersen},
folding::nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
folding::{
nova::{
decider_eth::{prepare_calldata, Decider as DeciderEth},
Nova, PreprocessorParam,
},
traits::CommittedInstanceOps,
},
frontend::{noname::NonameFCircuit, FCircuit},
transcript::poseidon::poseidon_canonical_config,
Expand Down Expand Up @@ -117,8 +120,8 @@ fn main() {
nova.i,
nova.z_0.clone(),
nova.z_i.clone(),
&(),
&(),
&nova.U_i.get_commitments(),
&nova.u_i.get_commitments(),
&proof,
)
.unwrap();
Expand Down

0 comments on commit a8f3449

Please sign in to comment.