Trait bellperson::bls::PairingCurveAffine [−][src]
pub trait PairingCurveAffine: CurveAffine { type Prepared: 'static + Clone + Send + Sync; type Pair: PairingCurveAffine; type PairingResult: Field; fn prepare(&self) -> Self::Prepared; fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult; }
Expand description
Affine representation of an elliptic curve point that can be used to perform pairings.
Associated Types
type Pair: PairingCurveAffine
[src]type PairingResult: Field
[src]Required methods
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
[src]
fn pairing_with(&self, other: &Self::Pair) -> Self::PairingResult
[src]Perform a pairing
Implementors
type Prepared = G1Prepared
type PairingResult = Fq12
pub fn pairing_with(
&self,
other: &<G1Affine as PairingCurveAffine>::Pair
) -> <G1Affine as PairingCurveAffine>::PairingResult
[src]type Prepared = G2Prepared
type PairingResult = Fq12
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
[src]