Struct bellperson::bls::Fr [−][src]
pub struct Fr(_);
Trait Implementations
impl BaseFromRO for Fr
[src]
impl BaseFromRO for Fr
[src]type BaseLength = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>
pub fn from_okm(
okm: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>
) -> Fr
[src]
okm: &GenericArray<u8, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>
) -> Fr
impl<'de> Deserialize<'de> for Fr
[src]
impl<'de> Deserialize<'de> for Fr
[src]pub fn deserialize<D>(d: D) -> Result<Fr, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(d: D) -> Result<Fr, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Field for Fr
[src]
impl Field for Fr
[src]pub fn random<R>(rng: &mut R) -> Fr where
R: RngCore,
[src]
pub fn random<R>(rng: &mut R) -> Fr where
R: RngCore,
[src]Computes a uniformly random element using rejection sampling.
pub fn add_assign(&mut self, other: &Fr)
[src]
pub fn add_assign(&mut self, other: &Fr)
[src]Adds another element to this element.
pub fn sub_assign(&mut self, other: &Fr)
[src]
pub fn sub_assign(&mut self, other: &Fr)
[src]Subtracts another element from this element.
pub fn inverse(&self) -> Option<Fr>
[src]
pub fn inverse(&self) -> Option<Fr>
[src]Computes the multiplicative inverse of this element, if nonzero.
pub fn frobenius_map(&mut self, usize)
[src]
pub fn frobenius_map(&mut self, usize)
[src]Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
pub fn mul_assign(&mut self, other: &Fr)
[src]
pub fn mul_assign(&mut self, other: &Fr)
[src]Multiplies another element by this element.
impl Ord for Fr
[src]
impl Ord for Fr
[src]Elements are ordered lexicographically.
impl PartialOrd<Fr> for Fr
[src]
impl PartialOrd<Fr> for Fr
[src]pub fn partial_cmp(&self, other: &Fr) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Fr) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PrimeField for Fr
[src]
impl PrimeField for Fr
[src]type Repr = FrRepr
type Repr = FrRepr
The prime field can be converted back and forth into this biginteger representation. Read more
pub fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]
pub fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]Convert this prime field element into a biginteger representation.
pub fn into_repr(&self) -> FrRepr
[src]
pub fn into_repr(&self) -> FrRepr
[src]Convert a biginteger representation into a prime field element, if the number is an element of the field. Read more
pub const CAPACITY: u32
[src]
pub const CAPACITY: u32
[src]How many bits of information can be reliably stored in the field element.
pub fn multiplicative_generator() -> Fr
[src]
pub fn multiplicative_generator() -> Fr
[src]Returns the multiplicative generator of char()
- 1 order. This element
must also be quadratic nonresidue. Read more
pub fn root_of_unity() -> Fr
[src]
pub fn root_of_unity() -> Fr
[src]Returns the 2^s root of unity computed by exponentiating the multiplicative_generator()
by t. Read more
pub fn from_random_bytes(bytes: &[u8]) -> Option<Fr>
[src]
impl Serialize for Fr
[src]
impl Serialize for Fr
[src]pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for Fr
[src]
impl Eq for Fr
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> FromRO for T where
T: BaseFromRO,
[src]
impl<T> FromRO for T where
T: BaseFromRO,
[src]type Length = <T as BaseFromRO>::BaseLength
pub fn from_ro(okm: &GenericArray<u8, <T as FromRO>::Length>) -> T
[src]
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,