Trait pairing_ce::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.

Object Safety§

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