Trait snarkvm_curves::traits::pairing_engine::PairingCurve [−][src]
pub trait PairingCurve: AffineCurve { type Engine: PairingEngine<Fr = Self::ScalarField>; type Prepared: CanonicalSerialize + CanonicalDeserialize + ToBytes + Default + Clone + Send + Sync + Debug + 'static; type PairWith: PairingCurve<PairWith = Self>; type PairingResult: Field; #[must_use] fn prepare(&self) -> Self::Prepared; #[must_use] fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult; }
Associated Types
type Engine: PairingEngine<Fr = Self::ScalarField>
[src]
type Prepared: CanonicalSerialize + CanonicalDeserialize + ToBytes + Default + Clone + Send + Sync + Debug + 'static
[src]
type PairWith: PairingCurve<PairWith = Self>
[src]
type PairingResult: Field
[src]
Required methods
#[must_use]fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult
[src]
#[must_use]fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult
[src]Perform a pairing
Implementors
impl PairingCurve for snarkvm_curves::bls12_377::G1Affine
[src]
impl PairingCurve for snarkvm_curves::bls12_377::G1Affine
[src]type Engine = Bls12_377
type PairWith = G2Affine
type PairingResult = Fq12
type Prepared = G1Prepared<Bls12_377Parameters>
fn prepare(&self) -> Self::Prepared
[src]
fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult
[src]
impl PairingCurve for snarkvm_curves::bls12_377::G2Affine
[src]
impl PairingCurve for snarkvm_curves::bls12_377::G2Affine
[src]type Engine = Bls12_377
type PairWith = G1Affine
type PairingResult = Fq12
type Prepared = G2Prepared<Bls12_377Parameters>
fn prepare(&self) -> Self::Prepared
[src]
fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult
[src]
impl PairingCurve for snarkvm_curves::bw6_761::G1Affine
[src]
impl PairingCurve for snarkvm_curves::bw6_761::G1Affine
[src]type Engine = BW6_761
type PairWith = G2Affine
type PairingResult = Fq6
type Prepared = G1Prepared<BW6_761Parameters>
fn prepare(&self) -> Self::Prepared
[src]
fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult
[src]
impl PairingCurve for snarkvm_curves::bw6_761::G2Affine
[src]
impl PairingCurve for snarkvm_curves::bw6_761::G2Affine
[src]