Trait blstrs::SqrtField[][src]

pub trait SqrtField: Field {
    pub fn legendre(&self) -> LegendreSymbol;
pub fn sqrt(&self) -> Option<Self>; }

This trait represents an element of a field that has a square root operation described for it.

Required methods

pub fn legendre(&self) -> LegendreSymbol[src]

Returns the Legendre symbol of the field element.

pub fn sqrt(&self) -> Option<Self>[src]

Returns the square root of the field element, if it is quadratic residue.

Loading content...

Implementors

impl SqrtField for Fp2[src]

impl SqrtField for Fp[src]

impl SqrtField for Scalar[src]

Loading content...