Trait ark_ff::fields::SquareRootField[][src]

pub trait SquareRootField: Field {
    fn legendre(&self) -> LegendreSymbol;
#[must_use] fn sqrt(&self) -> Option<Self>;
fn sqrt_in_place(&mut self) -> Option<&mut Self>; }
Expand description

The interface for a field that supports an efficient square-root operation.

Required methods

Returns a LegendreSymbol, which indicates whether this field element is 1 : a quadratic residue 0 : equal to 0 -1 : a quadratic non-residue

Returns the square root of self, if it exists.

Sets self to be the square root of self, if it exists.

Implementors

Returns the Legendre symbol.

Returns the square root of self, if it exists.

Sets self to be the square root of self, if it exists.