Skip to content

Commit

Permalink
finished mpt circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenfeizhang committed Oct 27, 2023
1 parent 5c1420c commit fc6dfe8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gadgets/poseidon.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
use crate::constraint_builder::{AdviceColumn, FixedColumn};
use halo2_proofs::plonk::{Advice, Column, Fixed};
#[cfg(test)]
use halo2_proofs::{
arithmetic::FieldExt, circuit::Region, halo2curves::bn256::Fr, plonk::ConstraintSystem,
};
use halo2_proofs::{circuit::Region, halo2curves::bn256::Fr, plonk::ConstraintSystem};
#[cfg(test)]
use hash_circuit::hash::Hashable;

Expand Down Expand Up @@ -33,7 +31,9 @@ pub struct PoseidonTable {

#[cfg(test)]
impl PoseidonTable {
pub fn configure<F: FieldExt>(cs: &mut ConstraintSystem<F>) -> Self {
pub fn configure<F: halo2_proofs::halo2curves::ff::FromUniformBytes<64> + Ord>(
cs: &mut ConstraintSystem<F>,
) -> Self {
let [hash, left, right, control, domain_spec, head_mark] =
[0; 6].map(|_| AdviceColumn(cs.advice_column()));
Self {
Expand Down

0 comments on commit fc6dfe8

Please sign in to comment.