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

#include <edwards_pairing.hpp>

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

Public Member Functions

bool operator== (const edwards_ate_G1_precomp &other) const
 

Public Attributes

edwards_Fq P_XY
 
edwards_Fq P_XZ
 
edwards_Fq P_ZZplusYZ
 

Friends

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

Detailed Description

Definition at line 83 of file edwards_pairing.hpp.

Member Function Documentation

◆ operator==()

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

Definition at line 154 of file edwards_pairing.cpp.

156 {
157  return (
158  this->P_XY == other.P_XY && this->P_XZ == other.P_XZ &&
159  this->P_ZZplusYZ == other.P_ZZplusYZ);
160 }

Friends And Related Function Documentation

◆ operator<<

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

Definition at line 162 of file edwards_pairing.cpp.

164 {
165  out << prec_P.P_XY << OUTPUT_SEPARATOR << prec_P.P_XZ << OUTPUT_SEPARATOR
166  << prec_P.P_ZZplusYZ;
167 
168  return out;
169 }

◆ operator>>

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

Definition at line 171 of file edwards_pairing.cpp.

172 {
173  in >> prec_P.P_XY >> prec_P.P_XZ >> prec_P.P_ZZplusYZ;
174 
175  return in;
176 }

Member Data Documentation

◆ P_XY

edwards_Fq libff::edwards_ate_G1_precomp::P_XY

Definition at line 84 of file edwards_pairing.hpp.

◆ P_XZ

edwards_Fq libff::edwards_ate_G1_precomp::P_XZ

Definition at line 85 of file edwards_pairing.hpp.

◆ P_ZZplusYZ

edwards_Fq libff::edwards_ate_G1_precomp::P_ZZplusYZ

Definition at line 86 of file edwards_pairing.hpp.


The documentation for this struct was generated from the following files:
libff::edwards_ate_G1_precomp::P_XY
edwards_Fq P_XY
Definition: edwards_pairing.hpp:84
OUTPUT_SEPARATOR
#define OUTPUT_SEPARATOR
Definition: serialization.hpp:69