Struct ark_ec::models::bn::Bn

source ·
pub struct Bn<P: BnConfig>(_);

Trait Implementations§

source§

impl<P: BnConfig> Clone for Bn<P>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<P: BnConfig> Debug for Bn<P>

source§

fn fmt(&self, __f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<P: BnConfig> Hash for Bn<P>

source§

fn hash<__HP>(&self, __state: &mut __HP)where __HP: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<P: BnConfig> Pairing for Bn<P>

§

type BaseField = <<P as BnConfig>::G1Config as CurveConfig>::BaseField

This is the base field of the G1 group and base prime field of G2.
§

type ScalarField = <<P as BnConfig>::G1Config as CurveConfig>::ScalarField

This is the scalar field of the G1/G2 groups.
§

type G1 = Projective<<P as BnConfig>::G1Config>

An element in G1.
§

type G1Affine = Affine<<P as BnConfig>::G1Config>

§

type G1Prepared = G1Prepared<P>

A G1 element that has been preprocessed for use in a pairing.
§

type G2 = Projective<<P as BnConfig>::G2Config>

An element of G2.
§

type G2Affine = Affine<<P as BnConfig>::G2Config>

The affine representation of an element in G2.
§

type G2Prepared = G2Prepared<P>

A G2 element that has been preprocessed for use in a pairing.
§

type TargetField = QuadExtField<Fp12ConfigWrapper<<P as BnConfig>::Fp12Config>>

The extension field that hosts the target group of the pairing.
source§

fn multi_miller_loop( a: impl IntoIterator<Item = impl Into<Self::G1Prepared>>, b: impl IntoIterator<Item = impl Into<Self::G2Prepared>> ) -> MillerLoopOutput<Self>

Computes the product of Miller loops for some number of (G1, G2) pairs.
source§

fn final_exponentiation( f: MillerLoopOutput<Self> ) -> Option<PairingOutput<Self>>

Performs final exponentiation of the result of a Self::multi_miller_loop.
source§

fn miller_loop( a: impl Into<Self::G1Prepared>, b: impl Into<Self::G2Prepared> ) -> MillerLoopOutput<Self>

Computes the Miller loop over a and b.
source§

fn multi_pairing( a: impl IntoIterator<Item = impl Into<Self::G1Prepared>>, b: impl IntoIterator<Item = impl Into<Self::G2Prepared>> ) -> PairingOutput<Self>

Computes a “product” of pairings.
source§

fn pairing( p: impl Into<Self::G1Prepared>, q: impl Into<Self::G2Prepared> ) -> PairingOutput<Self>

Performs multiple pairing operations
source§

impl<P: BnConfig> PartialEq<Bn<P>> for Bn<P>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<P: BnConfig> Copy for Bn<P>

source§

impl<P: BnConfig> Eq for Bn<P>

Auto Trait Implementations§

§

impl<P> RefUnwindSafe for Bn<P>

§

impl<P> Send for Bn<P>

§

impl<P> Sync for Bn<P>

§

impl<P> Unpin for Bn<P>

§

impl<P> UnwindSafe for Bn<P>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V