pub trait SquareRoot {
    // Required methods
    fn sqrt(&self) -> Self;
    fn sqrt_vartime(&self) -> Self;
}
Expand description

Support for calucaling square roots.

Required Methods§

source

fn sqrt(&self) -> Self

Computes floor(sqrt(self)).

source

fn sqrt_vartime(&self) -> Self

Computes floor(sqrt(self)), variable time in self.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SquareRoot for BoxedUint

Available on crate feature alloc only.
source§

impl<const LIMBS: usize> SquareRoot for Uint<LIMBS>