mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 23:03:08 +00:00
Fix DTH_ROOT for degree 1 extension
This commit is contained in:
parent
3fc7996d79
commit
3007b5e779
@ -22,8 +22,8 @@ pub trait OEF<const D: usize>: FieldExtension<D> {
|
||||
}
|
||||
|
||||
impl<F: Field> OEF<1> for F {
|
||||
const W: Self::BaseField = F::ZERO;
|
||||
const DTH_ROOT: Self::BaseField = F::ZERO;
|
||||
const W: Self::BaseField = F::ONE;
|
||||
const DTH_ROOT: Self::BaseField = F::ONE;
|
||||
}
|
||||
|
||||
pub trait Frobenius<const D: usize>: OEF<D> {
|
||||
@ -80,8 +80,8 @@ pub trait Extendable<const D: usize>: Field + Sized {
|
||||
|
||||
impl<F: Field + Frobenius<1> + FieldExtension<1, BaseField = F>> Extendable<1> for F {
|
||||
type Extension = F;
|
||||
const W: Self = F::ZERO;
|
||||
const DTH_ROOT: Self = F::ZERO;
|
||||
const W: Self = F::ONE;
|
||||
const DTH_ROOT: Self = F::ONE;
|
||||
const EXT_MULTIPLICATIVE_GROUP_GENERATOR: [Self; 1] = [F::MULTIPLICATIVE_GROUP_GENERATOR];
|
||||
const EXT_POWER_OF_TWO_GENERATOR: [Self; 1] = [F::POWER_OF_TWO_GENERATOR];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user