SquareRoot

Trait SquareRoot 

Source
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.

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<const LIMBS: usize> SquareRoot for Uint<LIMBS>