[][src]Trait snarkos_models::curves::pairing_engine::PairingCurve

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

Loading content...

Required methods

#[must_use]fn prepare(&self) -> Self::Prepared

Prepares this element for pairing purposes.

#[must_use]fn pairing_with(&self, other: &Self::PairWith) -> Self::PairingResult

Perform a pairing

Loading content...

Implementors

Loading content...