Skip to content

Commit

Permalink
fix table16 for ff 0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
noel2004 committed Dec 5, 2023
1 parent 8deec99 commit 2552a05
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion halo2_gadgets/src/sha256/table16.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use halo2_proofs::arithmetic::FieldExt as Field;
use halo2_proofs::halo2curves::group::ff::PrimeField as Field;
use halo2_proofs::{
circuit::{AssignedCell, Chip, Layouter, Region, Value},
plonk::{Advice, Any, Assigned, Column, ConstraintSystem, Error},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::super::{util::*, Gate};
use ff::PrimeField;
use crate::utilities::range_check;
use ff::PrimeField;
use halo2_proofs::plonk::{Constraint, Constraints, Expression};
use std::marker::PhantomData;

Expand Down
6 changes: 3 additions & 3 deletions halo2_gadgets/src/sha256/table16/spread_table.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::{util::*, AssignedBits, Field};
use super::{util::*, AssignedBits};
use ff::PrimeField;
use halo2_proofs::{
arithmetic::Field,
Expand Down Expand Up @@ -65,13 +65,13 @@ impl<const DENSE: usize, const SPREAD: usize> SpreadWord<DENSE, SPREAD> {

/// A variable stored in advice columns corresponding to a row of [`SpreadTableConfig`].
#[derive(Clone, Debug)]
pub(super) struct SpreadVar<F: Field, const DENSE: usize, const SPREAD: usize> {
pub(super) struct SpreadVar<F: PrimeField, const DENSE: usize, const SPREAD: usize> {
pub tag: Value<u8>,
pub dense: AssignedBits<F, DENSE>,
pub spread: AssignedBits<F, SPREAD>,
}

impl<F: Field, const DENSE: usize, const SPREAD: usize> SpreadVar<F, DENSE, SPREAD> {
impl<F: PrimeField, const DENSE: usize, const SPREAD: usize> SpreadVar<F, DENSE, SPREAD> {
pub(super) fn with_lookup(
region: &mut Region<'_, F>,
cols: &SpreadInputs,
Expand Down

0 comments on commit 2552a05

Please sign in to comment.