Skip to content

Commit

Permalink
Replace PrimeField with FftField.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnevadoc committed May 6, 2022
1 parent 363daec commit eadf41d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plonk-core/src/proof_system/pi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//! inputs in evaluation or coefficient form.
use alloc::collections::BTreeMap;
use ark_ff::{PrimeField, ToConstraintField};
use ark_ff::{FftField, ToConstraintField};
use ark_poly::{
polynomial::UVPolynomial, univariate::DensePolynomial, EvaluationDomain,
GeneralEvaluationDomain,
Expand All @@ -29,7 +29,7 @@ use crate::prelude::Error;
)]
pub struct PI<F>
where
F: PrimeField,
F: FftField,
{
// padded size of the circuit
n: usize,
Expand All @@ -39,7 +39,7 @@ where

impl<F> PI<F>
where
F: PrimeField,
F: FftField,
{
/// Creates a new struct for [`PI`].
pub fn new(n: usize) -> Self {
Expand Down Expand Up @@ -124,7 +124,7 @@ where

impl<F> From<&PI<F>> for DensePolynomial<F>
where
F: PrimeField,
F: FftField,
{
fn from(pi: &PI<F>) -> Self {
let domain = GeneralEvaluationDomain::<F>::new(pi.n).unwrap();
Expand Down

0 comments on commit eadf41d

Please sign in to comment.