Struct bellperson::bls::G2Projective [−][src]
pub struct G2Projective { /* fields omitted */ }
Trait Implementations
impl CurveProjective for G2
[src]
impl CurveProjective for G2
[src]pub fn hash(msg: &[u8]) -> G2
[src]
pub fn hash(msg: &[u8]) -> G2
[src]Implements “Indifferentiable Hashing to Barreto–Naehrig Curves” from Foque-Tibouchi. https://www.di.ens.fr/~fouque/pub/latincrypt12.pdf
type Engine = Bls12
type Scalar = Fr
type Base = Fq2
type Affine = G2Affine
pub fn random<R>(rng: &mut R) -> G2 where
R: RngCore,
[src]
pub fn random<R>(rng: &mut R) -> G2 where
R: RngCore,
[src]Returns an element chosen uniformly at random using a user-provided RNG.
pub fn is_normalized(&self) -> bool
[src]
pub fn is_normalized(&self) -> bool
[src]Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
pub fn batch_normalization<S>(v: &mut [S]) where
S: BorrowMut<G2>,
[src]
pub fn batch_normalization<S>(v: &mut [S]) where
S: BorrowMut<G2>,
[src]Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
pub fn add_assign(&mut self, other: &G2)
[src]
pub fn add_assign(&mut self, other: &G2)
[src]Adds another element to this element.
pub fn add_assign_mixed(&mut self, other: &<G2 as CurveProjective>::Affine)
[src]
pub fn add_assign_mixed(&mut self, other: &<G2 as CurveProjective>::Affine)
[src]Adds an affine element to this element.
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G2 as CurveProjective>::Scalar as PrimeField>::Repr>,
[src]
pub fn mul_assign<S>(&mut self, other: S) where
S: Into<<<G2 as CurveProjective>::Scalar as PrimeField>::Repr>,
[src]Performs scalar multiplication of this element.
pub fn into_affine(&self) -> G2Affine
[src]
pub fn into_affine(&self) -> G2Affine
[src]Converts this element into its affine representation.
pub fn recommended_wnaf_for_scalar(
scalar: <<G2 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
[src]
pub fn recommended_wnaf_for_scalar(
scalar: <<G2 as CurveProjective>::Scalar as PrimeField>::Repr
) -> usize
[src]Recommends a wNAF window table size given a scalar. Always returns a number between 2 and 22, inclusive. Read more
pub fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]
pub fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]Recommends a wNAF window size given the number of scalars you intend to multiply a base by. Always returns a number between 2 and 22, inclusive. Read more
fn sub_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]Subtracts another element from this element.
impl<'de> Deserialize<'de> for G2
[src]
impl<'de> Deserialize<'de> for G2
[src]pub fn deserialize<D>(d: D) -> Result<G2, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(d: D) -> Result<G2, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl IsogenyMap for G2
[src]
impl IsogenyMap for G2
[src]pub fn isogeny_map(&mut self)
[src]
pub fn isogeny_map(&mut self)
[src]Eavluate isogeny map.
impl Serialize for G2
[src]
impl Serialize for G2
[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 G2
[src]
impl Eq for G2
[src]
impl StructuralEq for G2
[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> 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>,