mirror of https://github.com/zcash/halo2.git
Fix test imports
This commit is contained in:
parent
552c567f54
commit
9b73ca4f0e
|
@ -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;
|
||||
///
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ struct Gate {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// use ff::Field;
|
||||
/// use halo2_middleware::ff::Field;
|
||||
/// use halo2_proofs::{
|
||||
/// circuit::{Layouter, SimpleFloorPlanner},
|
||||
/// dev::CircuitGates,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use ff::Field;
|
||||
use halo2_middleware::ff::Field;
|
||||
use tabbycat::{AttrList, Edge, GraphBuilder, GraphType, Identity, StmtList};
|
||||
|
||||
use crate::{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use ff::Field;
|
||||
use halo2_middleware::ff::Field;
|
||||
use plotters::{
|
||||
coord::Shift,
|
||||
prelude::{DrawingArea, DrawingAreaErrorKind, DrawingBackend},
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue