Skip to content

Commit

Permalink
refactor sha256 chip, uncomment hash2curve
Browse files Browse the repository at this point in the history
  • Loading branch information
nulltea committed Sep 7, 2023
1 parent c794a91 commit 3635b11
Show file tree
Hide file tree
Showing 8 changed files with 895 additions and 966 deletions.
6 changes: 3 additions & 3 deletions lightclient-circuits/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use halo2_proofs::{
};

use crate::{
gadget::crypto::{Sha256Chip, SpreadConfig, SpreadThreadBuilder},
gadget::crypto::{Sha256Chip, SpreadConfig, ShaThreadBuilder},
sha256_circuit::Sha256CircuitConfig,
};

Expand Down Expand Up @@ -46,14 +46,14 @@ impl<F: Field> SHAConfig<F> {
}

pub struct ShaCircuitBuilder<F: Field> {
pub builder: RefCell<SpreadThreadBuilder<F>>,
pub builder: RefCell<ShaThreadBuilder<F>>,
pub break_points: RefCell<ThreadBreakPoints>,
pub range: RangeChip<F>,
}

impl<F: Field> ShaCircuitBuilder<F> {
pub fn new(
builder: SpreadThreadBuilder<F>,
builder: ShaThreadBuilder<F>,
range: RangeChip<F>,
break_points: Option<ThreadBreakPoints>,
// synthesize_phase1: FnPhase1,
Expand Down
Loading

0 comments on commit 3635b11

Please sign in to comment.