Skip to content

Commit

Permalink
fix hashchain example
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathsetty committed Jan 16, 2025
1 parent 40aedc6 commit eaada86
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 5 additions & 4 deletions examples/hashchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ use ff::Field;
use flate2::{write::ZlibEncoder, Compression};
use generic_array::typenum::U24;
use nova_snark::{
frontend::{num::AllocatedNum, ConstraintSystem, SynthesisError},
provider::{
poseidon::{
frontend::{
gadgets::poseidon::{
Elt, IOPattern, Simplex, Sponge, SpongeAPI, SpongeCircuit, SpongeOp, SpongeTrait, Strength,
},
Bn256EngineKZG, GrumpkinEngine,
num::AllocatedNum,
ConstraintSystem, SynthesisError,
},
provider::{Bn256EngineKZG, GrumpkinEngine},
traits::{
circuit::{StepCircuit, TrivialCircuit},
snark::RelaxedR1CSSNARKTrait,
Expand Down
4 changes: 3 additions & 1 deletion src/frontend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
//!
//! Most of the code is ported from /~https://github.com/argumentcomputer/bellpepper.
pub mod gadgets;

mod constraint_system;
pub(crate) mod gadgets;
mod lc;

pub use constraint_system::{Circuit, ConstraintSystem, Namespace, SynthesisError};
pub use gadgets::{
boolean::{AllocatedBit, Boolean},
num,
poseidon::{Elt, PoseidonConstants, SpongeCircuit},
sha256::sha256,
Assignment,
};
Expand Down

0 comments on commit eaada86

Please sign in to comment.