Skip to content

Commit

Permalink
rename to sha flex
Browse files Browse the repository at this point in the history
  • Loading branch information
ec2 committed Sep 13, 2023
1 parent 52641b6 commit eb95273
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lightclient-circuits/src/gadget/crypto/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
util::{ThreadBuilderBase, ThreadBuilderConfigBase},
};

use super::sha256::{assign_threads_sha, SpreadConfig, FIRST_PHASE};
use super::sha256_flex::{assign_threads_sha, SpreadConfig, FIRST_PHASE};

#[derive(Debug, Clone)]
pub struct SHAConfig<F: Field, CustomConfig: ThreadBuilderConfigBase<F>> {
Expand Down
2 changes: 1 addition & 1 deletion lightclient-circuits/src/gadget/crypto/hash2curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ mod test {
use std::vec;
use std::{cell::RefCell, marker::PhantomData};

use crate::gadget::crypto::sha256::{SpreadChip, SpreadConfig};
use crate::gadget::crypto::sha256_flex::{SpreadChip, SpreadConfig};
use crate::gadget::crypto::ShaCircuitBuilder;
use crate::gadget::crypto::{Sha256Chip, ShaThreadBuilder};
use crate::util::{print_fq2_dev, Challenges, IntoWitness};
Expand Down
4 changes: 2 additions & 2 deletions lightclient-circuits/src/gadget/crypto/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod builder;
mod ecc;
mod hash2curve;
mod sha256;
mod sha256_flex;
mod sha256_wide;
mod util;

Expand All @@ -17,7 +17,7 @@ use halo2_ecc::{
use halo2_proofs::plonk::Error;
pub use hash2curve::{HashToCurveCache, HashToCurveChip};
use lazy_static::lazy_static;
pub use sha256::{Sha256Chip, ShaContexts, ShaThreadBuilder};
pub use sha256_flex::{Sha256Chip, ShaContexts, ShaThreadBuilder};
pub use sha256_wide::{Sha256ChipWide, ShaBitThreadBuilder};

pub use ecc::calculate_ysquared;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use sha2::digest::generic_array::GenericArray;
use std::collections::HashMap;
use std::{cell::RefCell, char::MAX};

use crate::gadget::crypto::sha256::compression::{sha256_compression, INIT_STATE};
use crate::gadget::crypto::sha256_flex::compression::{sha256_compression, INIT_STATE};
use crate::util::{AssignedValueCell, ThreadBuilderBase};
use crate::witness::HashInput;
use halo2_base::safe_types::RangeChip;
Expand Down
2 changes: 1 addition & 1 deletion lightclient-circuits/src/sync_step_circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@ mod tests {

#[test]
fn test_sync_evm_verify() {
const K: usize = 21;
const K: usize = 22;

let (params, pk, break_points) = SyncStepCircuit::<Test, Fr>::setup(K, None);

Expand Down

0 comments on commit eb95273

Please sign in to comment.