Struct paired::bls12_381::G2 [−][src]
pub struct G2 { /* fields omitted */ }
Trait Implementations
impl CurveProjective for G2
[src]
impl CurveProjective for G2
[src]fn hash(msg: &[u8]) -> Self
[src]
fn hash(msg: &[u8]) -> Self
[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
fn random<R: RngCore>(rng: &mut R) -> Self
[src]
fn random<R: RngCore>(rng: &mut R) -> Self
[src]Returns an element chosen uniformly at random using a user-provided RNG.
fn is_normalized(&self) -> bool
[src]
fn is_normalized(&self) -> bool
[src]Checks if the point is already “normalized” so that cheap affine conversion is possible. Read more
fn batch_normalization<S: BorrowMut<Self>>(v: &mut [S])
[src]
fn batch_normalization<S: BorrowMut<Self>>(v: &mut [S])
[src]Normalizes a slice of projective elements so that conversion to affine is cheap. Read more
fn add_assign(&mut self, other: &Self)
[src]
fn add_assign(&mut self, other: &Self)
[src]Adds another element to this element.
fn add_assign_mixed(&mut self, other: &Self::Affine)
[src]
fn add_assign_mixed(&mut self, other: &Self::Affine)
[src]Adds an affine element to this element.
fn mul_assign<S: Into<<Self::Scalar as PrimeField>::Repr>>(&mut self, other: S)
[src]
fn mul_assign<S: Into<<Self::Scalar as PrimeField>::Repr>>(&mut self, other: S)
[src]Performs scalar multiplication of this element.
fn into_affine(&self) -> G2Affine
[src]
fn into_affine(&self) -> G2Affine
[src]Converts this element into its affine representation.
fn recommended_wnaf_for_scalar(
scalar: <Self::Scalar as PrimeField>::Repr
) -> usize
[src]
fn recommended_wnaf_for_scalar(
scalar: <Self::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
fn recommended_wnaf_for_num_scalars(num_scalars: usize) -> usize
[src]
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]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl IsogenyMap for G2
[src]
impl IsogenyMap for G2
[src]fn isogeny_map(&mut self)
[src]
fn isogeny_map(&mut self)
[src]Eavluate isogeny map.
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> 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>,