Clearmatics Libff  0.1
C++ library for Finite Fields and Elliptic Curves
Public Member Functions | Public Attributes | Friends | List of all members
libff::mnt4_ate_G1_precomp Struct Reference

#include <mnt4_pairing.hpp>

Collaboration diagram for libff::mnt4_ate_G1_precomp:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const mnt4_ate_G1_precomp &other) const
 

Public Attributes

mnt4_Fq PX
 
mnt4_Fq PY
 
mnt4_Fq2 PX_twist
 
mnt4_Fq2 PY_twist
 

Friends

std::ostream & operator<< (std::ostream &out, const mnt4_ate_G1_precomp &prec_P)
 
std::istream & operator>> (std::istream &in, mnt4_ate_G1_precomp &prec_P)
 

Detailed Description

Definition at line 63 of file mnt4_pairing.hpp.

Member Function Documentation

◆ operator==()

bool libff::mnt4_ate_G1_precomp::operator== ( const mnt4_ate_G1_precomp other) const

Definition at line 25 of file mnt4_pairing.cpp.

26 {
27  return (
28  this->PX == other.PX && this->PY == other.PY &&
29  this->PX_twist == other.PX_twist && this->PY_twist == other.PY_twist);
30 }

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const mnt4_ate_G1_precomp prec_P 
)
friend

Definition at line 32 of file mnt4_pairing.cpp.

33 {
34  out << prec_P.PX << OUTPUT_SEPARATOR << prec_P.PY << OUTPUT_SEPARATOR
35  << prec_P.PX_twist << OUTPUT_SEPARATOR << prec_P.PY_twist;
36 
37  return out;
38 }

◆ operator>>

std::istream& operator>> ( std::istream &  in,
mnt4_ate_G1_precomp prec_P 
)
friend

Definition at line 40 of file mnt4_pairing.cpp.

41 {
42  in >> prec_P.PX;
44  in >> prec_P.PY;
46  in >> prec_P.PX_twist;
48  in >> prec_P.PY_twist;
49 
50  return in;
51 }

Member Data Documentation

◆ PX

mnt4_Fq libff::mnt4_ate_G1_precomp::PX

Definition at line 64 of file mnt4_pairing.hpp.

◆ PX_twist

mnt4_Fq2 libff::mnt4_ate_G1_precomp::PX_twist

Definition at line 66 of file mnt4_pairing.hpp.

◆ PY

mnt4_Fq libff::mnt4_ate_G1_precomp::PY

Definition at line 65 of file mnt4_pairing.hpp.

◆ PY_twist

mnt4_Fq2 libff::mnt4_ate_G1_precomp::PY_twist

Definition at line 67 of file mnt4_pairing.hpp.


The documentation for this struct was generated from the following files:
libff::mnt4_ate_G1_precomp::PX
mnt4_Fq PX
Definition: mnt4_pairing.hpp:64
OUTPUT_SEPARATOR
#define OUTPUT_SEPARATOR
Definition: serialization.hpp:69
libff::consume_OUTPUT_SEPARATOR
void consume_OUTPUT_SEPARATOR(std::istream &in)