[−][src]Struct sapling_crypto_ce::babyjubjub::fs::Fs
This is an element of the scalar field of the Jubjub curve.
Trait Implementations
impl ToUniform for Fs
[src]
fn to_uniform(digest: &[u8]) -> Self
[src]
Convert a little endian byte string into a uniform field element. The number is reduced mod s. The caller is responsible for ensuring the input is 64 bytes of Random Oracle output.
impl From<Fs> for FsRepr
[src]
impl Clone for Fs
[src]
impl Copy for Fs
[src]
impl Eq for Fs
[src]
impl PartialEq<Fs> for Fs
[src]
impl Display for Fs
[src]
impl Debug for Fs
[src]
impl StructuralPartialEq for Fs
[src]
impl StructuralEq for Fs
[src]
impl Field for Fs
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn add_assign(&mut self, other: &Fs)
[src]
fn double(&mut self)
[src]
fn sub_assign(&mut self, other: &Fs)
[src]
fn negate(&mut self)
[src]
fn inverse(&self) -> Option<Self>
[src]
fn frobenius_map(&mut self, _: usize)
[src]
fn mul_assign(&mut self, other: &Fs)
[src]
fn square(&mut self)
[src]
fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
S: AsRef<[u64]>,
impl PrimeField for Fs
[src]
type Repr = FsRepr
The prime field can be converted back and forth into this biginteger representation. Read more
fn from_repr(r: FsRepr) -> Result<Fs, PrimeFieldDecodingError>
[src]
fn from_raw_repr(r: FsRepr) -> Result<Fs, PrimeFieldDecodingError>
[src]
fn into_repr(&self) -> FsRepr
[src]
fn into_raw_repr(&self) -> FsRepr
[src]
fn char() -> FsRepr
[src]
const NUM_BITS: u32
[src]
const CAPACITY: u32
[src]
fn multiplicative_generator() -> Self
[src]
const S: u32
[src]
fn root_of_unity() -> Self
[src]
fn from_str(s: &str) -> Option<Self>
impl SqrtField for Fs
[src]
impl Rand for Fs
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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> 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> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self