Fix test imports

This commit is contained in:
Eduard S 2024-01-24 16:07:33 +00:00
parent 552c567f54
commit 9b73ca4f0e
11 changed files with 12 additions and 12 deletions

View File

@ -188,7 +188,7 @@ impl<F: Field> Mul<F> for Value<F> {
/// plonk::{Advice, Any, Circuit, Column, ConstraintSystem, Error, Selector},
/// poly::Rotation,
/// };
/// use ff::PrimeField;
/// use halo2_middleware::ff::PrimeField;
/// use halo2curves::pasta::Fp;
/// const K: u32 = 5;
///

View File

@ -5,7 +5,7 @@ use std::collections::HashSet;
use std::{iter, num::ParseIntError, str::FromStr};
use crate::plonk::Circuit;
use ff::{Field, FromUniformBytes};
use halo2_middleware::ff::{Field, FromUniformBytes};
use serde::Deserialize;
use serde_derive::Serialize;

View File

@ -28,7 +28,7 @@ struct Gate {
/// # Examples
///
/// ```
/// use ff::Field;
/// use halo2_middleware::ff::Field;
/// use halo2_proofs::{
/// circuit::{Layouter, SimpleFloorPlanner},
/// dev::CircuitGates,

View File

@ -1,4 +1,4 @@
use ff::Field;
use halo2_middleware::ff::Field;
use tabbycat::{AttrList, Edge, GraphBuilder, GraphType, Identity, StmtList};
use crate::{

View File

@ -1,4 +1,4 @@
use ff::Field;
use halo2_middleware::ff::Field;
use plotters::{
coord::Shift,
prelude::{DrawingArea, DrawingAreaErrorKind, DrawingBackend},

View File

@ -27,7 +27,7 @@ use halo2_middleware::circuit::{Advice, Any, Challenge, Column, Fixed, Instance}
/// # Examples
///
/// ```
/// use ff::Field;
/// use halo2_middleware::ff::Field;
/// use halo2_proofs::{
/// circuit::{floor_planner, Layouter, Value},
/// dev::TracingFloorPlanner,

View File

@ -118,7 +118,7 @@ impl SealedPhase for super::ThirdPhase {
/// circuit::{Chip, Layouter, Value},
/// plonk::{Advice, Column, Error, Selector},
/// };
/// use ff::Field;
/// use halo2_middleware::ff::Field;
/// # use halo2_proofs::plonk::Fixed;
///
/// struct Config {

View File

@ -234,8 +234,8 @@ mod test {
use crate::poly::ipa::commitment::{create_proof, verify_proof, ParamsIPA};
use crate::poly::ipa::msm::MSMIPA;
use ff::Field;
use group::Curve;
use halo2_middleware::ff::Field;
#[test]
fn test_commit_lagrange_epaffine() {
@ -291,7 +291,7 @@ mod test {
fn test_opening_proof() {
const K: u32 = 6;
use ff::Field;
use halo2_middleware::ff::Field;
use rand_core::OsRng;
use super::super::commitment::{Blind, Params};

View File

@ -365,7 +365,7 @@ mod test {
use crate::poly::commitment::ParamsProver;
use crate::poly::commitment::{Blind, Params};
use crate::poly::kzg::commitment::ParamsKZG;
use ff::Field;
use halo2_middleware::ff::Field;
#[test]
fn test_commit_lagrange() {

View File

@ -142,7 +142,7 @@ where
#[cfg(test)]
mod proptests {
use super::{construct_intermediate_sets, Commitment, IntermediateSets};
use ff::FromUniformBytes;
use halo2_middleware::ff::FromUniformBytes;
use halo2curves::pasta::Fp;
use proptest::{collection::vec, prelude::*, sample::select};
use std::convert::TryFrom;

View File

@ -14,8 +14,8 @@ mod test {
Blake2bRead, Blake2bWrite, Challenge255, EncodedChallenge, Keccak256Read, Keccak256Write,
TranscriptReadBuffer, TranscriptWriterBuffer,
};
use ff::WithSmallOrderMulGroup;
use group::Curve;
use halo2_middleware::ff::WithSmallOrderMulGroup;
use rand_core::OsRng;
#[test]