Trait prio::field::FftFriendlyFieldElement
source · pub trait FftFriendlyFieldElement: FieldElementWithInteger {
// Required methods
fn generator_order() -> Self::Integer;
fn generator() -> Self;
fn root(l: usize) -> Option<Self>;
}
Expand description
Objects with this trait represent an element of GF(p)
, where p
is some prime and the
field’s multiplicative group has a subgroup with an order that is a power of 2, and at least
2^20
.
Required Methods§
sourcefn generator_order() -> Self::Integer
fn generator_order() -> Self::Integer
Returns the size of the multiplicative subgroup generated by
FftFriendlyFieldElement::generator
.
sourcefn generator() -> Self
fn generator() -> Self
Returns the generator of the multiplicative subgroup of size
FftFriendlyFieldElement::generator_order
.
Object Safety§
This trait is not object safe.