[−][src]Struct threshold_crypto::Fr
Trait Implementations
impl From<Fr> for FrRepr
[src]
impl PartialEq<Fr> for Fr
[src]
impl Display for Fr
[src]
impl Copy for Fr
[src]
impl PrimeField for Fr
[src]
type Repr = FrRepr
The prime field can be converted back and forth into this biginteger representation. Read more
fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]
fn into_repr(&self) -> FrRepr
[src]
fn char() -> FrRepr
[src]
const NUM_BITS: u32
[src]
const CAPACITY: u32
[src]
fn multiplicative_generator() -> Fr
[src]
const S: u32
[src]
fn root_of_unity() -> Fr
[src]
fn from_str(s: &str) -> Option<Self>
[src]
Interpret a string of numbers as a (congruent) prime field element. Does not accept unnecessary leading zeroes or a blank string. Read more
impl Debug for Fr
[src]
impl Rand for Fr
[src]
impl Field for Fr
[src]
fn zero() -> Fr
[src]
fn one() -> Fr
[src]
fn is_zero(&self) -> bool
[src]
fn add_assign(&mut self, other: &Fr)
[src]
fn double(&mut self)
[src]
fn sub_assign(&mut self, other: &Fr)
[src]
fn negate(&mut self)
[src]
fn inverse(&self) -> Option<Fr>
[src]
fn frobenius_map(&mut self, usize)
[src]
fn mul_assign(&mut self, other: &Fr)
[src]
fn square(&mut self)
[src]
fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
Exponentiates this element by a number represented with u64
limbs, least significant digit first. Read more
impl Clone for Fr
[src]
fn clone(&self) -> Fr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl SqrtField for Fr
[src]
impl Eq for Fr
[src]
impl IntoFr for Fr
[src]
impl<'a> Add<Fr> for Poly
[src]
type Output = Poly
The resulting type after applying the +
operator.
fn add(self, rhs: Fr) -> Self::Output
[src]
impl<'a> Sub<Fr> for Poly
[src]
type Output = Poly
The resulting type after applying the -
operator.
fn sub(self, rhs: Fr) -> Self::Output
[src]
impl<'a> Mul<&'a Fr> for Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: &Fr) -> Self::Output
[src]
impl Mul<Fr> for Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> Self::Output
[src]
impl<'a> Mul<&'a Fr> for &'a Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: &Fr) -> Self::Output
[src]
impl<'a> Mul<Fr> for &'a Poly
[src]
type Output = Poly
The resulting type after applying the *
operator.
fn mul(self, rhs: Fr) -> Self::Output
[src]
impl MulAssign<Fr> for Poly
[src]
fn mul_assign(&mut self, rhs: Fr)
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,