Struct ec_pairing::TatePairing
source · 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 copy 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) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> 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
type G1Affine = G1Affine
type G2Affine = G2Affine
type G1Projective = G1Projective
type G2Projective = G2Projective
type G2PairngRepr = G2PairingAffine
type PairingRange = Fq12
type Gt = Gt
type ScalarField = Fr
const PARAM_D: Fr = EDWARDS_D
const X: u64 = 15_132_376_222_941_642_752u64
const X_IS_NEGATIVE: bool = true
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§fn eq(&self, other: &TatePairing) -> bool
fn eq(&self, other: &TatePairing) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TatePairing
impl PartialOrd for TatePairing
source§fn partial_cmp(&self, other: &TatePairing) -> Option<Ordering>
fn partial_cmp(&self, other: &TatePairing) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TatePairing
impl EncodeLike for TatePairing
impl Eq for TatePairing
impl StructuralEq for TatePairing
impl StructuralPartialEq for TatePairing
Auto Trait Implementations§
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