pub struct TatePairing;Expand description
Tate pairing struct holds necessary components for pairing.
pairing function takes G1 and G2 group elements and output
GT target group element.
Trait Implementations§
Source§impl Clone for TatePairing
impl Clone for TatePairing
Source§fn clone(&self) -> TatePairing
fn clone(&self) -> TatePairing
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TatePairing
impl Debug for TatePairing
Source§impl Decode for TatePairing
impl Decode for TatePairing
Source§impl Default for TatePairing
impl Default for TatePairing
Source§fn default() -> TatePairing
fn default() -> TatePairing
Returns the “default value” for a type. Read more
Source§impl Encode for TatePairing
impl Encode for TatePairing
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Ord for TatePairing
impl Ord for TatePairing
Source§fn cmp(&self, other: &TatePairing) -> Ordering
fn cmp(&self, other: &TatePairing) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Pairing for TatePairing
impl Pairing for TatePairing
const PARAM_D: Fr = EDWARDS_D
const X: u64 = 15_132_376_222_941_642_752u64
const X_IS_NEGATIVE: bool = true
type G1Affine = G1Affine
type G2Affine = G2Affine
type G1Projective = G1Projective
type G2Projective = G2Projective
type G2PairngRepr = G2PairingAffine
type PairingRange = Fq12
type Gt = Gt
type ScalarField = Fr
fn pairing(g1: Self::G1Affine, g2: Self::G2Affine) -> Self::Gt
fn miller_loop(g1: Self::G1Affine, g2: Self::G2Affine) -> Self::PairingRange
fn multi_miller_loop( pairs: &[(Self::G1Affine, Self::G2PairngRepr)], ) -> Self::PairingRange
Source§impl PartialEq for TatePairing
impl PartialEq for TatePairing
Source§impl PartialOrd for TatePairing
impl PartialOrd for TatePairing
impl Copy for TatePairing
impl EncodeLike for TatePairing
impl Eq for TatePairing
impl StructuralPartialEq for TatePairing
Auto Trait Implementations§
impl Freeze for TatePairing
impl RefUnwindSafe for TatePairing
impl Send for TatePairing
impl Sync for TatePairing
impl Unpin for TatePairing
impl UnwindSafe for TatePairing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more