Trait SqrtField

Source
pub trait SqrtField: Field {
    // Required methods
    fn legendre(&self) -> LegendreSymbol;
    fn sqrt(&self) -> Option<Self>;
}
Expand description

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

Required Methods§

Source

fn legendre(&self) -> LegendreSymbol

Returns the Legendre symbol of the field element.

Source

fn sqrt(&self) -> Option<Self>

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SqrtField for pairing_ce::bls12_381::fq2::Fq2

Source§

impl SqrtField for pairing_ce::bls12_381::fq::Fq

Source§

impl SqrtField for pairing_ce::bls12_381::fr::Fr

Source§

impl SqrtField for pairing_ce::bn256::fq2::Fq2

Source§

impl SqrtField for pairing_ce::bn256::fq::Fq

Source§

impl SqrtField for pairing_ce::bn256::fr::Fr